Tracer class to dump simulation stats to an output stream (stdout by default).
- A Simple Example
#include <nvhls_module.h>
class CrossbarModuleConnectionsInterface :
public match::Module {
public:
...
void Process();
SC_HAS_PROCESS(CrossbarModuleConnectionsInterface);
CrossbarModuleConnectionsInterface(sc_module_name name_)
SC_THREAD(Process);
sensitive << clk.pos();
this->SetTraceLevel(2);
}
};
void CrossbarModuleConnectionsInterface::Process() {
...
while(1) {
wait();
T(1) << " Entered DUT" << EndT;
#pragma hls_unroll yes
for(int inp_lane=0; inp_lane<NumInputLanes; inp_lane++) {
data_in_reg[inp_lane] = data_in[inp_lane].Pop();
T(2) << "data_in[" << inp_lane << "] = " << data_in_reg[inp_lane] << EndT;
}
...
}
}
Matchlib Module class: a wrapper of sc_module with tracing and stats support.
#define NVHLS_NEG_RESET_SIGNAL_IS(port)
ENABLE_SYNC_RESET define: Select synchronous or asynchronous reset.
Definition at line 91 of file nvhls_trace.h.