gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::StochasticGen Class Reference

#include <base_gen.hh>

Inheritance diagram for gem5::StochasticGen:
gem5::BaseGen gem5::LinearGen gem5::RandomGen gem5::StridedGen gem5::DramGen gem5::NvmGen gem5::DramRotGen

Public Member Functions

 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)
 
- Public Member Functions inherited from gem5::BaseGen
 BaseGen (SimObject &obj, RequestorID requestor_id, Tick _duration)
 Create a base generator.
 
virtual ~BaseGen ()
 
std::string name () const
 Get the name, useful for DPRINTFs.
 
virtual void enter ()=0
 Enter this generator state.
 
virtual PacketPtr getNextPacket ()=0
 Get the next generated packet.
 
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.
 

Protected Attributes

const Addr startAddr
 Start of address range.
 
const Addr endAddr
 End of address range.
 
const Addr blocksize
 Blocksize and address increment.
 
const Addr cacheLineSize
 Cache line size in the simulated system.
 
const Tick minPeriod
 Request generation period.
 
const Tick maxPeriod
 
const uint8_t readPercent
 Percent of generated transactions that should be reads.
 
const Addr dataLimit
 Maximum amount of data to manipulate.
 
- Protected Attributes inherited from gem5::BaseGen
const std::string _name
 Name to use for status and debug printing.
 
const RequestorID requestorId
 The RequestorID used for generating requests.
 

Additional Inherited Members

- Public Attributes inherited from gem5::BaseGen
const Tick duration
 Time to spend in this state.
 
- Protected Member Functions inherited from gem5::BaseGen
PacketPtr getPacket (Addr addr, unsigned size, const MemCmd &cmd, Request::FlagsType flags=0)
 Generate a new request and associated packet.
 

Detailed Description

Definition at line 139 of file base_gen.hh.

Constructor & Destructor Documentation

◆ StochasticGen()

gem5::StochasticGen::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 )

Definition at line 78 of file base_gen.cc.

References blocksize, cacheLineSize, fatal, and gem5::BaseGen::name().

Member Data Documentation

◆ blocksize

◆ cacheLineSize

const Addr gem5::StochasticGen::cacheLineSize
protected

Cache line size in the simulated system.

Definition at line 160 of file base_gen.hh.

Referenced by StochasticGen().

◆ dataLimit

const Addr gem5::StochasticGen::dataLimit
protected

Maximum amount of data to manipulate.

Definition at line 172 of file base_gen.hh.

Referenced by gem5::LinearGen::nextPacketTick(), gem5::RandomGen::nextPacketTick(), and gem5::StridedGen::nextPacketTick().

◆ endAddr

const Addr gem5::StochasticGen::endAddr
protected

◆ maxPeriod

const Tick gem5::StochasticGen::maxPeriod
protected

◆ minPeriod

const Tick gem5::StochasticGen::minPeriod
protected

◆ readPercent

const uint8_t gem5::StochasticGen::readPercent
protected

◆ startAddr


The documentation for this class was generated from the following files:

Generated on Tue Jun 18 2024 16:24:15 for gem5 by doxygen 1.11.0