gem5 v24.0.0.0
|
#include <base_gen.hh>
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. | |
Definition at line 139 of file base_gen.hh.
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().
|
protected |
Blocksize and address increment.
Definition at line 157 of file base_gen.hh.
Referenced by gem5::DramGen::genStartAddr(), gem5::NvmGen::genStartAddr(), gem5::DramGen::getNextPacket(), gem5::DramRotGen::getNextPacket(), gem5::LinearGen::getNextPacket(), gem5::NvmGen::getNextPacket(), gem5::RandomGen::getNextPacket(), gem5::StridedGen::getNextPacket(), and StochasticGen().
|
protected |
Cache line size in the simulated system.
Definition at line 160 of file base_gen.hh.
Referenced by StochasticGen().
|
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().
|
protected |
End of address range.
Definition at line 154 of file base_gen.hh.
Referenced by gem5::DramGen::genStartAddr(), gem5::NvmGen::genStartAddr(), gem5::LinearGen::getNextPacket(), gem5::RandomGen::getNextPacket(), and gem5::StridedGen::getNextPacket().
|
protected |
Definition at line 164 of file base_gen.hh.
Referenced by gem5::LinearGen::nextPacketTick(), gem5::RandomGen::nextPacketTick(), and gem5::StridedGen::nextPacketTick().
|
protected |
Request generation period.
Definition at line 163 of file base_gen.hh.
Referenced by gem5::LinearGen::nextPacketTick(), gem5::RandomGen::nextPacketTick(), and gem5::StridedGen::nextPacketTick().
|
protected |
Percent of generated transactions that should be reads.
Definition at line 169 of file base_gen.hh.
Referenced by gem5::DramRotGen::DramRotGen(), gem5::DramGen::getNextPacket(), gem5::DramRotGen::getNextPacket(), gem5::LinearGen::getNextPacket(), gem5::NvmGen::getNextPacket(), gem5::RandomGen::getNextPacket(), and gem5::StridedGen::getNextPacket().
|
protected |
Start of address range.
Definition at line 151 of file base_gen.hh.
Referenced by gem5::LinearGen::enter(), gem5::StridedGen::enter(), gem5::DramGen::genStartAddr(), gem5::NvmGen::genStartAddr(), gem5::LinearGen::getNextPacket(), gem5::RandomGen::getNextPacket(), and gem5::StridedGen::getNextPacket().