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

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now