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",
const unsigned int numSeqPkts
Number of sequential DRAM packets to be generated per cpu request.
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...
PacketPtr getPacket(Addr addr, unsigned size, const MemCmd &cmd, Request::FlagsType flags=0)
Generate a new request and associated packet.
unsigned int countNumSeqPkts
Track number of sequential packets generated for a request.
const unsigned int nbrOfBanksDRAM
Number of banks in DRAM.
bool isRead
Remember type of requests to be generated in series.
Declaration of DRAM rotation generator that rotates through each rank.
const unsigned int bankBits
Number of bank bits in DRAM address.
unsigned int nextSeqCount
Next packet series count used to set rank and bank, and update isRead Incremented at the start of a n...
PacketPtr getNextPacket()
Get the next generated packet.
const unsigned int blockBits
Number of block bits in DRAM address.
The traffic generator is a master module that generates stimuli for the memory system, based on a collection of simple behaviours that are either probabilistic or based on traces.
const uint8_t readPercent
Percent of generated transactions that should be reads.
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 nbrOfBanksUtil
Number of banks to be utilized for a given configuration.
const unsigned int pageBits
Number of page bits in DRAM address.
const unsigned int rankBits
Number of rank bits in DRAM address.
const unsigned int nbrOfRanks
Number of ranks to be utilized for a given configuration.
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
Addr addr
Address of request.
const Addr blocksize
Blocksize and address increment.
const unsigned int pageSize
Page size of DRAM.
const unsigned int maxSeqCountPerRank
Number of command series issued before the rank is changed.
Enums::AddrMap addrMapping
Address mapping to be used.
Addr dataManipulated
Counter to determine the amount of data manipulated.