scc  2022.4.0
SystemC components library
tlm::scc::scv::tlm_recorder_module< BUSWIDTH, TYPES > Class Template Reference

The TLM2 transaction recorder. More...

#include <tlm_recorder_module.h>

Inheritance diagram for tlm::scc::scv::tlm_recorder_module< BUSWIDTH, TYPES >:
Collaboration diagram for tlm::scc::scv::tlm_recorder_module< BUSWIDTH, TYPES >:

Public Member Functions

 SC_HAS_PROCESS (tlm_recorder_module)
 
 tlm_recorder_module (sc_core::sc_module_name name, bool recording_enabled=true, SCVNS scv_tr_db *tr_db=SCVNS scv_tr_db::get_default_db())
 The constructor of the component. More...
 
sc_core::sc_attribute< bool > enableTimedTracing ()
 

Public Attributes

tlm::tlm_target_socket< BUSWIDTH, TYPES, 1 > ts {"ts"}
 The target socket of the recorder to be bound to the initiator.
 
tlm::tlm_initiator_socket< BUSWIDTH, TYPES, 1 > is {"is"}
 The initiator to be bound to the target socket.
 
std::unique_ptr< tlm_recorder< TYPES > > recorder
 

Detailed Description

template<unsigned int BUSWIDTH = 32, typename TYPES = tlm::tlm_base_protocol_types>
class tlm::scc::scv::tlm_recorder_module< BUSWIDTH, TYPES >

The TLM2 transaction recorder.

This module records all TLM transaction to a SCV transaction stream for further viewing and analysis. The handle of the created transaction is storee in an tlm_extension so that another instance of the scv_tlm_recorder e.g. further down the opath can link to it. The transaction recorder is simply bound between an existing pair of initiator and target sockets

Definition at line 40 of file tlm_recorder_module.h.

Constructor & Destructor Documentation

◆ tlm_recorder_module()

template<unsigned int BUSWIDTH = 32, typename TYPES = tlm::tlm_base_protocol_types>
tlm::scc::scv::tlm_recorder_module< BUSWIDTH, TYPES >::tlm_recorder_module ( sc_core::sc_module_name  name,
bool  recording_enabled = true,
SCVNS scv_tr_db *  tr_db = SCVNS scv_tr_db::get_default_db() 
)
inline

The constructor of the component.

Parameters
nameis the SystemC module name of the recorder
recording_enabledif true the recorder is enabled after construction
tr_dbis a pointer to a transaction recording database. If none is provided the default one is retrieved. If this database is not initialized (e.g. by not calling scv_tr_db::set_default_db() ) recording is disabled.

Definition at line 56 of file tlm_recorder_module.h.


The documentation for this class was generated from the following file: