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 - Help with trace function on sc_fifo Message Thread: Previous | Next
  • To: systemc-forum@xxxxxxxxxxxxxxxxx
  • From: sr raksha <s_r_raksha@xxxxxxxxx>
  • Date: Tue, 19 Jan 2010 10:52:02 -0800 (PST)
Send Email to systemc-forum@lists.systemc.org:
Send new message
Reply to this message
Hi all,
 
I have been trying to use the trace function in sc_fifo class.
The single line of code that I added was
 
fifo_1->trace(tf);
 
It is suppose to call this function below in sc_fifo class
template <class T>
inline
void
sc_fifo<T>::trace( sc_trace_file* tf ) const
{
#if defined(DEBUG_SYSTEMC)
char buf[32];
std::string nm = name();
for( int i = 0; i < m_size; ++ i ) {
std::sprintf( buf, "_%d", i );
sc_trace( tf, m_buf[i], nm + buf );
}
#endif
}
 
When I debug the code it does not go through because DEBUG_SYSTEMC is not 
defined to 1. I think this should be the reason. How do I set that? or is there 
any other solution.
 
Thanks,
Raksha


      

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