|
gem5
v19.0.0.0
|
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>
Classes | |
| struct | MemCtrlStats |
Public Types | |
| enum | BusState { READ, WRITE } |
| Bus Direction. More... | |
Public Types inherited from AbstractMemory | |
| typedef AbstractMemoryParams | Params |
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 () |
| void | init () override |
| Initializes this object. More... | |
| BusState | getBusState () const |
| Gets the current bus state. More... | |
| BusState | getBusStateNext () const |
| Gets the next bus state. More... | |
| bool | hasMaster (MasterID m_id) const |
| hasMaster returns true if the selected master(ID) has been registered in the memory controller, which happens if the memory controller has received at least a packet from that master. 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... | |
Public Member Functions inherited from AbstractMemory | |
| AbstractMemory (const Params *p) | |
| virtual | ~AbstractMemory () |
| bool | isNull () const |
| See if this is a null memory that should never store data and always return zero. More... | |
| void | setBackingStore (uint8_t *pmem_addr) |
| Set the host memory backing store to be used by this memory controller. More... | |
| const std::list< LockedAddr > & | getLockedAddrList () const |
| Get the list of locked addresses to allow checkpointing. More... | |
| void | addLockedAddr (LockedAddr addr) |
| Add a locked address to allow for checkpointing. More... | |
| System * | system () const |
| read the system pointer Implemented for completeness with the setter More... | |
| void | system (System *sys) |
| Set the system pointer on this memory This can't be done via a python parameter because the system needs pointers to all the memories and the reverse would create a cycle in the object graph. More... | |
| const Params * | params () const |
| AddrRange | getAddrRange () const |
| Get the address range. More... | |
| uint8_t * | toHostAddr (Addr addr) const |
| Transform a gem5 address space address into its physical counterpart in the host address space. More... | |
| uint64_t | size () const |
| Get the memory size. More... | |
| Addr | start () const |
| Get the start address. More... | |
| bool | isConfReported () const |
| Should this memory be passed to the kernel and part of the OS physical memory layout. More... | |
| bool | isInAddrMap () const |
| Some memories are used as shadow memories or should for other reasons not be part of the global address map. More... | |
| bool | isKvmMap () const |
| When shadow memories are in use, KVM may want to make one or the other, but cannot map both into the guest address space. More... | |
| void | access (PacketPtr pkt) |
| Perform an untimed memory access and update all the state (e.g. More... | |
| void | functionalAccess (PacketPtr pkt) |
| Perform an untimed memory read or write without changing anything but the memory itself. More... | |
Public Member Functions inherited from ClockedObject | |
| ClockedObject (const ClockedObjectParams *p) | |
| const Params * | params () const |
| void | serialize (CheckpointOut &cp) const override |
| Serialize an object. More... | |
| void | unserialize (CheckpointIn &cp) override |
| Unserialize an object. More... | |
| Enums::PwrState | pwrState () const |
| std::string | pwrStateName () const |
| std::vector< double > | pwrStateWeights () const |
| Returns the percentage residency for each power state. More... | |
| void | computeStats () |
| Record stats values like state residency by computing the time difference from previous update. More... | |
| void | pwrState (Enums::PwrState) |
Public Member Functions inherited from SimObject | |
| const Params * | params () const |
| SimObject (const Params *_params) | |
| virtual | ~SimObject () |
| virtual const std::string | name () const |
| 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... | |
| ProbeManager * | getProbeManager () |
| Get the probe manager for this object. More... | |
| virtual Port & | getPort (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 | |
| EventManager (EventManager &em) | |
| EventManager (EventManager *em) | |
| EventManager (EventQueue *eq) | |
| EventQueue * | eventQueue () 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) |
| void | setCurTick (Tick newVal) |
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 ()=delete | |
| Group (const Group &)=delete | |
| Group & | operator= (const Group &)=delete |
| 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... | |
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 | addMaster (const MasterID m_id) |
| Initializes dynamically counters and statistics for a given Master. More... | |
| void | logRequest (BusState dir, MasterID m_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, MasterID m_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 (MasterID m_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, MasterID m_id, uint8_t tgt_prio) |
| Escalates/demotes priority of all packets belonging to the passed master to given priority value. More... | |
| template<typename Queues > | |
| void | escalateQueues (Queues &queues, uint64_t queue_entry_size, MasterID m_id, uint8_t curr_prio, uint8_t tgt_prio) |
| Escalates/demotes priority of all packets belonging to the passed master to given priority value in a specified cluster of queues (e.g. More... | |
Protected Member Functions inherited from AbstractMemory | |
| bool | checkLockedAddrList (PacketPtr pkt) |
| void | trackLoadLocked (PacketPtr pkt) |
| bool | writeOK (PacketPtr pkt) |
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 | |
| Clocked & | operator= (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< Policy > | policy |
| QoS Policy, assigns QoS priority to the incoming packets. More... | |
| const std::unique_ptr< TurnaroundPolicy > | turnPolicy |
| QoS Bus Turnaround Policy: selects the bus direction (READ/WRITE) More... | |
| const std::unique_ptr< QueuePolicy > | queuePolicy |
| 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 masters, at every packet arrival. More... | |
| std::unordered_map< MasterID, const std::string > | masters |
| Hash of master ID - master name. More... | |
| std::unordered_map< MasterID, std::vector< uint64_t > > | packetPriorities |
| Hash of masters - number of packets queued per priority. More... | |
| std::unordered_map< MasterID, std::unordered_map< uint64_t, std::deque< uint64_t > > > | requestTimes |
| Hash of masters - address of request - queue of times of request. More... | |
| std::vector< Tick > | serviceTick |
| 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 |
Protected Attributes inherited from AbstractMemory | |
| AddrRange | range |
| uint8_t * | pmemAddr |
| MemBackdoor | backdoor |
| const bool | confTableReported |
| const bool | inAddrMap |
| const bool | kvmMap |
| std::list< LockedAddr > | lockedAddrList |
| System * | _system |
| Pointer to the System object. More... | |
| AbstractMemory::MemStats | stats |
Protected Attributes inherited from ClockedObject | |
| Enums::PwrState | _currPwrState |
| To keep track of the current power state. More... | |
| Tick | prvEvalTick |
| ClockedObject::ClockedObjectStats | stats |
Protected Attributes inherited from SimObject | |
| const SimObjectParams * | _params |
| Cached copy of the object parameters. More... | |
Protected Attributes inherited from EventManager | |
| EventQueue * | eventq |
| 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 SimObject * | find (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 () |
| Get the fully-qualified name of the active section. More... | |
| static void | serializeAll (const std::string &cpt_dir) |
| static void | unserializeGlobals (CheckpointIn &cp) |
Static Public Attributes inherited from Serializable | |
| static int | ckptCount = 0 |
| static int | ckptMaxCount = 0 |
| static int | ckptPrevCount = -1 |
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 61 of file mem_ctrl.hh.
| QoS::MemCtrl::MemCtrl | ( | const QoSMemCtrlParams * | p | ) |
QoS Memory base class.
| p | pointer to QoSMemCtrl parameters |
Definition at line 46 of file mem_ctrl.cc.
References _numPriorities, policy, queuePolicy, READ, readQueueSizes, serviceTick, turnPolicy, and writeQueueSizes.
Referenced by setCurrentBusState().
|
virtual |
Definition at line 78 of file mem_ctrl.cc.
Referenced by setCurrentBusState().
|
protected |
Initializes dynamically counters and statistics for a given Master.
| m_id | the master ID |
Definition at line 271 of file mem_ctrl.cc.
References AbstractMemory::_system, DPRINTF, System::getMasterName(), hasMaster(), masters, numPriorities(), and packetPriorities.
Referenced by escalate(), and logRequest().
|
protected |
Escalates/demotes priority of all packets belonging to the passed master to given priority value.
| queues | list of pointers to packet queues |
| queue_entry_size | size of an entry in the queue |
| m_id | master whose packets priority will change |
| tgt_prio | target priority value |
Definition at line 427 of file mem_ctrl.hh.
References addMaster(), DPRINTF, escalateQueues(), masters, numPriorities(), packetPriorities, ArmISA::q, readQueueSizes, and writeQueueSizes.
Referenced by qosSchedule(), and setCurrentBusState().
|
protected |
Escalates/demotes priority of all packets belonging to the passed master 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.
| queues | reference to packet queues |
| queue_entry_size | size of an entry in the queue |
| m_id | master whose packets priority will change |
| curr_prio | source queue priority value |
| tgt_prio | target queue priority value |
Definition at line 355 of file mem_ctrl.hh.
References divCeil(), DPRINTF, masters, packetPriorities, panic_if, readQueueSizes, and writeQueueSizes.
Referenced by escalate(), and setCurrentBusState().
|
inline |
Gets the current bus state.
Definition at line 280 of file mem_ctrl.hh.
References busState.
Referenced by QoS::TurnaroundPolicyIdeal::selectBusState(), and selectNextBusState().
|
inline |
Gets the next bus state.
Definition at line 287 of file mem_ctrl.hh.
References busStateNext.
|
inline |
Gets a READ queue size.
| prio | QoS Priority of the queue |
Definition at line 310 of file mem_ctrl.hh.
Referenced by QoS::TurnaroundPolicyIdeal::selectBusState().
|
inline |
Gets the last service tick related to a QoS Priority.
| prio | QoS Priority |
Definition at line 342 of file mem_ctrl.hh.
|
inline |
Gets the total combined READ queues size.
Definition at line 327 of file mem_ctrl.hh.
References totalReadQueueSize.
Referenced by selectNextBusState().
|
inline |
Gets the total combined WRITE queues size.
Definition at line 334 of file mem_ctrl.hh.
References totalWriteQueueSize.
Referenced by selectNextBusState().
|
inline |
Gets a WRITE queue size.
| prio | QoS Priority of the queue |
Definition at line 319 of file mem_ctrl.hh.
Referenced by QoS::TurnaroundPolicyIdeal::selectBusState().
|
inline |
hasMaster returns true if the selected master(ID) has been registered in the memory controller, which happens if the memory controller has received at least a packet from that master.
| m_id | master id to lookup |
Definition at line 299 of file mem_ctrl.hh.
Referenced by addMaster(), QoS::LrgQueuePolicy::enqueuePacket(), logResponse(), and QoS::LrgQueuePolicy::selectPacket().
|
overridevirtual |
Initializes this object.
Reimplemented from AbstractMemory.
Reimplemented in QoS::MemSinkCtrl.
Definition at line 82 of file mem_ctrl.cc.
References AbstractMemory::init().
Referenced by QoS::MemSinkCtrl::init(), and setCurrentBusState().
|
protected |
Called upon receiving a request or updates statistics and updates queues status.
| dir | request direction |
| m_id | master id |
| qos | packet qos value |
| addr | packet address |
| entries | number of entries to record |
Definition at line 88 of file mem_ctrl.cc.
References addMaster(), addr, QoS::MemCtrl::MemCtrlStats::avgPriority, QoS::MemCtrl::MemCtrlStats::avgPriorityDistance, curTick(), DPRINTF, ArmISA::i, ArmISA::j, masters, packetPriorities, READ, readQueueSizes, requestTimes, stats, totalReadQueueSize, totalWriteQueueSize, WRITE, and writeQueueSizes.
Referenced by DRAMCtrl::addToReadQueue(), DRAMCtrl::addToWriteQueue(), and QoS::MemSinkCtrl::recvTimingReq().
|
protected |
Called upon receiving a response, updates statistics and updates queues status.
| dir | response direction |
| m_id | master id |
| qos | packet qos value |
| addr | packet address |
| entries | number of entries to record |
| delay | response delay |
Definition at line 145 of file mem_ctrl.cc.
References curTick(), DPRINTF, hasMaster(), ArmISA::j, masters, packetPriorities, panic_if, QoS::MemCtrl::MemCtrlStats::priorityMaxLatency, QoS::MemCtrl::MemCtrlStats::priorityMinLatency, READ, readQueueSizes, requestTimes, SimClock::Float::s, stats, totalReadQueueSize, totalWriteQueueSize, Stats::VectorBase< Derived, Stor >::value(), WRITE, and writeQueueSizes.
Referenced by QoS::MemSinkCtrl::processNextReqEvent(), and DRAMCtrl::processNextReqEvent().
|
inline |
Gets the total number of priority levels in the QoS memory controller.
Definition at line 350 of file mem_ctrl.hh.
References _numPriorities.
Referenced by addMaster(), DRAMCtrl::doDRAMAccess(), escalate(), QoS::PropFairPolicy::initMaster(), QoS::MemSinkCtrl::MemSinkCtrl(), QoS::MemSinkCtrl::processNextReqEvent(), DRAMCtrl::processNextReqEvent(), qosSchedule(), QoS::MemCtrl::MemCtrlStats::regStats(), and QoS::TurnaroundPolicyIdeal::selectBusState().
|
protected |
Assign priority to a packet by executing the configured QoS policy.
| queues_ptr | list of pointers to packet queues |
| queue_entry_size | size in bytes per each packet in the queue |
| pkt | pointer to the Packet |
Definition at line 475 of file mem_ctrl.hh.
References AbstractMemory::_system, curTick(), DPRINTF, escalate(), System::getMasterName(), ArmISA::m, Packet::masterId(), masters, numPriorities(), qosPriorityEscalation, qosSyncroScheduler, Packet::qosValue(), schedule(), and serviceTick.
Referenced by QoS::MemSinkCtrl::recvTimingReq(), and DRAMCtrl::recvTimingReq().
|
protected |
Record statistics on turnarounds based on busStateNext and busState values.
Definition at line 355 of file mem_ctrl.cc.
References busState, busStateNext, READ, Stats::Group::stats, and WRITE.
Referenced by QoS::MemSinkCtrl::processNextReqEvent(), DRAMCtrl::processNextReqEvent(), and setCurrentBusState().
|
protected |
Definition at line 214 of file mem_ctrl.cc.
References DPRINTF, and policy.
Referenced by DRAMCtrl::activateBank(), DRAMCtrl::addToReadQueue(), DRAMCtrl::addToWriteQueue(), DRAMCtrl::drain(), DRAMCtrl::prechargeBank(), QoS::MemSinkCtrl::processNextReqEvent(), DRAMCtrl::processNextReqEvent(), DRAMCtrl::processRespondEvent(), qosSchedule(), QoS::MemSinkCtrl::recvTimingReq(), and schedule().
|
protected |
Definition at line 228 of file mem_ctrl.cc.
References DPRINTF, Packet::getSize(), policy, Packet::qosValue(), Packet::req, and schedule().
|
protected |
Returns next bus direction (READ or WRITE) based on configured policy.
Definition at line 243 of file mem_ctrl.cc.
References DPRINTF, getBusState(), getTotalReadQueueSize(), getTotalWriteQueueSize(), READ, turnPolicy, and WRITE.
Referenced by QoS::MemSinkCtrl::processNextReqEvent(), and DRAMCtrl::processNextReqEvent().
|
inlineprotected |
Set current bus direction (READ or WRITE) from next selected one.
Definition at line 218 of file mem_ctrl.hh.
References busStateNext, escalate(), escalateQueues(), init(), MemCtrl(), recordTurnaroundStats(), and ~MemCtrl().
Referenced by QoS::MemSinkCtrl::processNextReqEvent().
|
protected |
Number of configured QoS priorities.
Definition at line 78 of file mem_ctrl.hh.
Referenced by MemCtrl(), and numPriorities().
|
protected |
Bus state used to control the read/write switching and drive the scheduling of the next request.
Definition at line 121 of file mem_ctrl.hh.
Referenced by getBusState(), DRAMCtrl::minBankPrep(), QoS::MemSinkCtrl::processNextReqEvent(), DRAMCtrl::processNextReqEvent(), and recordTurnaroundStats().
|
protected |
bus state for next request event triggered
Definition at line 124 of file mem_ctrl.hh.
Referenced by DRAMCtrl::Rank::forceSelfRefreshExit(), getBusStateNext(), QoS::MemSinkCtrl::processNextReqEvent(), DRAMCtrl::processNextReqEvent(), recordTurnaroundStats(), and setCurrentBusState().
|
protected |
Hash of master ID - master name.
Definition at line 90 of file mem_ctrl.hh.
Referenced by addMaster(), escalate(), escalateQueues(), logRequest(), logResponse(), and qosSchedule().
|
protected |
Hash of masters - number of packets queued per priority.
Definition at line 93 of file mem_ctrl.hh.
Referenced by addMaster(), escalate(), escalateQueues(), logRequest(), and logResponse().
|
protected |
QoS Policy, assigns QoS priority to the incoming packets.
Definition at line 69 of file mem_ctrl.hh.
Referenced by MemCtrl(), and schedule().
|
protected |
Enables QoS priority escalation.
Definition at line 81 of file mem_ctrl.hh.
Referenced by qosSchedule().
|
protected |
Enables QoS synchronized scheduling invokes the QoS scheduler on all masters, at every packet arrival.
Definition at line 87 of file mem_ctrl.hh.
Referenced by qosSchedule().
|
protected |
QoS Queue Policy: selects packet among same-priority queue.
Definition at line 75 of file mem_ctrl.hh.
Referenced by MemCtrl(), QoS::MemSinkCtrl::processNextReqEvent(), and QoS::MemSinkCtrl::recvTimingReq().
|
protected |
Read request packets queue length in #packets, per QoS priority.
Definition at line 106 of file mem_ctrl.hh.
Referenced by escalate(), escalateQueues(), logRequest(), logResponse(), MemCtrl(), and QoS::MemSinkCtrl::processNextReqEvent().
|
protected |
Hash of masters - address of request - queue of times of request.
Definition at line 97 of file mem_ctrl.hh.
Referenced by logRequest(), and logResponse().
|
protected |
Vector of QoS priorities/last service time.
Refreshed at every qosSchedule call.
Definition at line 103 of file mem_ctrl.hh.
Referenced by MemCtrl(), and qosSchedule().
|
protected |
Referenced by logRequest(), and logResponse().
|
protected |
Total read request packets queue length in #packets.
Definition at line 112 of file mem_ctrl.hh.
Referenced by DRAMCtrl::addToReadQueue(), QoS::MemSinkCtrl::drain(), DRAMCtrl::drain(), getTotalReadQueueSize(), logRequest(), logResponse(), QoS::MemSinkCtrl::processNextReqEvent(), DRAMCtrl::processNextReqEvent(), DRAMCtrl::processRespondEvent(), QoS::MemSinkCtrl::readQueueFull(), and DRAMCtrl::readQueueFull().
|
protected |
Total write request packets queue length in #packets.
Definition at line 115 of file mem_ctrl.hh.
Referenced by DRAMCtrl::addToWriteQueue(), QoS::MemSinkCtrl::drain(), DRAMCtrl::drain(), getTotalWriteQueueSize(), logRequest(), logResponse(), QoS::MemSinkCtrl::processNextReqEvent(), DRAMCtrl::processNextReqEvent(), DRAMCtrl::processRespondEvent(), QoS::MemSinkCtrl::writeQueueFull(), and DRAMCtrl::writeQueueFull().
|
protected |
QoS Bus Turnaround Policy: selects the bus direction (READ/WRITE)
Definition at line 72 of file mem_ctrl.hh.
Referenced by MemCtrl(), DRAMCtrl::processNextReqEvent(), and selectNextBusState().
|
protected |
Write request packets queue length in #packets, per QoS priority.
Definition at line 109 of file mem_ctrl.hh.
Referenced by escalate(), escalateQueues(), logRequest(), logResponse(), MemCtrl(), and QoS::MemSinkCtrl::processNextReqEvent().