EmbDev.net

Forum: FPGA, VHDL & Verilog for loop generate find a good syntax.


von Olivier D. (olivier_d)


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 .

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.