Tracer class to dump simulation stats to an output stream (stdout by default).
More...
#include <nvhls_trace.h>
|
| Tracer (std::ostream *o=NULL) |
|
| Tracer (const Tracer &other) |
|
Tracer & | operator= (const Tracer &other) |
|
template<typename T_MSG > |
Tracer & | operator<< (T_MSG t) |
|
Tracer & | operator<< (std::ostream &(*f)(std::ostream &)) |
|
Tracer & | operator<< (Tracer &(*f)(Tracer &)) |
|
Tracer & | operator<< (Flusher &endt) |
|
Tracer & | FlushBuffer () |
|
int | GetTraceLevel () |
|
void | SetTraceLevel (int l) |
|
void | SetCurrentLevel (int l) |
|
void | SetFatal () |
|
|
std::ostream * | ostr_ |
|
int | trace_level_ |
|
int | cur_level_ |
|
bool | fatal_ |
|
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_)
: match::Module(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.
The documentation for this class was generated from the following file: