Skip Nav
Home » Forums » SystemC Forum

Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
systemc-forum - RE: [systemc-forum] tracing arrays Message Thread: Previous | Next
  • To: <robert_brewer@xxxxxxxxxxx>, <systemc-forum@xxxxxxxxxxxxxxxxx>
  • From: vince vince <vincekoskesh@xxxxxxxxxxx>
  • Date: Fri, 15 Jan 2010 12:00:58 -0500
Send Email to
Send new message
Reply to this message


I haven't traced an array type. You may need to define sc_trace for an array. 
Or try something like the following:
for (int i= 0; i< vlaue; i++){
        sc_trace(my_file, my_array[i], "my_array" << i);


From: robert_brewer@xxxxxxxxxxx
To: systemc-forum@xxxxxxxxxxxxxxxxx
Date: Fri, 15 Jan 2010 16:52:12 +0000
Subject: [systemc-forum] tracing arrays

Hi all,

if I write

unsigned char my_array[8];
sc_trace(my_file, my_array, "my_array", 8);

I was expecting to get a trace of 8 bytes. However what I actually get is the 
trace of a single byte (i.e. 8 boolean values). Is this what is expected? Is 
there any way to trace an array of bytes and have each byte grouped together as 
an array of 8 bits?

I'm converting the vcd to a wlf file using Modelsim's vcd2wlf utility and then 
viewing in the Modelsim wave window.

Got a cool Hotmail story? Tell us now                                     
Reinvent how you stay in touch with the new Windows Live Messenger.

By Date: Previous | Next Current Thread By Thread: Previous | Next