Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/13/2013 in all areas

  1. The old syntax sc_start(int) was deprecated when we removed the sc_set_default_time_unit(sc_time) concept. Your choices for sc_start are limited to sc_start(void), sc_start(sc_time) and sc_start(double),sc_time_unit).
    3 points
  2. Bonjours, I am new to systemC and i have ubuntu 12.04 and systemc 2.3 I was trying to run this example code from this link but there is an error I cant resolve. Can you please help. This is the errors I get. test_shift.cpp:51:16: error: no matching function for call to `sc_start(int)' test_shift.cpp:51:16: note: candidates are: /usr/local/systemc/include/sysc/kernel/sc_simcontext.h:106:13: note: void sc_core::sc_start() /usr/local/systemc/include/sysc/kernel/sc_simcontext.h:106:13: note: candidate expects 0 arguments, 1 provided /usr/local/systemc/include/sysc/kernel/sc_simcontext.h:173:17: note: void sc_core::sc_start(const sc_core::sc_time&, sc_core::sc_starvation_policy) /usr/local/systemc/include/sysc/kernel/sc_simcontext.h:173:17: note: no known conversion for argument 1 from `int' to `const sc_core::sc_time&' /usr/local/systemc/include/sysc/kernel/sc_simcontext.h:109:13: note: void sc_core::sc_start(int, sc_core::sc_time_unit, sc_core::sc_starvation_policy) /usr/local/systemc/include/sysc/kernel/sc_simcontext.h:109:13: note: candidate expects 3 arguments, 1 provided /usr/local/systemc/include/sysc/kernel/sc_simcontext.h:115:13: note: void sc_core::sc_start(double, sc_core::sc_time_unit, sc_core::sc_starvation_policy) /usr/local/systemc/include/sysc/kernel/sc_simcontext.h:115:13: note: candidate expects 3 arguments, 1 provided make: *** [test_shift.o] Error 1 Thanks.
    1 point
  3. Hi, I looked again at that webpage. I guess you copied the text from the webpage, which is wrong, and didn't use the tar file: sc_start(1); which should be sc_start(1,SC_NS); This causes the compile error you see. So please correct these 2 sc_start() calls. In the tar file it is correct. Best regards, Gino
    1 point
×
×
  • Create New...