kihtrak Posted March 8, 2016 Report Share Posted March 8, 2016 Hello there, While trying to run the executable, I get the following message: Info: (I703) tracing timescale unit set: 1 ns (decoder.vcd) At time0 s:: (select, enable) 00output is 0 Info: /OSCI/SystemC: Simulation stopped by user. Please suggest me on how to solve this issue. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Stephan Gerth Posted March 8, 2016 Report Share Posted March 8, 2016 Hi Kihtrak, this looks like you got some output out of simulation and then it has finished with a call to sc_stop(). There is nothing so solve aside from that stdout and stderr seems to mixed a bit. Quote Link to comment Share on other sites More sharing options...
kihtrak Posted March 8, 2016 Author Report Share Posted March 8, 2016 Hello Gerth. Since am a beginner to SystemC, am facing some difficulty in understanding what really the issue is. Can you please explain in detail? //File: decoder_top.cpp #include "driver.h" #include "monitor.h" #include "2_by_4_decoder.h" int sc_main(int argc, char* argv[]) { sc_signal<bool> t_enable; sc_signal<sc_uint<2> > t_select; sc_signal<sc_uint<4> > t_z; sc_trace_file *wf = sc_create_vcd_trace_file("decoder"); wf->set_time_unit(1, SC_NS); decoder2by4 dcdr("2by4decodr"); dcdr.enable(t_enable); dcdr.select(t_select); dcdr.z(t_z); driver dr("Waveform"); dr.d_enable(t_enable); dr.d_select(t_select); monitor mo1 ("MonitorWaveforms"); mo1.m_select(t_select); mo1.m_enable(t_enable); mo1.m_z(t_z); sc_trace(wf, t_select, "t_select"); sc_trace(wf, t_enable, "t_enable"); sc_trace(wf, t_z, "t_z"); sc_start(100, SC_NS); //if(not sc_end_of_simulation_invoked()) { //cout<< "ERROR: Simulation stopped "; sc_stop(); //} sc_close_vcd_trace_file(wf); return(0); } Result: Info: (I703) tracing timescale unit set: 1 ns (decoder.vcd) At time0 s:: (select, enable) 00output is 0 Info: /OSCI/SystemC: Simulation stopped by user. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
apfitch Posted March 8, 2016 Report Share Posted March 8, 2016 Probably your driver isn't doing anything. Try putting some printing statements in the driver to debug it, regards Alan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.