Transaction-Level Modeling Framework for Space Applications
#include <ahbdevicebase.h>
Public Member Functions | |
virtual | ~AHBDeviceBase () |
Empty destructor. More... | |
virtual const uint16_t | get_ahb_device_id () const =0 throw () |
Returns the device id. More... | |
virtual const uint8_t | get_ahb_vendor_id () const =0 throw () |
Returns the vendor id. More... | |
virtual const uint32_t * | get_ahb_device_info ()=0 throw () |
virtual const uint32_t | get_ahb_base_addr_ () const =0 throw () |
virtual sc_dt::uint64 | get_ahb_base_addr ()=0 throw () |
virtual const uint32_t | get_ahb_size_ () const =0 throw () |
virtual sc_dt::uint64 | get_ahb_size ()=0 throw () |
virtual const AMBADeviceType | get_ahb_bar_type (uint32_t bar) const =0 throw () |
virtual const uint32_t | get_ahb_bar_base (uint32_t bar) const =0 throw () |
virtual const uint32_t | get_ahb_bar_mask (uint32_t bar) const =0 throw () |
virtual const uint32_t | get_ahb_bar_addr (uint32_t bar) const =0 throw () |
virtual const uint32_t | get_ahb_bar_size (uint32_t bar) const =0 throw () |
virtual const uint32_t | get_ahb_bar_relative_addr (uint32_t bar, uint32_t addr) const =0 throw () |
virtual const uint32_t | get_ahb_hindex () const =0 throw () |
Returns the bus id of the module (hindex) More... | |
virtual void | print_ahb_device_info (char *name) const =0 |
Prints the device info of the device. More... | |
virtual void | transport_statistics (tlm::tlm_generic_payload &gp)=0 throw () |
Collect common transport statistics. More... | |
|
inlinevirtual |
Empty destructor.
Returns the Bus specific base address of the device. Returns the address of one bar in byte offset as seen from the bus.
bar | The selected bar |
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
Returns the Bus specific most significant 12bit of the bar base address Shifted to the lowest bits in the word.
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
Returns the Bus specific mask of the most significant 12bit of the bar address Shifted to the lowest bits in the word.
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
|
pure virtual |
Returns the BAR relative address
bar | The selected bar |
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
Returns the size of one bar in bytes as seen from the bus.
bar | The selected bar |
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
|
pure virtual |
Returns the type of the bar.
bar | The selected bar |
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
|
pure virtual |
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
Returns the Bus specific base address of the device. Legacy for AMBAKit Please use get_bar_address instead. It will work with gaps between slave areas.
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
Returns the device id.
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
Returns the device register file. A set of 8 registers as specified by the grlib manual. See section: 4.2.3 (Page 50)
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
Returns the bus id of the module (hindex)
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
|
pure virtual |
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
Returns the size of the hole device as seen from the bus. Legacy for AMBAKit Please use get_bar_size instead. It will work with gaps between the slave areas.
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
Returns the vendor id.
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
|
pure virtual |
Prints the device info of the device.
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, and AHBDevice< APBSlave >.
|
pure virtual |
Collect common transport statistics.
Implemented in AHBDevice< BASE >, AHBDevice< BaseModule< DefaultBase > >, AHBDevice< APBSlave >, AHBMaster< BASE >, AHBMaster<>, AHBSlave< BASE >, AHBSlave<>, and AHBSlave< APBSlave >.