44#ifndef __CPU_TRAFFIC_GEN_NVM_GEN_HH__
45#define __CPU_TRAFFIC_GEN_NVM_GEN_HH__
49#include "enums/AddrMap.hh"
91 Addr _blocksize,
Addr cacheline_size,
93 uint8_t read_percent,
Addr data_limit,
94 unsigned int num_seq_pkts,
unsigned int buffer_size,
95 unsigned int nbr_of_banks,
unsigned int nbr_of_banks_util,
96 enums::AddrMap addr_mapping,
97 unsigned int nbr_of_ranks);
107 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 blockBits
Number of block bits in NVM address.
Addr addr
Address of request.
PacketPtr getNextPacket()
Get the next generated packet.
enums::AddrMap addrMapping
Address mapping to be used.
unsigned int countNumSeqPkts
Track number of sequential packets generated for a request
const unsigned int bufferBits
Number of buffer 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.
const unsigned int rankBits
Number of rank bits in NVM address.
const unsigned int bufferSize
Buffer size of NVM.
bool isRead
Remember type of requests to be generated in series.
const unsigned int numSeqPkts
Number of sequential NVM packets to be generated per cpu request.
const unsigned int nbrOfBanksUtil
Number of banks to be utilized for a given configuration.
const unsigned int bankBits
Number of bank bits in NVM address.
const unsigned int nbrOfRanks
Number of ranks to be utilized for a given configuration.
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 nbrOfBanksNVM
Number of banks in NVM.
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.
Abstract superclass for simulation objects.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint64_t Tick
Tick count type.
Declaration of the Packet class.
Declaration of the random generator that randomly selects addresses within a range.