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

Tracing internal signals declared in sc_module using sc_trace

$
0
0
I have a sample systemc program wherein temp is declared as a sc_signal and the rest of the signals are declared as input/output ports. SC_MODULE(clk_dut) { sc_in clk_in; sc_in reset; sc_out clk_out; sc_signal temp; In sc_main() i have instantiated submodules made connections and created the sc_trace file sc_trace_file *fp; fp=sc_create_vcd_trace_file("wave"); sc_trace(fp,clock1,"clk_in"); sc_trace(fp,t_reset,"reset"); sc_trace(fp,t_clk_out,"clk_out"); But how do i trace an internal signal 'temp' created in the dut module of the code using sc_trace() at sc_main(). Please help me with this at the earliest.

Viewing all articles
Browse latest Browse all 595

Trending Articles