42 #include "params/QoSTurnaroundPolicyIdeal.hh" 61 for (uint8_t
i = 0;
i < num_priorities;
i++) {
64 uint8_t queue_idx = num_priorities -
i - 1;
71 if ((readq_size == 0) && (writeq_size == 0)) {
76 if (readq_size == 0) {
78 }
else if (writeq_size == 0) {
87 "QoSMemoryTurnaround::QoSTurnaroundPolicyIdeal - " 88 "QoS priority %d queues %d, %d triggering bus %s " 89 "in state %s\n", queue_idx, readq_size, writeq_size,
91 "turnaround" :
"staying",
103 QoSTurnaroundPolicyIdealParams::create()
TurnaroundPolicyIdeal(const Params *)
Ideal QoS Bus Turnaround policy.
QoSTurnaroundPolicyParams Params
uint8_t numPriorities() const
Gets the total number of priority levels in the QoS memory controller.
uint64_t getWriteQueueSize(const uint8_t prio) const
Gets a WRITE queue size.
Base class for QoS Bus Turnaround policies.
uint64_t getReadQueueSize(const uint8_t prio) const
Gets a READ queue size.
virtual ~TurnaroundPolicyIdeal()
BusState getBusState() const
Gets the current bus state.
MemCtrl * memCtrl
Pointer to container object.
virtual MemCtrl::BusState selectBusState() override
Bus Selection function.