gem5 v24.0.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. | |
Static Public Member Functions | |
static StreamGen * | create (const BaseTrafficGenParams &p) |
Factory method for constructing a Stream generator. | |
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. | |
std::vector< uint32_t > | substreamIds |
Definition at line 52 of file stream_gen.hh.
|
inlineprotected |
Definition at line 55 of file stream_gen.hh.
|
inlinevirtual |
Definition at line 67 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 46 of file stream_gen.cc.
References gem5::MipsISA::p.
|
pure virtual |
Implemented in gem5::FixedStreamGen, and gem5::RandomStreamGen.
|
pure virtual |
Implemented in gem5::FixedStreamGen, and gem5::RandomStreamGen.
|
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 91 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 101 of file stream_gen.hh.
Referenced by gem5::FixedStreamGen::FixedStreamGen(), gem5::FixedStreamGen::pickStreamID(), gem5::RandomStreamGen::pickStreamID(), and StreamGen().
|
protected |
Definition at line 102 of file stream_gen.hh.
Referenced by gem5::FixedStreamGen::FixedStreamGen(), gem5::FixedStreamGen::pickSubstreamID(), gem5::RandomStreamGen::pickSubstreamID(), and ssidValid().