gem5
v20.1.0.0
|
#include <stream_gen.hh>
Public Member Functions | |
RandomStreamGen (const BaseTrafficGenParams *p) | |
uint32_t | pickStreamID () override |
uint32_t | pickSubStreamID () override |
Public Member Functions inherited from StreamGen | |
virtual | ~StreamGen () |
bool | ssidValid () const |
Returns true if the substreamID generation is valid and hence should be taken into account. More... | |
Protected Member Functions | |
uint32_t | randomPick (const std::vector< uint32_t > &svec) |
Function to pick one of the preset Stream or Substream ID. More... | |
Protected Member Functions inherited from StreamGen | |
StreamGen (const BaseTrafficGenParams *p) | |
Additional Inherited Members | |
Static Public Member Functions inherited from StreamGen | |
static StreamGen * | create (const BaseTrafficGenParams *p) |
Factory method for constructing a Stream generator. More... | |
Protected Attributes inherited from StreamGen | |
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 121 of file stream_gen.hh.
|
inline |
Definition at line 124 of file stream_gen.hh.
|
inlineoverridevirtual |
Implements StreamGen.
Definition at line 128 of file stream_gen.hh.
References randomPick(), and StreamGen::streamIds.
|
inlineoverridevirtual |
Implements StreamGen.
Definition at line 131 of file stream_gen.hh.
References randomPick(), and StreamGen::substreamIds.
|
protected |
Function to pick one of the preset Stream or Substream ID.
Definition at line 57 of file stream_gen.cc.
References Random::random(), and random_mt.
Referenced by pickStreamID(), and pickSubStreamID().