gem5 v24.1.0.1
|
#include <stream_gen.hh>
Public Member Functions | |
RandomStreamGen (const BaseTrafficGenParams &p) | |
uint32_t | pickStreamID () override |
uint32_t | pickSubstreamID () override |
![]() | |
virtual | ~StreamGen () |
bool | ssidValid () const |
Returns true if the substreamID generation is valid and hence should be taken into account. | |
Protected Member Functions | |
uint32_t | randomPick (const std::vector< uint32_t > &svec) |
Function to pick one of the preset Stream or Substream ID. | |
![]() | |
StreamGen (const BaseTrafficGenParams &p) | |
Protected Attributes | |
Random::RandomPtr | rng = Random::genRandom() |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
static StreamGen * | create (const BaseTrafficGenParams &p) |
Factory method for constructing a Stream generator. | |
Definition at line 125 of file stream_gen.hh.
|
inline |
Definition at line 128 of file stream_gen.hh.
|
inlineoverridevirtual |
Implements gem5::StreamGen.
Definition at line 132 of file stream_gen.hh.
References randomPick(), and gem5::StreamGen::streamIds.
|
inlineoverridevirtual |
Implements gem5::StreamGen.
Definition at line 135 of file stream_gen.hh.
References randomPick(), and gem5::StreamGen::substreamIds.
|
protected |
Function to pick one of the preset Stream or Substream ID.
Definition at line 58 of file stream_gen.cc.
References rng.
Referenced by pickStreamID(), and pickSubstreamID().
|
protected |
Definition at line 142 of file stream_gen.hh.
Referenced by randomPick().