gem5
v20.0.0.2
|
A DRAM packet stores packets along with the timestamp of when the packet entered the queue, and also the decoded address. More...
Public Member Functions | |
void | qosValue (const uint8_t qv) |
Set the packet QoS value (interface compatibility with Packet) More... | |
uint8_t | qosValue () const |
Get the packet QoS value (interface compatibility with Packet) More... | |
MasterID | masterId () const |
Get the packet MasterID (interface compatibility with Packet) More... | |
unsigned int | getSize () const |
Get the packet size (interface compatibility with Packet) More... | |
Addr | getAddr () const |
Get the packet address (interface compatibility with Packet) More... | |
bool | isRead () const |
Return true if its a read packet (interface compatibility with Packet) More... | |
bool | isWrite () const |
Return true if its a write packet (interface compatibility with Packet) More... | |
DRAMPacket (PacketPtr _pkt, bool is_read, uint8_t _rank, uint8_t _bank, uint32_t _row, uint16_t bank_id, Addr _addr, unsigned int _size, Bank &bank_ref, Rank &rank_ref) | |
Public Attributes | |
const Tick | entryTime |
When did request enter the controller. More... | |
Tick | readyTime |
When will request leave the controller. More... | |
const PacketPtr | pkt |
This comes from the outside world. More... | |
const MasterID | _masterId |
MasterID associated with the packet. More... | |
const bool | read |
const uint8_t | rank |
Will be populated by address decoder. More... | |
const uint8_t | bank |
const uint32_t | row |
const uint16_t | bankId |
Bank id is calculated considering banks in all the ranks eg: 2 ranks each with 8 banks, then bankId = 0 –> rank0, bank0 and bankId = 8 –> rank1, bank0. More... | |
Addr | addr |
The starting address of the DRAM packet. More... | |
unsigned int | size |
The size of this dram packet in bytes It is always equal or smaller than DRAM burst size. More... | |
BurstHelper * | burstHelper |
A pointer to the BurstHelper if this DRAMPacket is a split packet If not a split packet (common case), this is set to NULL. More... | |
Bank & | bankRef |
Rank & | rankRef |
uint8_t | _qosValue |
QoS value of the encapsulated packet read at queuing time. More... | |
A DRAM packet stores packets along with the timestamp of when the packet entered the queue, and also the decoded address.
Definition at line 607 of file dram_ctrl.hh.
|
inline |
Definition at line 707 of file dram_ctrl.hh.
|
inline |
Get the packet address (interface compatibility with Packet)
Definition at line 692 of file dram_ctrl.hh.
References addr.
|
inline |
Get the packet size (interface compatibility with Packet)
Definition at line 686 of file dram_ctrl.hh.
References AbstractMemory::size().
|
inline |
Return true if its a read packet (interface compatibility with Packet)
Definition at line 698 of file dram_ctrl.hh.
Referenced by DRAMCtrl::chooseNextFRFCFS(), and DRAMCtrl::doDRAMAccess().
|
inline |
Return true if its a write packet (interface compatibility with Packet)
Definition at line 704 of file dram_ctrl.hh.
|
inline |
Get the packet MasterID (interface compatibility with Packet)
Definition at line 680 of file dram_ctrl.hh.
Referenced by DRAMCtrl::doDRAMAccess().
|
inline |
Set the packet QoS value (interface compatibility with Packet)
Definition at line 668 of file dram_ctrl.hh.
Referenced by DRAMCtrl::addToReadQueue(), and DRAMCtrl::addToWriteQueue().
|
inline |
Get the packet QoS value (interface compatibility with Packet)
Definition at line 674 of file dram_ctrl.hh.
const MasterID DRAMCtrl::DRAMPacket::_masterId |
MasterID associated with the packet.
Definition at line 621 of file dram_ctrl.hh.
uint8_t DRAMCtrl::DRAMPacket::_qosValue |
QoS value of the encapsulated packet read at queuing time.
Definition at line 662 of file dram_ctrl.hh.
Addr DRAMCtrl::DRAMPacket::addr |
The starting address of the DRAM packet.
This address could be unaligned to burst size boundaries. The reason is to keep the address offset so we can accurately check incoming read packets with packets in the write queue.
Definition at line 643 of file dram_ctrl.hh.
Referenced by DRAMCtrl::addToReadQueue(), DRAMCtrl::addToWriteQueue(), and DRAMCtrl::doDRAMAccess().
const uint8_t DRAMCtrl::DRAMPacket::bank |
Definition at line 627 of file dram_ctrl.hh.
Referenced by DRAMCtrl::chooseNextFRFCFS(), and DRAMCtrl::doDRAMAccess().
const uint16_t DRAMCtrl::DRAMPacket::bankId |
Bank id is calculated considering banks in all the ranks eg: 2 ranks each with 8 banks, then bankId = 0 –> rank0, bank0 and bankId = 8 –> rank1, bank0.
Definition at line 635 of file dram_ctrl.hh.
Referenced by DRAMCtrl::doDRAMAccess().
Bank& DRAMCtrl::DRAMPacket::bankRef |
Definition at line 656 of file dram_ctrl.hh.
Referenced by DRAMCtrl::chooseNextFRFCFS(), and DRAMCtrl::doDRAMAccess().
BurstHelper* DRAMCtrl::DRAMPacket::burstHelper |
A pointer to the BurstHelper if this DRAMPacket is a split packet If not a split packet (common case), this is set to NULL.
Definition at line 655 of file dram_ctrl.hh.
Referenced by DRAMCtrl::addToReadQueue(), and DRAMCtrl::processRespondEvent().
const Tick DRAMCtrl::DRAMPacket::entryTime |
When did request enter the controller.
Definition at line 612 of file dram_ctrl.hh.
Referenced by DRAMCtrl::doDRAMAccess().
const PacketPtr DRAMCtrl::DRAMPacket::pkt |
This comes from the outside world.
Definition at line 618 of file dram_ctrl.hh.
Referenced by DRAMCtrl::processRespondEvent().
const uint8_t DRAMCtrl::DRAMPacket::rank |
Will be populated by address decoder.
Definition at line 626 of file dram_ctrl.hh.
Referenced by DRAMCtrl::chooseNext(), DRAMCtrl::chooseNextFRFCFS(), DRAMCtrl::doDRAMAccess(), and DRAMCtrl::processRespondEvent().
Rank& DRAMCtrl::DRAMPacket::rankRef |
Definition at line 657 of file dram_ctrl.hh.
Referenced by DRAMCtrl::addToReadQueue(), DRAMCtrl::addToWriteQueue(), DRAMCtrl::chooseNextFRFCFS(), DRAMCtrl::doDRAMAccess(), and DRAMCtrl::processRespondEvent().
const bool DRAMCtrl::DRAMPacket::read |
Definition at line 623 of file dram_ctrl.hh.
Tick DRAMCtrl::DRAMPacket::readyTime |
When will request leave the controller.
Definition at line 615 of file dram_ctrl.hh.
Referenced by DRAMCtrl::doDRAMAccess().
const uint32_t DRAMCtrl::DRAMPacket::row |
Definition at line 628 of file dram_ctrl.hh.
Referenced by DRAMCtrl::chooseNextFRFCFS(), and DRAMCtrl::doDRAMAccess().
unsigned int DRAMCtrl::DRAMPacket::size |
The size of this dram packet in bytes It is always equal or smaller than DRAM burst size.
Definition at line 649 of file dram_ctrl.hh.
Referenced by DRAMCtrl::doDRAMAccess().