gem5 v24.0.0.0
|
Simple address map implementation for the generic protocol. More...
#include <simpleAddressMap.h>
Public Member Functions | |
SimpleAddressMap () | |
void | checkSanity () |
Check for overlapping address ranges. | |
void | dumpMap () |
Print map. | |
unsigned int | decode (sc_dt::uint64 address_) |
Decode slave address. | |
const sc_dt::uint64 & | get_max () |
const sc_dt::uint64 & | get_min () |
void | insert (sc_dt::uint64 baseAddress_, sc_dt::uint64 highAddress_, unsigned int portNumber_) |
Insert a slave into the address map. | |
Private Types | |
typedef std::map< sc_dt::uint64, unsigned int > | mapType |
typedef std::map< sc_dt::uint64, unsignedint >::iterator | addressMapIterator |
Private Attributes | |
sc_dt::uint64 | retval |
mapType | m_addressMap |
the address map | |
Simple address map implementation for the generic protocol.
Definition at line 32 of file simpleAddressMap.h.
|
private |
Definition at line 35 of file simpleAddressMap.h.
|
private |
Definition at line 34 of file simpleAddressMap.h.
|
inline |
Definition at line 38 of file simpleAddressMap.h.
|
inline |
Check for overlapping address ranges.
Definition at line 45 of file simpleAddressMap.h.
References m_addressMap, and SC_REPORT_ERROR.
|
inline |
Decode slave address.
address_ | A slave address. |
Definition at line 85 of file simpleAddressMap.h.
References m_addressMap, and SC_REPORT_ERROR.
Referenced by MultiSocketSimpleSwitchAT::decode().
|
inline |
Print map.
Definition at line 65 of file simpleAddressMap.h.
References m_addressMap.
Referenced by MultiSocketSimpleSwitchAT::dump_status().
|
inline |
Definition at line 99 of file simpleAddressMap.h.
References m_addressMap, retval, and SC_REPORT_ERROR.
|
inline |
Definition at line 112 of file simpleAddressMap.h.
References m_addressMap, retval, and SC_REPORT_ERROR.
|
inline |
Insert a slave into the address map.
Definition at line 129 of file simpleAddressMap.h.
References m_addressMap, and SC_REPORT_ERROR.
Referenced by MultiSocketSimpleSwitchAT::bindTargetSocket().
|
private |
the address map
Definition at line 142 of file simpleAddressMap.h.
Referenced by checkSanity(), decode(), dumpMap(), get_max(), get_min(), and insert().
|
private |
Definition at line 140 of file simpleAddressMap.h.