scc 2026.07
SystemC components library
scc::tcp4tlm_client Struct Reference
Inheritance diagram for scc::tcp4tlm_client:
Collaboration diagram for scc::tcp4tlm_client:

Public Types

using connection_type = tcp4tlm::connection<tcp4tlm::response_message, tcp4tlm::request_message>

Public Member Functions

 SC_HAS_PROCESS (tcp4tlm_client)
 tcp4tlm_client (sc_core::sc_module_name name, size_t no_of_ports=0)
void end_connection ()

Public Attributes

cci::cci_param< std::string > other_host_name {"other_host_name", ""}
cci::cci_param< unsigned > other_host_port {"other_host_port", 0}
cci::cci_param< unsigned > this_host_port {"this_host_port", 32000u}
cci::cci_param< bool > wall_time_simulation_speed {"wall_time_simulation_speed", false}
cci::cci_param< bool > write_no_response {"write_no_response", false}
tlm_utils::simple_target_socket< tcp4tlm_client, ::scc::LT > tsckt
sc_core::sc_vector< sc_core::sc_out< bool > > signals {"signals"}

Protected Member Functions

void btransport_cb (tlm::tlm_generic_payload &, sc_core::sc_time &)
unsigned transport_dbg_cb (tlm::tlm_generic_payload &)
virtual void do_access (tlm::tlm_generic_payload &gp, sc_core::sc_time &delay, bool debug=false)
void timing_thread ()
void start_of_simulation () override
void end_of_simulation () override
Protected Member Functions inherited from scc::tcp4tlm::client< tcp4tlm::request_message, tcp4tlm::response_message >
void setup_endpoint (boost::asio::ip::tcp::endpoint &ep)
bool is_local_socket (boost::asio::ip::tcp::socket &socket)
void configure (std::string host, unsigned port_nr)
void connect ()
bool is_remote_connected ()
connection< tcp4tlm::request_message, tcp4tlm::response_message > & client_connection (unsigned short retry_count=0)

Protected Attributes

std::shared_ptr< tcp4tlm::response_message > resp_msg
Protected Attributes inherited from scc::tcp4tlm::client< tcp4tlm::request_message, tcp4tlm::response_message >
std::string host
unsigned short port
unsigned short retry_count
boost::asio::io_context io_service
connection< tcp4tlm::request_message, tcp4tlm::response_message >::ptr trace_conn
std::atomic< bool > is_connected
bool local_connection

Detailed Description

Definition at line 41 of file tcp4tlm_client.h.

Member Typedef Documentation

◆ connection_type

using scc::tcp4tlm_client::connection_type = tcp4tlm::connection<tcp4tlm::response_message, tcp4tlm::request_message>

Definition at line 58 of file tcp4tlm_client.h.

Constructor & Destructor Documentation

◆ tcp4tlm_client()

scc::tcp4tlm_client::tcp4tlm_client ( sc_core::sc_module_name name,
size_t no_of_ports = 0 )

Definition at line 39 of file tcp4tlm_client.cpp.

◆ ~tcp4tlm_client()

scc::tcp4tlm_client::~tcp4tlm_client ( )
virtual

Definition at line 84 of file tcp4tlm_client.cpp.

Member Function Documentation

◆ btransport_cb()

void scc::tcp4tlm_client::btransport_cb ( tlm::tlm_generic_payload & gp,
sc_core::sc_time & delay )
protected

Definition at line 142 of file tcp4tlm_client.cpp.

◆ do_access()

void scc::tcp4tlm_client::do_access ( tlm::tlm_generic_payload & gp,
sc_core::sc_time & delay,
bool debug = false )
protectedvirtual

Definition at line 144 of file tcp4tlm_client.cpp.

◆ end_connection()

void scc::tcp4tlm_client::end_connection ( )
inline

Definition at line 108 of file tcp4tlm_client.h.

◆ end_of_simulation()

void scc::tcp4tlm_client::end_of_simulation ( )
overrideprotected

Definition at line 103 of file tcp4tlm_client.cpp.

◆ start_of_simulation()

void scc::tcp4tlm_client::start_of_simulation ( )
overrideprotected

Definition at line 86 of file tcp4tlm_client.cpp.

◆ timing_thread()

void scc::tcp4tlm_client::timing_thread ( )
protected

Definition at line 230 of file tcp4tlm_client.cpp.

◆ transport_dbg_cb()

unsigned scc::tcp4tlm_client::transport_dbg_cb ( tlm::tlm_generic_payload & gp)
protected

Definition at line 136 of file tcp4tlm_client.cpp.

Member Data Documentation

◆ other_host_name

cci::cci_param<std::string> scc::tcp4tlm_client::other_host_name {"other_host_name", ""}

Definition at line 44 of file tcp4tlm_client.h.

◆ other_host_port

cci::cci_param<unsigned> scc::tcp4tlm_client::other_host_port {"other_host_port", 0}

Definition at line 45 of file tcp4tlm_client.h.

◆ resp_msg

std::shared_ptr<tcp4tlm::response_message> scc::tcp4tlm_client::resp_msg
protected

Definition at line 69 of file tcp4tlm_client.h.

◆ signals

sc_core::sc_vector<sc_core::sc_out<bool> > scc::tcp4tlm_client::signals {"signals"}

Definition at line 52 of file tcp4tlm_client.h.

◆ this_host_port

cci::cci_param<unsigned> scc::tcp4tlm_client::this_host_port {"this_host_port", 32000u}

Definition at line 46 of file tcp4tlm_client.h.

◆ tsckt

tlm_utils::simple_target_socket<tcp4tlm_client, ::scc::LT> scc::tcp4tlm_client::tsckt

Definition at line 50 of file tcp4tlm_client.h.

◆ wall_time_simulation_speed

cci::cci_param<bool> scc::tcp4tlm_client::wall_time_simulation_speed {"wall_time_simulation_speed", false}

Definition at line 47 of file tcp4tlm_client.h.

◆ write_no_response

cci::cci_param<bool> scc::tcp4tlm_client::write_no_response {"write_no_response", false}

Definition at line 48 of file tcp4tlm_client.h.


The documentation for this struct was generated from the following files: