Menu

#26 option -dy for acsim makes generated code uncompilable

open
nobody
2
2011-02-22
2011-02-22
No

Hi,

I'm trying to add a jump instruction to my model by using the delayed assignment as describe in page 36 of the "The ArchC Language Reference Manual" available of the web page.
When trying to compile, I get the following message :
undefined reference to `ArchC_ERROR___PLEASE_USE_OPTION_DELAY_WHEN_CREATING_SIMULATOR___'
So I'm regenerating the files using the -dy option :

When compiling I get the following error :
dlx3_isa.cpp: In member function ‘void dlx3_parms::dlx3_isa::behavior_j(unsigned int, unsigned int)’:
dlx3_isa.cpp:187: error: ‘delay’ was not declared in this scope
dlx3.cpp: In member function ‘void dlx3::behavior()’:
dlx3.cpp:278: error: ‘class ac_regbank<32, unsigned int, long long unsigned int>’ has no member named ‘commit_delays’
make[1]: *** [dlx3.o] Error 1
make[1]: Leaving directory `/home/ronan/perso/dlx-lp/dlx3/archc2.1'
make: *** [build_sim] Error 2

It seems that something must be done around register declaration but I can't find anything in the documentation...

Discussion

  • Ronan BARZIC

    Ronan BARZIC - 2011-02-22

    Problem seems to be solved by adding a -DAC_DELAY to the gcc command line
    but AC_DELAY is already defined in dlx3_parms.H - Seems that there is a problem to propagate it correctly

     
  • Ronan BARZIC

    Ronan BARZIC - 2011-02-22
    • priority: 5 --> 2
     

Log in to post a comment.