gem5  v20.1.0.0
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QoS::MemCtrl Class Reference

The QoS::MemCtrl is a base class for Memory objects which support QoS - it provides access to a set of QoS scheduling policies. More...

#include <mem_ctrl.hh>

Inheritance diagram for QoS::MemCtrl:
ClockedObject SimObject Clocked EventManager Serializable Drainable Stats::Group MemCtrl QoS::MemSinkCtrl

Classes

struct  MemCtrlStats
 

Public Types

enum  BusState { READ, WRITE }
 Bus Direction. More...
 
- Public Types inherited from ClockedObject
typedef ClockedObjectParams Params
 Parameters of ClockedObject. More...
 
- Public Types inherited from SimObject
typedef SimObjectParams Params
 

Public Member Functions

 MemCtrl (const QoSMemCtrlParams *)
 QoS Memory base class. More...
 
virtual ~MemCtrl ()
 
BusState getBusState () const
 Gets the current bus state. More...
 
BusState getBusStateNext () const
 Gets the next bus state. More...
 
bool hasRequestor (RequestorID id) const
 hasRequestor returns true if the selected requestor(ID) has been registered in the memory controller, which happens if the memory controller has received at least a packet from that requestor. More...
 
uint64_t getReadQueueSize (const uint8_t prio) const
 Gets a READ queue size. More...
 
uint64_t getWriteQueueSize (const uint8_t prio) const
 Gets a WRITE queue size. More...
 
uint64_t getTotalReadQueueSize () const
 Gets the total combined READ queues size. More...
 
uint64_t getTotalWriteQueueSize () const
 Gets the total combined WRITE queues size. More...
 
Tick getServiceTick (const uint8_t prio) const
 Gets the last service tick related to a QoS Priority. More...
 
uint8_t numPriorities () const
 Gets the total number of priority levels in the QoS memory controller. More...
 
Systemsystem () const
 read the system pointer More...
 
- Public Member Functions inherited from ClockedObject
 ClockedObject (const ClockedObjectParams *p)
 
const Paramsparams () const
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- Public Member Functions inherited from SimObject
const Paramsparams () const
 
 SimObject (const Params *_params)
 
virtual ~SimObject ()
 
virtual const std::string name () const
 
virtual void init ()
 init() is called after all C++ SimObjects have been created and all ports are connected. More...
 
virtual void loadState (CheckpointIn &cp)
 loadState() is called on each SimObject when restoring from a checkpoint. More...
 
virtual void initState ()
 initState() is called on each SimObject when not restoring from a checkpoint. More...
 
virtual void regProbePoints ()
 Register probe points for this object. More...
 
virtual void regProbeListeners ()
 Register probe listeners for this object. More...
 
ProbeManagergetProbeManager ()
 Get the probe manager for this object. More...
 
virtual PortgetPort (const std::string &if_name, PortID idx=InvalidPortID)
 Get a port with a given name and index. More...
 
virtual void startup ()
 startup() is the final initialization call before simulation. More...
 
DrainState drain () override
 Provide a default implementation of the drain interface for objects that don't need draining. More...
 
virtual void memWriteback ()
 Write back dirty buffers to memory using functional writes. More...
 
virtual void memInvalidate ()
 Invalidate the contents of memory buffers. More...
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- Public Member Functions inherited from EventManager
EventQueueeventQueue () const
 
void schedule (Event &event, Tick when)
 
void deschedule (Event &event)
 
void reschedule (Event &event, Tick when, bool always=false)
 
void schedule (Event *event, Tick when)
 
void deschedule (Event *event)
 
void reschedule (Event *event, Tick when, bool always=false)
 
void wakeupEventQueue (Tick when=(Tick) -1)
 This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. More...
 
void setCurTick (Tick newVal)
 
 EventManager (EventManager &em)
 Event manger manages events in the event queue. More...
 
 EventManager (EventManager *em)
 
 EventManager (EventQueue *eq)
 
- Public Member Functions inherited from Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 
- Public Member Functions inherited from Drainable
DrainState drainState () const
 Return the current drain state of an object. More...
 
virtual void notifyFork ()
 Notify a child process of a fork. More...
 
- Public Member Functions inherited from Stats::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group. More...
 
virtual ~Group ()
 
virtual void regStats ()
 Callback to set stat parameters. More...
 
virtual void resetStats ()
 Callback to reset stats. More...
 
virtual void preDumpStats ()
 Callback before stats are dumped. More...
 
void addStat (Stats::Info *info)
 Register a stat with this group. More...
 
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object. More...
 
const std::vector< Info * > & getStats () const
 Get all stats associated with this object. More...
 
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block. More...
 
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group. More...
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 
- Public Member Functions inherited from Clocked
void updateClockPeriod ()
 Update the tick to the current tick. More...
 
Tick clockEdge (Cycles cycles=Cycles(0)) const
 Determine the tick when a cycle begins, by default the current one, but the argument also enables the caller to determine a future cycle. More...
 
Cycles curCycle () const
 Determine the current cycle, corresponding to a tick aligned to a clock edge. More...
 
Tick nextCycle () const
 Based on the clock of the object, determine the start tick of the first cycle that is at least one cycle in the future. More...
 
uint64_t frequency () const
 
Tick clockPeriod () const
 
double voltage () const
 
Cycles ticksToCycles (Tick t) const
 
Tick cyclesToTicks (Cycles c) const
 

Protected Member Functions

void addRequestor (const RequestorID id)
 Initializes dynamically counters and statistics for a given Requestor. More...
 
void logRequest (BusState dir, RequestorID id, uint8_t qos, Addr addr, uint64_t entries)
 Called upon receiving a request or updates statistics and updates queues status. More...
 
void logResponse (BusState dir, RequestorID id, uint8_t qos, Addr addr, uint64_t entries, double delay)
 Called upon receiving a response, updates statistics and updates queues status. More...
 
template<typename Queues >
uint8_t qosSchedule (std::initializer_list< Queues * > queues_ptr, uint64_t queue_entry_size, const PacketPtr pkt)
 Assign priority to a packet by executing the configured QoS policy. More...
 
uint8_t schedule (RequestorID id, uint64_t data)
 
uint8_t schedule (const PacketPtr pkt)
 
BusState selectNextBusState ()
 Returns next bus direction (READ or WRITE) based on configured policy. More...
 
void setCurrentBusState ()
 Set current bus direction (READ or WRITE) from next selected one. More...
 
void recordTurnaroundStats ()
 Record statistics on turnarounds based on busStateNext and busState values. More...
 
template<typename Queues >
void escalate (std::initializer_list< Queues * > queues, uint64_t queue_entry_size, RequestorID id, uint8_t tgt_prio)
 Escalates/demotes priority of all packets belonging to the passed requestor to given priority value. More...
 
template<typename Queues >
void escalateQueues (Queues &queues, uint64_t queue_entry_size, RequestorID id, uint8_t curr_prio, uint8_t tgt_prio)
 Escalates/demotes priority of all packets belonging to the passed requestor to given priority value in a specified cluster of queues (e.g. More...
 
- Protected Member Functions inherited from Drainable
 Drainable ()
 
virtual ~Drainable ()
 
virtual void drainResume ()
 Resume execution after a successful drain. More...
 
void signalDrainDone () const
 Signal that an object is drained. More...
 
- Protected Member Functions inherited from Clocked
 Clocked (ClockDomain &clk_domain)
 Create a clocked object and set the clock domain based on the parameters. More...
 
 Clocked (Clocked &)=delete
 
Clockedoperator= (Clocked &)=delete
 
virtual ~Clocked ()
 Virtual destructor due to inheritance. More...
 
void resetClock () const
 Reset the object's clock using the current global tick value. More...
 
virtual void clockPeriodUpdated ()
 A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed. More...
 

Protected Attributes

const std::unique_ptr< Policypolicy
 QoS Policy, assigns QoS priority to the incoming packets. More...
 
const std::unique_ptr< TurnaroundPolicyturnPolicy
 QoS Bus Turnaround Policy: selects the bus direction (READ/WRITE) More...
 
const std::unique_ptr< QueuePolicyqueuePolicy
 QoS Queue Policy: selects packet among same-priority queue. More...
 
const uint8_t _numPriorities
 Number of configured QoS priorities. More...
 
const bool qosPriorityEscalation
 Enables QoS priority escalation. More...
 
const bool qosSyncroScheduler
 Enables QoS synchronized scheduling invokes the QoS scheduler on all requestors, at every packet arrival. More...
 
std::unordered_map< RequestorID, const std::string > requestors
 Hash of requestor ID - requestor name. More...
 
std::unordered_map< RequestorID, std::vector< uint64_t > > packetPriorities
 Hash of requestors - number of packets queued per priority. More...
 
std::unordered_map< RequestorID, std::unordered_map< uint64_t, std::deque< uint64_t > > > requestTimes
 Hash of requestors - address of request - queue of times of request. More...
 
std::vector< TickserviceTick
 Vector of QoS priorities/last service time. More...
 
std::vector< uint64_t > readQueueSizes
 Read request packets queue length in #packets, per QoS priority. More...
 
std::vector< uint64_t > writeQueueSizes
 Write request packets queue length in #packets, per QoS priority. More...
 
uint64_t totalReadQueueSize
 Total read request packets queue length in #packets. More...
 
uint64_t totalWriteQueueSize
 Total write request packets queue length in #packets. More...
 
BusState busState
 Bus state used to control the read/write switching and drive the scheduling of the next request. More...
 
BusState busStateNext
 bus state for next request event triggered More...
 
QoS::MemCtrl::MemCtrlStats stats
 
System_system
 Pointer to the System object. More...
 
- Protected Attributes inherited from SimObject
const SimObjectParams * _params
 Cached copy of the object parameters. More...
 
- Protected Attributes inherited from EventManager
EventQueueeventq
 A pointer to this object's event queue. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SimObject
static void serializeAll (CheckpointOut &cp)
 Serialize all SimObjects in the system. More...
 
static SimObjectfind (const char *name)
 Find the SimObject with the given name and return a pointer to it. More...
 
- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 Serializes all the SimObjects. More...
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Public Attributes inherited from ClockedObject
PowerStatepowerState
 

Detailed Description

The QoS::MemCtrl is a base class for Memory objects which support QoS - it provides access to a set of QoS scheduling policies.

Definition at line 59 of file mem_ctrl.hh.

Member Enumeration Documentation

◆ BusState

Bus Direction.

Enumerator
READ 
WRITE 

Definition at line 63 of file mem_ctrl.hh.

Constructor & Destructor Documentation

◆ MemCtrl()

MemCtrl::MemCtrl ( const QoSMemCtrlParams *  p)

QoS Memory base class.

Parameters
ppointer to QoSMemCtrl parameters

Definition at line 44 of file mem_ctrl.cc.

References _numPriorities, policy, queuePolicy, readQueueSizes, serviceTick, turnPolicy, and writeQueueSizes.

◆ ~MemCtrl()

MemCtrl::~MemCtrl ( )
virtual

Definition at line 77 of file mem_ctrl.cc.

Member Function Documentation

◆ addRequestor()

void MemCtrl::addRequestor ( const RequestorID  id)
protected

Initializes dynamically counters and statistics for a given Requestor.

Parameters
idthe requestor's ID

Definition at line 264 of file mem_ctrl.cc.

References _system, DPRINTF, System::getRequestorName(), hasRequestor(), ArmISA::id, numPriorities(), packetPriorities, and requestors.

Referenced by escalate(), and logRequest().

◆ escalate()

template<typename Queues >
void MemCtrl::escalate ( std::initializer_list< Queues * >  queues,
uint64_t  queue_entry_size,
RequestorID  id,
uint8_t  tgt_prio 
)
protected

Escalates/demotes priority of all packets belonging to the passed requestor to given priority value.

Parameters
queueslist of pointers to packet queues
queue_entry_sizesize of an entry in the queue
idrequestor whose packets priority will change
tgt_priotarget priority value

Definition at line 427 of file mem_ctrl.hh.

References addRequestor(), DPRINTF, escalateQueues(), numPriorities(), packetPriorities, ArmISA::q, readQueueSizes, requestors, and writeQueueSizes.

Referenced by qosSchedule().

◆ escalateQueues()

template<typename Queues >
void MemCtrl::escalateQueues ( Queues &  queues,
uint64_t  queue_entry_size,
RequestorID  id,
uint8_t  curr_prio,
uint8_t  tgt_prio 
)
protected

Escalates/demotes priority of all packets belonging to the passed requestor to given priority value in a specified cluster of queues (e.g.

read queues or write queues) which is passed as an argument to the function. The curr_prio/tgt_prio parameters are queue selectors in the queue cluster.

Parameters
queuesreference to packet queues
queue_entry_sizesize of an entry in the queue
idrequestor whose packets priority will change
curr_priosource queue priority value
tgt_priotarget queue priority value

Definition at line 355 of file mem_ctrl.hh.

References divCeil(), DPRINTF, ArmISA::id, packetPriorities, panic_if, readQueueSizes, requestors, and writeQueueSizes.

Referenced by escalate().

◆ getBusState()

BusState QoS::MemCtrl::getBusState ( ) const
inline

Gets the current bus state.

Returns
current bus state

Definition at line 276 of file mem_ctrl.hh.

References busState.

Referenced by QoS::TurnaroundPolicyIdeal::selectBusState(), and selectNextBusState().

◆ getBusStateNext()

BusState QoS::MemCtrl::getBusStateNext ( ) const
inline

Gets the next bus state.

Returns
next bus state

Definition at line 283 of file mem_ctrl.hh.

References busStateNext.

◆ getReadQueueSize()

uint64_t QoS::MemCtrl::getReadQueueSize ( const uint8_t  prio) const
inline

Gets a READ queue size.

Parameters
prioQoS Priority of the queue
Returns
queue size in packets

Definition at line 306 of file mem_ctrl.hh.

References readQueueSizes.

Referenced by QoS::TurnaroundPolicyIdeal::selectBusState().

◆ getServiceTick()

Tick QoS::MemCtrl::getServiceTick ( const uint8_t  prio) const
inline

Gets the last service tick related to a QoS Priority.

Parameters
prioQoS Priority
Returns
tick

Definition at line 338 of file mem_ctrl.hh.

References serviceTick.

◆ getTotalReadQueueSize()

uint64_t QoS::MemCtrl::getTotalReadQueueSize ( ) const
inline

Gets the total combined READ queues size.

Returns
total queues size in packets

Definition at line 323 of file mem_ctrl.hh.

References totalReadQueueSize.

Referenced by selectNextBusState().

◆ getTotalWriteQueueSize()

uint64_t QoS::MemCtrl::getTotalWriteQueueSize ( ) const
inline

Gets the total combined WRITE queues size.

Returns
total queues size in packets

Definition at line 330 of file mem_ctrl.hh.

References totalWriteQueueSize.

Referenced by selectNextBusState().

◆ getWriteQueueSize()

uint64_t QoS::MemCtrl::getWriteQueueSize ( const uint8_t  prio) const
inline

Gets a WRITE queue size.

Parameters
prioQoS Priority of the queue
Returns
queue size in packets

Definition at line 315 of file mem_ctrl.hh.

References writeQueueSizes.

Referenced by QoS::TurnaroundPolicyIdeal::selectBusState().

◆ hasRequestor()

bool QoS::MemCtrl::hasRequestor ( RequestorID  id) const
inline

hasRequestor returns true if the selected requestor(ID) has been registered in the memory controller, which happens if the memory controller has received at least a packet from that requestor.

Parameters
idrequestor id to lookup
Returns
true if the memory controller has received a packet from the requestor, false otherwise.

Definition at line 295 of file mem_ctrl.hh.

References requestors.

Referenced by addRequestor(), QoS::LrgQueuePolicy::enqueuePacket(), logResponse(), and QoS::LrgQueuePolicy::selectPacket().

◆ logRequest()

void MemCtrl::logRequest ( BusState  dir,
RequestorID  id,
uint8_t  qos,
Addr  addr,
uint64_t  entries 
)
protected

Called upon receiving a request or updates statistics and updates queues status.

Parameters
dirrequest direction
idrequestor id
qospacket qos value
addrpacket address
entriesnumber of entries to record

Definition at line 81 of file mem_ctrl.cc.

References addr, addRequestor(), QoS::MemCtrl::MemCtrlStats::avgPriority, QoS::MemCtrl::MemCtrlStats::avgPriorityDistance, curTick(), DPRINTF, ArmISA::i, ArmISA::id, ArmISA::j, packetPriorities, READ, readQueueSizes, requestors, requestTimes, stats, totalReadQueueSize, totalWriteQueueSize, WRITE, and writeQueueSizes.

Referenced by MemCtrl::addToReadQueue(), MemCtrl::addToWriteQueue(), and QoS::MemSinkCtrl::recvTimingReq().

◆ logResponse()

void MemCtrl::logResponse ( BusState  dir,
RequestorID  id,
uint8_t  qos,
Addr  addr,
uint64_t  entries,
double  delay 
)
protected

Called upon receiving a response, updates statistics and updates queues status.

Parameters
dirresponse direction
idrequestor id
qospacket qos value
addrpacket address
entriesnumber of entries to record
delayresponse delay

Definition at line 138 of file mem_ctrl.cc.

References addr, curTick(), DPRINTF, hasRequestor(), ArmISA::id, ArmISA::j, packetPriorities, panic_if, QoS::MemCtrl::MemCtrlStats::priorityMaxLatency, QoS::MemCtrl::MemCtrlStats::priorityMinLatency, READ, readQueueSizes, requestors, requestTimes, SimClock::Float::s, stats, totalReadQueueSize, totalWriteQueueSize, Stats::VectorBase< Derived, Stor >::value(), WRITE, and writeQueueSizes.

Referenced by QoS::MemSinkCtrl::processNextReqEvent(), and MemCtrl::processNextReqEvent().

◆ numPriorities()

uint8_t QoS::MemCtrl::numPriorities ( ) const
inline

Gets the total number of priority levels in the QoS memory controller.

Returns
total number of priority levels

Definition at line 346 of file mem_ctrl.hh.

References _numPriorities.

Referenced by addRequestor(), DRAMInterface::doBurstAccess(), escalate(), QoS::PropFairPolicy::initRequestor(), QoS::MemSinkCtrl::MemSinkCtrl(), QoS::MemSinkCtrl::processNextReqEvent(), MemCtrl::processNextReqEvent(), qosSchedule(), and QoS::TurnaroundPolicyIdeal::selectBusState().

◆ qosSchedule()

template<typename Queues >
uint8_t MemCtrl::qosSchedule ( std::initializer_list< Queues * >  queues_ptr,
uint64_t  queue_entry_size,
const PacketPtr  pkt 
)
protected

Assign priority to a packet by executing the configured QoS policy.

Parameters
queues_ptrlist of pointers to packet queues
queue_entry_sizesize in bytes per each packet in the queue
pktpointer to the Packet
Returns
a QoS priority value

Definition at line 475 of file mem_ctrl.hh.

References _system, curTick(), DPRINTF, escalate(), System::getRequestorName(), numPriorities(), qosPriorityEscalation, qosSyncroScheduler, Packet::qosValue(), Packet::requestorId(), requestors, schedule(), and serviceTick.

Referenced by QoS::MemSinkCtrl::recvTimingReq(), and MemCtrl::recvTimingReq().

◆ recordTurnaroundStats()

void MemCtrl::recordTurnaroundStats ( )
protected

◆ schedule() [1/2]

uint8_t MemCtrl::schedule ( const PacketPtr  pkt)
protected

Definition at line 221 of file mem_ctrl.cc.

References DPRINTF, Packet::getSize(), policy, Packet::qosValue(), Packet::req, and schedule().

◆ schedule() [2/2]

uint8_t MemCtrl::schedule ( RequestorID  id,
uint64_t  data 
)
protected

◆ selectNextBusState()

MemCtrl::BusState MemCtrl::selectNextBusState ( )
protected

Returns next bus direction (READ or WRITE) based on configured policy.

Definition at line 236 of file mem_ctrl.cc.

References DPRINTF, getBusState(), getTotalReadQueueSize(), getTotalWriteQueueSize(), READ, turnPolicy, and WRITE.

Referenced by QoS::MemSinkCtrl::processNextReqEvent(), and MemCtrl::processNextReqEvent().

◆ setCurrentBusState()

void QoS::MemCtrl::setCurrentBusState ( )
inlineprotected

Set current bus direction (READ or WRITE) from next selected one.

Definition at line 219 of file mem_ctrl.hh.

References busState, and busStateNext.

Referenced by QoS::MemSinkCtrl::processNextReqEvent().

◆ system()

System* QoS::MemCtrl::system ( ) const
inline

read the system pointer

Returns
pointer to the system object

Definition at line 350 of file mem_ctrl.hh.

References _system.

Referenced by MemCtrl::drainResume(), QoS::PropFairPolicy::initRequestor(), QoS::Policy::pair(), QoS::MemCtrl::MemCtrlStats::regStats(), QoS::FixedPriorityPolicy::schedule(), and MemCtrl::startup().

Member Data Documentation

◆ _numPriorities

const uint8_t QoS::MemCtrl::_numPriorities
protected

Number of configured QoS priorities.

Definition at line 76 of file mem_ctrl.hh.

Referenced by MemCtrl(), and numPriorities().

◆ _system

System* QoS::MemCtrl::_system
protected

◆ busState

BusState QoS::MemCtrl::busState
protected

Bus state used to control the read/write switching and drive the scheduling of the next request.

Definition at line 119 of file mem_ctrl.hh.

Referenced by getBusState(), MemCtrl::inReadBusState(), MemCtrl::inWriteBusState(), QoS::MemSinkCtrl::processNextReqEvent(), MemCtrl::processNextReqEvent(), recordTurnaroundStats(), and setCurrentBusState().

◆ busStateNext

BusState QoS::MemCtrl::busStateNext
protected

◆ packetPriorities

std::unordered_map<RequestorID, std::vector<uint64_t> > QoS::MemCtrl::packetPriorities
protected

Hash of requestors - number of packets queued per priority.

Definition at line 91 of file mem_ctrl.hh.

Referenced by addRequestor(), escalate(), escalateQueues(), logRequest(), and logResponse().

◆ policy

const std::unique_ptr<Policy> QoS::MemCtrl::policy
protected

QoS Policy, assigns QoS priority to the incoming packets.

Definition at line 67 of file mem_ctrl.hh.

Referenced by MemCtrl(), and schedule().

◆ qosPriorityEscalation

const bool QoS::MemCtrl::qosPriorityEscalation
protected

Enables QoS priority escalation.

Definition at line 79 of file mem_ctrl.hh.

Referenced by qosSchedule().

◆ qosSyncroScheduler

const bool QoS::MemCtrl::qosSyncroScheduler
protected

Enables QoS synchronized scheduling invokes the QoS scheduler on all requestors, at every packet arrival.

Definition at line 85 of file mem_ctrl.hh.

Referenced by qosSchedule().

◆ queuePolicy

const std::unique_ptr<QueuePolicy> QoS::MemCtrl::queuePolicy
protected

QoS Queue Policy: selects packet among same-priority queue.

Definition at line 73 of file mem_ctrl.hh.

Referenced by MemCtrl(), QoS::MemSinkCtrl::processNextReqEvent(), and QoS::MemSinkCtrl::recvTimingReq().

◆ readQueueSizes

std::vector<uint64_t> QoS::MemCtrl::readQueueSizes
protected

Read request packets queue length in #packets, per QoS priority.

Definition at line 104 of file mem_ctrl.hh.

Referenced by escalate(), escalateQueues(), getReadQueueSize(), logRequest(), logResponse(), MemCtrl(), and QoS::MemSinkCtrl::processNextReqEvent().

◆ requestors

std::unordered_map<RequestorID, const std::string> QoS::MemCtrl::requestors
protected

Hash of requestor ID - requestor name.

Definition at line 88 of file mem_ctrl.hh.

Referenced by addRequestor(), escalate(), escalateQueues(), hasRequestor(), logRequest(), logResponse(), and qosSchedule().

◆ requestTimes

std::unordered_map<RequestorID, std::unordered_map<uint64_t, std::deque<uint64_t> > > QoS::MemCtrl::requestTimes
protected

Hash of requestors - address of request - queue of times of request.

Definition at line 95 of file mem_ctrl.hh.

Referenced by logRequest(), and logResponse().

◆ serviceTick

std::vector<Tick> QoS::MemCtrl::serviceTick
protected

Vector of QoS priorities/last service time.

Refreshed at every qosSchedule call.

Definition at line 101 of file mem_ctrl.hh.

Referenced by getServiceTick(), MemCtrl(), and qosSchedule().

◆ stats

QoS::MemCtrl::MemCtrlStats QoS::MemCtrl::stats
protected

◆ totalReadQueueSize

uint64_t QoS::MemCtrl::totalReadQueueSize
protected

◆ totalWriteQueueSize

uint64_t QoS::MemCtrl::totalWriteQueueSize
protected

◆ turnPolicy

const std::unique_ptr<TurnaroundPolicy> QoS::MemCtrl::turnPolicy
protected

QoS Bus Turnaround Policy: selects the bus direction (READ/WRITE)

Definition at line 70 of file mem_ctrl.hh.

Referenced by MemCtrl(), MemCtrl::processNextReqEvent(), and selectNextBusState().

◆ writeQueueSizes

std::vector<uint64_t> QoS::MemCtrl::writeQueueSizes
protected

Write request packets queue length in #packets, per QoS priority.

Definition at line 107 of file mem_ctrl.hh.

Referenced by escalate(), escalateQueues(), getWriteQueueSize(), logRequest(), logResponse(), MemCtrl(), and QoS::MemSinkCtrl::processNextReqEvent().


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

Generated on Wed Sep 30 2020 14:03:08 for gem5 by doxygen 1.8.17