Jump to content
kihtrak

Simulation stopped by the user

Recommended Posts

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. 

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...