precompilation 'Vhdl' syntax

Discussion in 'VHDL' started by olivier90dir, Mar 21, 2014.

  1. olivier90dir

    olivier90dir Guest

    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 .
    olivier90dir, Mar 21, 2014
    1. Advertisements

  2. olivier90dir

    Olivier Dir Guest

    Le vendredi 21 mars 2014 14:28:59 UTC+1, Brian Drummond a écrit :
    Thank you for your help !

    Good solution !
    I like your syntax. .
    Olivier Dir, Mar 21, 2014
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.