Matchlib Module class: a wrapper of sc_module with tracing and stats support.
More...
#include <nvhls_module.h>
|
static const unsigned int | width = 0 |
|
Matchlib Module class: a wrapper of sc_module with tracing and stats support.
- 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();
async_reset_signal_is(rst, false);
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.
Definition at line 107 of file nvhls_module.h.
◆ Module() [1/2]
match::Module::Module |
( |
| ) |
|
|
inline |
◆ Module() [2/2]
match::Module::Module |
( |
sc_module_name |
nm | ) |
|
|
inline |
◆ ~Module()
match::Module::~Module |
( |
| ) |
|
|
inline |
◆ IsModule()
bool match::Module::IsModule |
( |
sc_object * |
obj | ) |
|
|
inlineprotected |
◆ GetChildren()
std::vector< Module * > match::Module::GetChildren |
( |
| ) |
|
|
inlineprotected |
◆ IncrStat()
void match::Module::IncrStat |
( |
const std::string & |
name, |
|
|
unsigned int |
num = 1 |
|
) |
| |
|
inlineprotected |
◆ IncrStatIndexed()
void match::Module::IncrStatIndexed |
( |
const std::string & |
name, |
|
|
unsigned int |
idx, |
|
|
unsigned int |
num = 1 |
|
) |
| |
|
inlineprotected |
◆ T()
Tracer & match::Module::T |
( |
int |
l = 0 | ) |
|
|
inlineprotected |
◆ ASSERT()
Tracer & match::Module::ASSERT |
( |
bool |
cond | ) |
|
|
inlineprotected |
◆ SetTraceLevel()
void match::Module::SetTraceLevel |
( |
int |
l | ) |
|
|
inline |
◆ RecordEvent()
void match::Module::RecordEvent |
( |
const std::string & |
name, |
|
|
uint64 |
param = 0 |
|
) |
| |
|
inlineprotected |
◆ PrintStats()
void match::Module::PrintStats |
( |
std::ostream & |
ofile, |
|
|
unsigned int |
lvl, |
|
|
Module * |
aggregator |
|
) |
| |
|
inlineprotected |
◆ Indent()
void match::Module::Indent |
( |
std::ostream & |
ofile, |
|
|
unsigned int |
lvl |
|
) |
| |
|
inlineprotected |
◆ HasStats()
bool match::Module::HasStats |
( |
| ) |
|
|
inline |
◆ ChildrenHaveStats()
bool match::Module::ChildrenHaveStats |
( |
| ) |
|
|
inline |
◆ DumpStats()
void match::Module::DumpStats |
( |
std::ostream & |
ofile, |
|
|
unsigned int |
lvl, |
|
|
Module * |
aggregator |
|
) |
| |
|
inline |
◆ Marshall()
template<unsigned int Size>
void match::Module::Marshall |
( |
Marshaller< Size > & |
m | ) |
|
|
inline |
◆ clk
sc_in_clk match::Module::clk |
◆ rst
sc_in<bool> match::Module::rst |
◆ module_indicator
sc_attr_base* match::Module::module_indicator |
◆ stats_
std::map<std::string, uint64> match::Module::stats_ |
|
protected |
◆ tracer_
◆ EndT
◆ width
const unsigned int match::Module::width = 0 |
|
static |
The documentation for this class was generated from the following file: