|
|
1 #include <systemc.h>
2
3 int sc_main (int argc, char* argv[]) {
4 cout<<"Current time is "<< sc_time_stamp() << endl;
5 sc_start(1);
6 cout<<"Current time is "<< sc_time_stamp() << endl;
7 sc_start(100);
8 cout<<"Current time is "<< sc_time_stamp() << endl;
9 sc_stop();
10 cout<<"Current time is "<< sc_time_stamp() << endl;
11 return 0;// Terminate simulation
12 }
You could download file sc_time_stamp.cpp here
|