scc  2022.4.0
SystemC components library
apb::pe::apb_initiator_b Class Reference
Inheritance diagram for apb::pe::apb_initiator_b:
Collaboration diagram for apb::pe::apb_initiator_b:

Public Types

using payload_type = tlm::tlm_generic_payload
 
using phase_type = tlm::tlm_phase
 

Public Member Functions

 SC_HAS_PROCESS (apb_initiator_b)
 
tlm::tlm_sync_enum nb_transport_bw (payload_type &trans, phase_type &phase, sc_core::sc_time &t) override
 
void invalidate_direct_mem_ptr (sc_dt::uint64 start_range, sc_dt::uint64 end_range) override
 
size_t get_transferwith_in_bytes () const
 
void transport (payload_type &trans, bool blocking)
 The forward transport function. It behaves blocking and is re-entrant. More...
 
 apb_initiator_b (sc_core::sc_module_name nm, sc_core::sc_port_b< tlm::tlm_fw_transport_if< tlm::tlm_base_protocol_types >> &port, size_t transfer_width, bool coherent)
 
 apb_initiator_b (apb_initiator_b const &)=delete
 
 apb_initiator_b (apb_initiator_b &&)=delete
 
apb_initiator_boperator= (apb_initiator_b const &)=delete
 
apb_initiator_boperator= (apb_initiator_b &&)=delete
 

Public Attributes

sc_core::sc_in< bool > clk_i {"clk_i"}
 

Protected Attributes

const size_t transfer_width_in_bytes
 
sc_core::sc_port_b< tlm::tlm_fw_transport_if< tlm::tlm_base_protocol_types > > & socket_fw
 
scc::peq< std::tuple< payload_type *, tlm::tlm_phase > > peq
 
scc::ordered_semaphore_t< 1 > chnl
 
sc_core::sc_event any_tx_finished
 
sc_core::sc_time clk_period {10, sc_core::SC_NS}
 

Detailed Description

Definition at line 29 of file apb_initiator.h.

Member Function Documentation

◆ transport()

void apb_initiator_b::transport ( payload_type &  trans,
bool  blocking 
)

The forward transport function. It behaves blocking and is re-entrant.

This function initiates the forward transport either using b_transport() if blocking=true or the nb_transport_* interface.

Parameters
transthe transaction to send
blockingexecute in using the blocking interface

Definition at line 46 of file apb_initiator.cpp.


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