17#ifndef TLM_NW_SCV_TLM_RECORDER_MODULE_H
18#define TLM_NW_SCV_TLM_RECORDER_MODULE_H
20#include "tlm_recorder.h"
21#include <tlm_utils/simple_initiator_socket.h>
22#include <tlm_utils/simple_target_socket.h>
40template <
typename CMDENUM,
unsigned int FLIT_WITH,
typename TYPES>
class tlm_recorder_module :
public sc_core::sc_module {
57 SCVNS scv_tr_db* tr_db = SCVNS scv_tr_db::get_default_db())
59 , recorder(sc_core::sc_object::name(),
is.get_base_port(),
ts.get_base_port(), recording_enabled, tr_db) {
67 tlm_recorder<TYPES> recorder;
70 void start_of_simulation()
override { recorder.initialize_streams(); }
The TLM2 transaction recorder.
tlm::nw::tlm_network_target_socket< FLIT_WITH, CMDENUM, TYPES > ts
The target socket of the recorder to be bound to the initiator.
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.
tlm::nw::tlm_network_initiator_socket< FLIT_WITH, CMDENUM, TYPES > is
The initiator to be bound to the target socket.
SCC SCV4TLM classes and functions.
Definition of the tlm_network_initiator_socket class.
Definition of the tlm_network_target_socket class.
The SystemC Transaction Level Model (TLM) Network TLM utilities.