for loop generate find a good syntax.

OP #3584135
Rate this post
• ▲ useful
▼ not useful
Hi all,

I vould like to find a good syntaxe for this action :

PeekDat <= X"0000000" & "000" & Data.InitDone   when PpAdd = X"05" else
   Timer         when PpAdd = X"08" else
   MiscReg1      when PpAdd = X"26" else
   MiscReg2      when PpAdd = X"27" else
   CsteVersion          when PpAdd = X"10" else
    for I in 1 to NB_MSGRX loop
      CntRxA.CntComOk(I)  when PpAdd = (X"10" + I) else
      CntRxA.CntComKo(I)  when PpAdd = (X"1A" + I) else
      CntRxB.CntComOk(I)  when PpAdd = (X"4A" + I) else
      CntRxB.CntComKo(I)  when PpAdd = (X"50" + I) else
      end loop;
      else     X"00000000";

I don't know if it's possible to add for I .. generte inside this code.
Maybye there are an others syntax

Thank you for your help

Olivier .

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.