Go to the documentation of this file.
46 #ifndef __CPU_TRAFFIC_GEN_NVM_GEN_HH__
47 #define __CPU_TRAFFIC_GEN_NVM_GEN_HH__
51 #include "enums/AddrMap.hh"
90 Addr _blocksize,
Addr cacheline_size,
92 uint8_t read_percent,
Addr data_limit,
93 unsigned int num_seq_pkts,
unsigned int buffer_size,
94 unsigned int nbr_of_banks,
unsigned int nbr_of_banks_util,
95 Enums::AddrMap addr_mapping,
96 unsigned int nbr_of_ranks);
106 void genStartAddr(
unsigned int new_bank,
unsigned int new_rank);
NVM specific generator is for issuing request with variable buffer hit length and bank utilization.
const unsigned int numSeqPkts
Number of sequential NVM packets to be generated per cpu request.
PacketPtr getNextPacket()
Get the next generated packet.
uint64_t Tick
Tick count type.
bool isRead
Remember type of requests to be generated in series.
const unsigned int nbrOfBanksNVM
Number of banks in NVM.
const unsigned int bankBits
Number of bank bits in NVM address.
NvmGen(SimObject &obj, RequestorID requestor_id, Tick _duration, Addr start_addr, Addr end_addr, Addr _blocksize, Addr cacheline_size, Tick min_period, Tick max_period, uint8_t read_percent, Addr data_limit, unsigned int num_seq_pkts, unsigned int buffer_size, unsigned int nbr_of_banks, unsigned int nbr_of_banks_util, Enums::AddrMap addr_mapping, unsigned int nbr_of_ranks)
Create a NVM address sequence generator.
const unsigned int nbrOfBanksUtil
Number of banks to be utilized for a given configuration.
const unsigned int nbrOfRanks
Number of ranks to be utilized for a given configuration.
Addr addr
Address of request.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
const unsigned int blockBits
Number of block bits in NVM 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.
unsigned int countNumSeqPkts
Track number of sequential packets generated for a request
const unsigned int bufferBits
Number of buffer bits in NVM address.
const unsigned int rankBits
Number of rank bits in NVM address.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
The random generator is similar to the linear one, but does not generate sequential addresses.
const unsigned int bufferSize
Buffer size of NVM.
Enums::AddrMap addrMapping
Address mapping to be used.
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:09 for gem5 by doxygen 1.8.17