Go to the documentation of this file.
44 #include "debug/TrafficGen.hh"
45 #include "enums/AddrMap.hh"
91 "new_rank: %d new_bank: %d\n",
119 "size %d, countNumSeqPkts: %d, numSeqPkts: %d\n",
PacketPtr getNextPacket()
Get the next generated packet.
unsigned int nextSeqCount
Next packet series count used to set rank and bank, and update isRead Incremented at the start of a n...
void replaceBits(T &val, int first, int last, B bit_val)
A convenience function to replace bits first to last of val with bit_val in place.
const unsigned int nbrOfBanksDRAM
Number of banks in DRAM.
const unsigned int numSeqPkts
Number of sequential DRAM packets to be generated per cpu request.
unsigned int countNumSeqPkts
Track number of sequential packets generated for a request
const unsigned int blockBits
Number of block bits in DRAM address.
const unsigned int rankBits
Number of rank bits in DRAM address.
const unsigned int bankBits
Number of bank bits in DRAM address.
const uint8_t readPercent
Percent of generated transactions that should be reads.
const unsigned int pageBits
Number of page bits in DRAM address.
void genStartAddr(unsigned int new_bank, unsigned int new_rank)
Insert bank, rank, and column bits into packed address to create address for 1st command in a series.
const unsigned int nbrOfRanks
Number of ranks to be utilized for a given configuration.
Addr addr
Address of request.
PacketPtr getPacket(Addr addr, unsigned size, const MemCmd &cmd, Request::FlagsType flags=0)
Generate a new request and associated packet.
Addr dataManipulated
Counter to determine the amount of data manipulated.
const Addr blocksize
Blocksize and address increment.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
const unsigned int maxSeqCountPerRank
Number of command series issued before the rank is changed.
bool isRead
Remember type of requests to be generated in series.
const unsigned int nbrOfBanksUtil
Number of banks to be utilized for a given configuration.
The traffic generator is a module that generates stimuli for the memory system, based on a collection...
const unsigned int pageSize
Page size of DRAM.
Enums::AddrMap addrMapping
Address mapping to be used.
Generated on Wed Sep 30 2020 14:02:09 for gem5 by doxygen 1.8.17