Transaction-Level Modeling Framework for Space Applications
Definition of class AHBIn. More...
#include <ahbin.h>
Public Member Functions | |
SC_HAS_PROCESS (AHBIn) | |
SR_HAS_SIGNALS (AHBIn) | |
AHBIn (ModuleName name, unsigned int hindex, unsigned int hirq, unsigned int framesize, unsigned int frameaddr, sc_core::sc_time interval, bool pow_mon, AbstractionLayer ambaLayer) | |
Constructor. More... | |
void | frame_trigger () |
Thread for triggering gen_frame (generates new_frame event) More... | |
void | gen_frame () |
Thread for generating the data frame. More... | |
void | dorst () |
Reset function. More... | |
void | clkcng () |
Deal with clock changes. More... | |
sc_core::sc_time | get_clock () |
Returns clock cycle time from master. More... | |
Public Member Functions inherited from AHBMaster<> | |
SC_HAS_PROCESS (AHBMaster) | |
AHBMaster (ModuleName nm, uint8_t hindex, uint8_t vendor, uint8_t device, uint8_t version, uint8_t irq, AbstractionLayer ambaLayer, BAR bar0=BAR(), BAR bar1=BAR(), BAR bar2=BAR(), BAR bar3=BAR()) | |
Constructor. More... | |
~AHBMaster () | |
Destructor. More... | |
virtual void | ahbread (uint32_t addr, unsigned char *data, uint32_t length) |
Read data from AHB (SC_ZERO_TIME version) More... | |
virtual void | ahbread (uint32_t addr, unsigned char *data, uint32_t length, sc_core::sc_time &delay, bool &cacheable, tlm::tlm_response_status &response) |
Read data from AHB. More... | |
virtual void | ahbread (uint32_t addr, unsigned char *data, uint32_t length, sc_core::sc_time &delay, bool &cacheable, bool is_lock, tlm::tlm_response_status &response) |
Read data from AHB. More... | |
virtual void | ahbwrite (uint32_t addr, unsigned char *data, uint32_t length) |
Write data to AHB (SC_ZERO_TIME version) More... | |
virtual void | ahbwrite (uint32_t addr, unsigned char *data, uint32_t length, sc_core::sc_time &delay, tlm::tlm_response_status &response) |
Write data to AHB. More... | |
virtual void | ahbwrite (uint32_t addr, unsigned char *data, uint32_t length, sc_core::sc_time &delay, bool is_lock, tlm::tlm_response_status &response) |
Write data to AHB. More... | |
virtual void | ahbaccess (tlm::tlm_generic_payload *trans) |
Generic AHB access function (blocking and non-blocking) More... | |
virtual uint32_t | ahbaccess_dbg (tlm::tlm_generic_payload *trans) |
Generic AHB debug access function. More... | |
virtual uint32_t | ahbread_dbg (uint32_t addr, unsigned char *data, uint32_t length) |
Debug read from AHB. More... | |
virtual uint32_t | ahbwrite_dbg (uint32_t addr, unsigned char *data, uint32_t length) |
Debug write from AHB. More... | |
virtual void | response_callback (tlm::tlm_generic_payload *trans) |
Function may be implemented by the child for payload checking (e.g. testbench master) More... | |
virtual tlm::tlm_sync_enum | nb_transport_bw (tlm::tlm_generic_payload &payload, tlm::tlm_phase &phase, sc_core::sc_time &delay) |
TLM non-blocking backward transport function. More... | |
void | ResponseThread () |
Thread for response processing (read) More... | |
void | DataThread () |
Thread for processing data-phase of write transactions. More... | |
virtual void | transport_statistics (tlm::tlm_generic_payload &gp) throw () |
Collect common transport statistics. More... | |
virtual void | print_transport_statistics (const char *name) const throw () |
Print common transport statistics. More... | |
Public Member Functions inherited from AHBDevice< BaseModule< DefaultBase > > | |
AHBDevice (ModuleName mn, uint32_t hindex, uint8_t vendorid, uint16_t deviceid, uint8_t version, uint8_t irq, BAR bar0, BAR bar1=BAR(), BAR bar2=BAR(), BAR bar3=BAR()) | |
AHBDevice (ModuleName mn) | |
void | init (uint32_t hindex, uint8_t vendorid, uint16_t deviceid, uint8_t version, uint8_t irq, BAR bar0, BAR bar1=BAR(), BAR bar2=BAR(), BAR bar3=BAR()) |
void | init_ahb_generics () |
virtual | ~AHBDevice () |
Empty destructor. More... | |
virtual const uint16_t | get_ahb_device_id () const throw () |
Returns the device id. More... | |
virtual const uint8_t | get_ahb_vendor_id () const throw () |
Returns the vendor id. More... | |
virtual const uint32_t * | get_ahb_device_info () throw () |
virtual const uint32_t | get_ahb_base_addr_ () const throw () |
virtual sc_dt::uint64 | get_ahb_base_addr () throw () |
virtual const uint32_t | get_ahb_size_ () const throw () |
virtual sc_dt::uint64 | get_ahb_size () throw () |
virtual const AMBADeviceType | get_ahb_bar_type (uint32_t bar) const throw () |
virtual const uint32_t | get_ahb_bar_base (uint32_t bar) const throw () |
virtual const uint32_t | get_ahb_bar_mask (uint32_t bar) const throw () |
virtual const uint32_t | get_ahb_bar_addr (uint32_t bar) const throw () |
virtual const uint32_t | get_ahb_bar_size (uint32_t bar) const throw () |
virtual const uint32_t | get_ahb_bar_relative_addr (uint32_t bar, uint32_t addr) const throw () |
const bool | get_ahb_bar_prefetchable (uint32_t bar) const throw () |
const bool | get_ahb_bar_cachable (uint32_t bar) const throw () |
virtual const uint32_t | get_ahb_hindex () const throw () |
Returns the bus id of the module (hindex) More... | |
virtual void | print_ahb_device_info (char *name) const |
Prints the device info of the device. More... | |
Public Member Functions inherited from BaseModule< DefaultBase > | |
BaseModule (ModuleName mn) | |
virtual | ~BaseModule () |
virtual void | init_generics () |
virtual void | init_registers () |
virtual void | init_counters () |
virtual void | init_power () |
Public Member Functions inherited from AHBDeviceBase | |
virtual | ~AHBDeviceBase () |
Empty destructor. More... | |
Public Member Functions inherited from CLKDevice | |
SR_HAS_SIGNALS (CLKDevice) | |
CLKDevice () | |
virtual | ~CLKDevice () |
virtual void | onrst (const bool &value, const sc_core::sc_time &time) |
virtual void | onclk (const sc_core::sc_time &value, const sc_core::sc_time &time) |
void | set_clk (sc_core::sc_clock &clk) |
void | set_clk (sc_core::sc_time period) |
void | set_clk (double period, sc_core::sc_time_unit base) |
Public Attributes | |
signal< std::pair< uint32_t, bool > >::out | irq |
SignalKit interrupt output. More... | |
Public Attributes inherited from AHBMaster<> | |
amba::amba_master_socket< 32 > | ahb |
The AHB master socketo. More... | |
Public Attributes inherited from CLKDevice | |
signal< bool >::in | rst |
Reset input signal. More... | |
signal< sc_core::sc_time >::in | clk |
Clock input signal. More... | |
Definition of class AHBIn.
AHBIn::SC_HAS_PROCESS | ( | AHBIn | ) |
AHBIn::SR_HAS_SIGNALS | ( | AHBIn | ) |
SignalKit interrupt output.
Referenced by gen_frame(), and sc_main().