scc  2024.06
SystemC components library
chi::scv::chitlm_recorder_module< BUSWIDTH, TYPES, BASE > Class Template Reference

The TLM2 transaction recorder. More...

#include <recorder_modules.h>

Inheritance diagram for chi::scv::chitlm_recorder_module< BUSWIDTH, TYPES, BASE >:
Collaboration diagram for chi::scv::chitlm_recorder_module< BUSWIDTH, TYPES, BASE >:

Public Member Functions

 chitlm_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...
 
tlm::tlm_fw_transport_if< TYPES > * get_fw_if () override
 
tlm::tlm_bw_transport_if< TYPES > * get_bw_if () override
 

Public Attributes

BASE::template target_socket_type< BUSWIDTH > tsckt {"tsckt"}
 The target socket of the recorder to be bound to the initiator.
 
BASE::template initiator_socket_type< BUSWIDTH > isckt {"isckt"}
 The initiator to be bound to the target socket.
 

Detailed Description

template<unsigned int BUSWIDTH, typename TYPES, typename BASE>
class chi::scv::chitlm_recorder_module< BUSWIDTH, TYPES, BASE >

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_tlm2_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 34 of file recorder_modules.h.

Constructor & Destructor Documentation

◆ chitlm_recorder_module()

template<unsigned int BUSWIDTH, typename TYPES , typename BASE >
chi::scv::chitlm_recorder_module< BUSWIDTH, TYPES, BASE >::chitlm_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
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 49 of file recorder_modules.h.


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