MatchLib
Classes | Macros

Matchlib Module class: a wrapper of sc_module with tracing and stats support. More...

Classes

class  match::Module
 Matchlib Module class: a wrapper of sc_module with tracing and stats support. More...
 

Macros

#define NVHLS_NEG_RESET_SIGNAL_IS(port)   async_reset_signal_is(port,false)
 ENABLE_SYNC_RESET define: Select synchronous or asynchronous reset. More...
 
#define nvhls_concat(s1, s2)   (std::string(s1) + "_" + std::string(s2)).c_str()
 nvhls_concat define: Concatenate two strings, separate with an underscore. More...
 

Detailed Description

Matchlib Module class: a wrapper of sc_module with tracing and stats support.

Macro Definition Documentation

◆ NVHLS_NEG_RESET_SIGNAL_IS

#define NVHLS_NEG_RESET_SIGNAL_IS (   port)    async_reset_signal_is(port,false)

ENABLE_SYNC_RESET define: Select synchronous or asynchronous reset.

Matchlib uses asynchronous, active-low reset by default. Defining ENABLE_SYNC_RESET will use synchronous, active-low reset instead. The macros NVHLS_NEG_RESET_SIGNAL_IS() and NVHLS_POS_RESET_SIGNAL_IS() can be used in place of SystemC's reset_signal_is() and async_reset_signal_is() so that ENABLE_SYNC_RESET can select type.

Active-low and -high are separate macros, in case module code assumes a priority.

Definition at line 39 of file nvhls_module.h.

◆ nvhls_concat

#define nvhls_concat (   s1,
  s2 
)    (std::string(s1) + "_" + std::string(s2)).c_str()

nvhls_concat define: Concatenate two strings, separate with an underscore.

Useful for concatenating two strings to derive a module name.

Catapult synthesis in C++11 mode currently doesn't support + operators on strings, so only s2 is used.

Definition at line 59 of file nvhls_module.h.