Quantcast
Channel: SystemC Language Forum RSS Feed
Viewing all articles
Browse latest Browse all 595

sc_trace for all sc_signal,sc_in, sc_out

$
0
0

Hi,

 

I have a query regarding sc_trace.

 

Is it possible to have directly get all the signals and ports dumped into the VCD file.

I am trying something like this in sc_main:

 

Top top1("top1");

sc_trace_file *tf = sc_create_vcd_trace_file("waveforms");
sc_simcontext *context = sc_get_curr_simcontext();
sc_object *optr = context->first_object();
while(optr) {
    if (std::string(optr->kind()) == "sc_signal") optr->trace(tf);        
    optr = context->next_object();
    }

 

With this I am not getting anything into the waveforms.vcd.

Could anyone please suggest the correct way to do the above.

 

Thanks for the help.

 

--

Samyak Jaroli

Student, India


Viewing all articles
Browse latest Browse all 595

Trending Articles