Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | Public Attributes | List of all members
APBSlave Class Reference

#include <apbslave.h>

Inheritance diagram for APBSlave:
Collaboration diagram for APBSlave:

Public Member Functions

 APBSlave (ModuleName mn, uint32_t bus_id, uint8_t vendorid, uint16_t deviceid, uint8_t version, uint8_t irq, AMBADeviceType type, uint16_t mask, bool cacheable, bool prefetchable, uint16_t address)
 
 APBSlave (ModuleName mn)
 
 ~APBSlave ()
 
- Public Member Functions inherited from APBDevice< BaseModule< DefaultBase > >
 APBDevice (ModuleName mn, uint32_t bus_id, uint8_t vendorid, uint16_t deviceid, uint8_t version, uint8_t irq, AMBADeviceType type, uint16_t mask, bool cacheable, bool prefetchable, uint16_t address)
 
 APBDevice (ModuleName mn)
 
void init_apb (uint32_t pindex, uint8_t vendorid, uint16_t deviceid, uint8_t version, uint8_t irq, AMBADeviceType type, uint16_t mask, bool cacheable, bool prefetchable, uint16_t address)
 
void init_apb_generics ()
 Initialize the APBDevice generics. More...
 
virtual ~APBDevice ()
 Empty destructor. More...
 
virtual uint16_t get_apb_device_id () const
 Returns the device id. More...
 
virtual uint8_t get_apb_vendor_id () const
 Returns the vendor id. More...
 
virtual const uint32_tget_apb_device_info ()
 
virtual const AMBADeviceType get_apb_type () const
 
virtual uint32_t get_apb_base () const
 
virtual uint32_t get_apb_mask () const
 
virtual sc_dt::uint64 get_apb_base_addr ()
 
virtual uint32_t get_apb_base_addr_ () const
 
virtual sc_dt::uint64 get_apb_size ()
 
virtual uint32_t get_apb_size_ () const
 
virtual uint32_t get_apb_relative_addr (uint32_t addr) const
 
virtual uint32_t get_apb_pindex () const
 Returns the bus id of the module (pindex) More...
 
virtual void print_apb_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 APBDeviceBase
virtual ~APBDeviceBase ()
 Empty destructor. More...
 

Public Attributes

sr_register_bank< unsigned int,
unsigned int
r
 
APBSlaveSocket< 32, unsigned
int, unsigned int
apb
 

Additional Inherited Members

- Protected Attributes inherited from APBDevice< BaseModule< DefaultBase > >
uint32_t m_register [2]
 Impementation of the device register file. More...
 
sr_param< uint32_tg_pindex
 
sr_param< uint8_tg_pvendorid
 
sr_param< uint16_tg_pdeviceid
 
sr_param< uint8_tg_pversion
 
sr_param< uint8_tg_pirq
 
sr_param< uint32_tg_paddr
 
sr_param< uint32_tg_pmask
 
sr_param< uint32_tg_ptype
 
sr_param< boolg_pcacheable
 
sr_param< boolg_pprefetchable
 
- Protected Attributes inherited from BaseModule< DefaultBase >
ParameterAPIm_api
 Internal module gs param api instance. More...
 
ParameterArray m_generics
 Configuration generic container. More...
 
ParameterArray m_counters
 Performance counter container. More...
 
ParameterArray m_power
 Power counters container. More...
 

Constructor & Destructor Documentation

APBSlave::APBSlave ( ModuleName  mn,
uint32_t  bus_id,
uint8_t  vendorid,
uint16_t  deviceid,
uint8_t  version,
uint8_t  irq,
AMBADeviceType  type,
uint16_t  mask,
bool  cacheable,
bool  prefetchable,
uint16_t  address 
)
inline

References sc_register_bank_base::add_associate_busport(), apb, and r.

Here is the call graph for this function:

APBSlave::APBSlave ( ModuleName  mn)
inline

References sc_register_bank_base::add_associate_busport(), apb, and r.

Here is the call graph for this function:

APBSlave::~APBSlave ( )
inline

Member Data Documentation

APBSlaveSocket<32, unsigned int, unsigned int> APBSlave::apb
sr_register_bank<unsigned int, unsigned int> APBSlave::r

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