gem5  v22.1.0.0
Public Member Functions | Protected Attributes | List of all members
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. More...
 
virtual ~BaseGen ()
 
std::string name () const
 Get the name, useful for DPRINTFs. More...
 
virtual void enter ()=0
 Enter this generator state. More...
 
virtual PacketPtr getNextPacket ()=0
 Get the next generated packet. More...
 
virtual void exit ()
 Exit this generator state. More...
 
virtual Tick nextPacketTick (bool elastic, Tick delay) const =0
 Determine the tick when the next packet is available. More...
 

Protected Attributes

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

Additional Inherited Members

- Public Attributes inherited from gem5::BaseGen
const Tick duration
 Time to spend in this state. More...
 
- 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. More...
 

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

const Addr gem5::StochasticGen::blocksize
protected

◆ 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

const Addr gem5::StochasticGen::startAddr
protected

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

Generated on Wed Dec 21 2022 10:23:15 for gem5 by doxygen 1.9.1