43#ifndef __CPU_TRAFFIC_GEN_BASE_GEN_HH__
44#define __CPU_TRAFFIC_GEN_BASE_GEN_HH__
145 Addr _blocksize,
Addr cacheline_size,
147 uint8_t read_percent,
Addr data_limit);
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
Base class for all generators, with the shared functionality and virtual functions for entering,...
PacketPtr getPacket(Addr addr, unsigned size, const MemCmd &cmd, Request::FlagsType flags=0)
Generate a new request and associated packet.
const Tick duration
Time to spend in this state.
virtual void exit()
Exit this generator state.
virtual Tick nextPacketTick(bool elastic, Tick delay) const =0
Determine the tick when the next packet is available.
virtual PacketPtr getNextPacket()=0
Get the next generated packet.
BaseGen(SimObject &obj, RequestorID requestor_id, Tick _duration)
Create a base generator.
const RequestorID requestorId
The RequestorID used for generating requests.
const std::string _name
Name to use for status and debug printing.
std::string name() const
Get the name, useful for DPRINTFs.
virtual void enter()=0
Enter this generator state.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Abstract superclass for simulation objects.
const Addr startAddr
Start of address range.
const Tick minPeriod
Request generation period.
const Addr dataLimit
Maximum amount of data to manipulate.
const Addr cacheLineSize
Cache line size in the simulated system.
const Addr endAddr
End of address range.
StochasticGen(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)
const Addr blocksize
Blocksize and address increment.
const uint8_t readPercent
Percent of generated transactions that should be reads.
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 a request, the overall memory request consisting of the parts of the request that are ...