gem5
v20.1.0.0
|
#include <stream_gen.hh>
Public Member Functions | |
virtual | ~StreamGen () |
virtual uint32_t | pickStreamID ()=0 |
virtual uint32_t | pickSubStreamID ()=0 |
bool | ssidValid () const |
Returns true if the substreamID generation is valid and hence should be taken into account. More... | |
Static Public Member Functions | |
static StreamGen * | create (const BaseTrafficGenParams *p) |
Factory method for constructing a Stream generator. More... | |
Protected Member Functions | |
StreamGen (const BaseTrafficGenParams *p) | |
Protected Attributes | |
std::vector< uint32_t > | streamIds |
Store preset Stream and Substream IDs to use for requests This is the set of available streamIDs the generator can pick. More... | |
std::vector< uint32_t > | substreamIds |
Definition at line 49 of file stream_gen.hh.
|
inlineprotected |
Definition at line 52 of file stream_gen.hh.
|
inlinevirtual |
Definition at line 64 of file stream_gen.hh.
|
static |
Factory method for constructing a Stream generator.
The Stream generator type is selected by the StreamGenType enum parameter.
@params p pointer to BaseTrafficGenParams struct where the stream generator type is stored.
Definition at line 43 of file stream_gen.cc.
References Stats::none, MipsISA::p, and MipsISA::random.
|
pure virtual |
Implemented in RandomStreamGen, and FixedStreamGen.
|
pure virtual |
Implemented in RandomStreamGen, and FixedStreamGen.
|
inline |
Returns true if the substreamID generation is valid and hence should be taken into account.
It is valid if the set of substreamIDs passed as a parameter to the TrafficGenerator is a non empty list.
Definition at line 88 of file stream_gen.hh.
References substreamIds.
|
protected |
Store preset Stream and Substream IDs to use for requests This is the set of available streamIDs the generator can pick.
The actual ID being picked for a specific memory request is selected by the pickStreamID and pickSubStreamID methods.
Definition at line 98 of file stream_gen.hh.
Referenced by FixedStreamGen::FixedStreamGen(), FixedStreamGen::pickStreamID(), RandomStreamGen::pickStreamID(), and StreamGen().
|
protected |
Definition at line 99 of file stream_gen.hh.
Referenced by FixedStreamGen::FixedStreamGen(), FixedStreamGen::pickSubStreamID(), RandomStreamGen::pickSubStreamID(), and ssidValid().