Skip Nav
Home » Forums » SystemC Forum

Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
systemc-forum - Cannot set time resolution at end of elaboration Message Thread: Previous | Next
  • To: <systemc-forum@xxxxxxxxxxxxxxxxxxx>
  • From: "Michael" <michael6866@xxxxxxxxx>
  • Date: Sat, 24 Mar 2012 20:32:39 -0400
Send Email to
Send new message
Reply to this message

Hi guys,


On page 15 of IEEE 1666-2011 it states that “The simulation time resolution can be set during elaboration”. But when I tried to use sc_set_time_resolution() in end_of_elaboration() callback it reports an error “sc_time object<s> constructed”. If I do that in end_of_construction() instead then it’s fine. But clearly on page 12 it says end_of_elaboration() is a part of elaboration phase. Am I missing anything?




       void end_of_elaboration()


              sc_set_time_resolution(100,SC_PS);  // error  



       void end_of_construction()


              //sc_set_time_resolution(100,SC_PS);  // fine  



SC_CTOR(Top) {}



int sc_main (int argc, char* argv[])


                Top top(“top”);


                return 0;





By Date: Previous | Next Current Thread By Thread: Previous | Next