Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Hi, Example you provided works fine for me. I think it is not complete (definetly not, since it has no sc_main or main). And I think it is previous line that throws in your case. Full code (works fine): #include <systemc.h> int sc_main(int, char *[]) { SC_MODULE(test){ SC_CTOR(test){}; }; test testObj("test"); sc_start(1, SC_US); return 0; } This error means that you try to instantiate module after calling sc_start() (so you do this in simulation phase, not elaboration phase). From LRM (5.2 sc_module): You can also check chapter 4. Elaborati
  • Create New...