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",
PacketPtr getPacket(Addr addr, unsigned size, const MemCmd &cmd, Request::FlagsType flags=0)
Generate a new request and associated packet.
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.
const unsigned int nbrOfBanksDRAM
Number of banks in DRAM.
const unsigned int blockBits
Number of block bits in DRAM address.
Addr addr
Address of request.
unsigned int countNumSeqPkts
Track number of sequential packets generated for a request
const unsigned int nbrOfRanks
Number of ranks to be utilized for a given configuration.
const unsigned int rankBits
Number of rank 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 numSeqPkts
Number of sequential DRAM packets to be generated per cpu request.
enums::AddrMap addrMapping
Address mapping to be used.
const unsigned int pageBits
Number of page bits in DRAM address.
const unsigned int pageSize
Page size of DRAM.
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 maxSeqCountPerRank
Number of command series issued before the rank is changed.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Addr dataManipulated
Counter to determine the amount of data manipulated.
const Addr blocksize
Blocksize and address increment.
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...
Declaration of DRAM rotation generator that rotates through each rank.
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.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.