Go to the documentation of this file.
44 #include "debug/TrafficGen.hh"
45 #include "enums/AddrMap.hh"
94 "new_rank: %d new_bank: %d\n",
122 "size %d, countNumSeqPkts: %d, numSeqPkts: %d\n",
const unsigned int pageBits
Number of page bits in DRAM address.
const Addr blocksize
Blocksize and address increment.
Addr addr
Address of request.
constexpr void replaceBits(T &val, unsigned first, unsigned last, B bit_val)
A convenience function to replace bits first to last of val with bit_val in place.
Addr dataManipulated
Counter to determine the amount of data manipulated.
const unsigned int bankBits
Number of bank bits in DRAM address.
const unsigned int maxSeqCountPerRank
Number of command series issued before the rank is changed.
const unsigned int numSeqPkts
Number of sequential DRAM packets to be generated per cpu request.
const unsigned int pageSize
Page size of DRAM.
const unsigned int nbrOfBanksDRAM
Number of banks in DRAM.
PacketPtr getPacket(Addr addr, unsigned size, const MemCmd &cmd, Request::FlagsType flags=0)
Generate a new request and associated packet.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
unsigned int countNumSeqPkts
Track number of sequential packets generated for a request
PacketPtr getNextPacket()
Get the next generated packet.
const unsigned int nbrOfBanksUtil
Number of banks to be utilized for a given configuration.
enums::AddrMap addrMapping
Address mapping to be used.
const uint8_t readPercent
Percent of generated transactions that should be reads.
The traffic generator is a module that generates stimuli for the memory system, based on a collection...
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.
bool isRead
Remember type of requests to be generated in series.
const unsigned int nbrOfRanks
Number of ranks to be utilized for a given configuration.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
unsigned int nextSeqCount
Next packet series count used to set rank and bank, and update isRead Incremented at the start of a n...
const unsigned int rankBits
Number of rank bits in DRAM address.
const unsigned int blockBits
Number of block bits in DRAM address.
Generated on Sun Jul 30 2023 01:56:53 for gem5 by doxygen 1.8.17