Skip to content
Snippets Groups Projects
  • Erwan Jahier's avatar
    d3061085
    lic2soc: fix the translation of the current operator into SOC. · d3061085
    Erwan Jahier authored
    nb : the -exec mode was working because I did not use the generated soc,
    which was completely wrong.
    
    Note that to do that, I have modified the CURRENT variant of
    Lic.val_exp, to attach it the clock the current holds on. Indeed, the
    clock is mandatory to generated correct code...
    
    In an ideal world, this clock information may have explicitely been
    set by the user ("current(clk_of_X,X)" instead of "current(X)"), but
    for historical reason, it is not the case.
    
    Hence, this information is added as soon as it is available, namely,
    during clock checking.
    d3061085
    History
    lic2soc: fix the translation of the current operator into SOC.
    Erwan Jahier authored
    nb : the -exec mode was working because I did not use the generated soc,
    which was completely wrong.
    
    Note that to do that, I have modified the CURRENT variant of
    Lic.val_exp, to attach it the clock the current holds on. Indeed, the
    clock is mandatory to generated correct code...
    
    In an ideal world, this clock information may have explicitely been
    set by the user ("current(clk_of_X,X)" instead of "current(X)"), but
    for historical reason, it is not the case.
    
    Hence, this information is added as soon as it is available, namely,
    during clock checking.
_oasis 1.64 KiB