|
scc 2025.09
SystemC components library
|
The socket_width_adapter class is a TLM (Transaction-Level Modeling) socket width adapter. More...
#include <socket_width_adapter.h>


Public Types | |
| using | tlm_payload_type = typename TYPES::tlm_payload_type |
| using | tlm_phase_type = typename TYPES::tlm_phase_type |
| using | target_socket_type = tlm::tlm_target_socket<TGT_BUSWIDTH, TYPES, N, POL> |
| using | initiator_socket_type = tlm::tlm_initiator_socket<INTOR_BUSWIDTH, TYPES, N, POL> |
Public Member Functions | |
| socket_width_adapter (sc_core::sc_module_name const &nm) | |
| Constructor for the socket_width_adapter class. | |
| socket_width_adapter (socket_width_adapter const &)=delete | |
| socket_width_adapter (socket_width_adapter &&)=delete | |
| virtual | ~socket_width_adapter ()=default |
| Virtual destructor for the socket_width_adapter class. | |
Public Attributes | |
| target_socket_type | tsck {"tsck"} |
| The target socket for the adapter. | |
| initiator_socket_type | isck {"isck"} |
| The initiator socket for the adapter. | |
The socket_width_adapter class is a TLM (Transaction-Level Modeling) socket width adapter.
The socket_width_adapter class is a template class that adapts the width of a TLM socket. It allows the connection of modules with different bus widths by converting the data width between the initiator and target sockets.
| TGT_WIDTH | The width of the target socket. |
| INTOR_BUSWIDTH | The width of the initiator socket. |
| TYPES | The TLM protocol types. |
| N | The number of socket instances. |
| POL | The port binding policy. |
Definition at line 43 of file socket_width_adapter.h.
| using scc::socket_width_adapter< TGT_BUSWIDTH, INTOR_BUSWIDTH, TYPES, N, POL >::initiator_socket_type = tlm::tlm_initiator_socket<INTOR_BUSWIDTH, TYPES, N, POL> |
Definition at line 48 of file socket_width_adapter.h.
| using scc::socket_width_adapter< TGT_BUSWIDTH, INTOR_BUSWIDTH, TYPES, N, POL >::target_socket_type = tlm::tlm_target_socket<TGT_BUSWIDTH, TYPES, N, POL> |
Definition at line 47 of file socket_width_adapter.h.
| using scc::socket_width_adapter< TGT_BUSWIDTH, INTOR_BUSWIDTH, TYPES, N, POL >::tlm_payload_type = typename TYPES::tlm_payload_type |
Definition at line 45 of file socket_width_adapter.h.
| using scc::socket_width_adapter< TGT_BUSWIDTH, INTOR_BUSWIDTH, TYPES, N, POL >::tlm_phase_type = typename TYPES::tlm_phase_type |
Definition at line 46 of file socket_width_adapter.h.
|
inline |
Constructor for the socket_width_adapter class.
| nm | The name of the socket_width_adapter instance. |
Definition at line 66 of file socket_width_adapter.h.
| initiator_socket_type scc::socket_width_adapter< TGT_BUSWIDTH, INTOR_BUSWIDTH, TYPES, N, POL >::isck {"isck"} |
The initiator socket for the adapter.
This socket is used to connect the initiator module with the adapter.
Definition at line 60 of file socket_width_adapter.h.
| target_socket_type scc::socket_width_adapter< TGT_BUSWIDTH, INTOR_BUSWIDTH, TYPES, N, POL >::tsck {"tsck"} |
The target socket for the adapter.
This socket is used to connect the target module with the adapter.
Definition at line 54 of file socket_width_adapter.h.