gem5  v20.1.0.0
Public Member Functions | Private Types | Private Attributes | List of all members
SimpleAddressMap Class Reference

Simple address map implementation for the generic protocol. More...

#include <simpleAddressMap.h>

Public Member Functions

 SimpleAddressMap ()
 
void checkSanity ()
 Check for overlapping address ranges. More...
 
void dumpMap ()
 Print map. More...
 
unsigned int decode (sc_dt::uint64 address_)
 Decode slave address. More...
 
const sc_dt::uint64get_max ()
 
const sc_dt::uint64get_min ()
 
void insert (sc_dt::uint64 baseAddress_, sc_dt::uint64 highAddress_, unsigned int portNumber_)
 Insert a slave into the address map. More...
 

Private Types

typedef std::map< sc_dt::uint64, unsigned int > mapType
 
typedef std::map< sc_dt::uint64, unsigned int >::iterator addressMapIterator
 

Private Attributes

sc_dt::uint64 retval
 
mapType m_addressMap
 the address map More...
 

Detailed Description

Simple address map implementation for the generic protocol.

Definition at line 32 of file simpleAddressMap.h.

Member Typedef Documentation

◆ addressMapIterator

typedef std::map<sc_dt::uint64, unsigned int>::iterator SimpleAddressMap::addressMapIterator
private

Definition at line 52 of file simpleAddressMap.h.

◆ mapType

typedef std::map<sc_dt::uint64, unsigned int> SimpleAddressMap::mapType
private

Definition at line 51 of file simpleAddressMap.h.

Constructor & Destructor Documentation

◆ SimpleAddressMap()

SimpleAddressMap::SimpleAddressMap ( )
inline

Definition at line 55 of file simpleAddressMap.h.

Member Function Documentation

◆ checkSanity()

void SimpleAddressMap::checkSanity ( )
inline

Check for overlapping address ranges.

Definition at line 62 of file simpleAddressMap.h.

◆ decode()

unsigned int SimpleAddressMap::decode ( sc_dt::uint64  address_)
inline

Decode slave address.

Parameters
address_A slave address.
Returns
The decoded slave port number. On error, the value 255 is returned.

Definition at line 102 of file simpleAddressMap.h.

◆ dumpMap()

void SimpleAddressMap::dumpMap ( )
inline

Print map.

Definition at line 82 of file simpleAddressMap.h.

◆ get_max()

const sc_dt::uint64& SimpleAddressMap::get_max ( )
inline

Definition at line 116 of file simpleAddressMap.h.

◆ get_min()

const sc_dt::uint64& SimpleAddressMap::get_min ( )
inline

Definition at line 129 of file simpleAddressMap.h.

References m_addressMap, and SC_REPORT_ERROR.

◆ insert()

void SimpleAddressMap::insert ( sc_dt::uint64  baseAddress_,
sc_dt::uint64  highAddress_,
unsigned int  portNumber_ 
)
inline

Insert a slave into the address map.

Definition at line 146 of file simpleAddressMap.h.

Referenced by MultiSocketSimpleSwitchAT::MultiSocketSimpleSwitchAT().

Member Data Documentation

◆ m_addressMap

mapType SimpleAddressMap::m_addressMap
private

the address map

Definition at line 159 of file simpleAddressMap.h.

Referenced by get_min().

◆ retval

sc_dt::uint64 SimpleAddressMap::retval
private

Definition at line 157 of file simpleAddressMap.h.


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

Generated on Wed Sep 30 2020 14:02:31 for gem5 by doxygen 1.8.17