44#ifndef __CPU_TRAFFIC_GEN_DRAM_ROT_GEN_HH__
45#define __CPU_TRAFFIC_GEN_DRAM_ROT_GEN_HH__
50#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 page_size,
94 unsigned int nbr_of_banks_DRAM,
unsigned int nbr_of_banks_util,
95 enums::AddrMap addr_mapping,
96 unsigned int nbr_of_ranks,
97 unsigned int max_seq_count_per_rank)
98 :
DramGen(obj, requestor_id, _duration, start_addr, end_addr,
99 _blocksize, cacheline_size, min_period, max_period,
100 read_percent, data_limit,
101 num_seq_pkts, page_size, nbr_of_banks_DRAM,
102 nbr_of_banks_util, addr_mapping,
110 fatal(
"%s: Unsupported read percentage for DramRotGen: %d",
const std::string _name
Name to use for status and debug printing.
DRAM specific generator is for issuing request with variable page hit length and bank utilization.
unsigned int nextSeqCount
Next packet series count used to set rank and bank, and update isRead Incremented at the start of a n...
DramRotGen(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 page_size, unsigned int nbr_of_banks_DRAM, unsigned int nbr_of_banks_util, enums::AddrMap addr_mapping, unsigned int nbr_of_ranks, unsigned int max_seq_count_per_rank)
Create a DRAM address sequence generator.
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....
Abstract superclass for simulation objects.
const uint8_t readPercent
Percent of generated transactions that should be reads.
Declaration of the DRAM generator for issuing variable page hit length requests and bank utilisation.
#define fatal(...)
This implements a cprintf based fatal() function.
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.