Go to the documentation of this file.
44 #ifndef __CPU_TRAFFIC_GEN_STREAM_GEN_HH__
45 #define __CPU_TRAFFIC_GEN_STREAM_GEN_HH__
47 #include "params/BaseTrafficGen.hh"
60 "Must provide a vector of StreamIDs");
111 "Invalid sids/ssids configuration");
139 #endif // __CPU_TRAFFIC_GEN_STREAM_GEN_HH__
virtual uint32_t pickSubStreamID()=0
uint32_t pickStreamID() override
RandomStreamGen(const BaseTrafficGenParams *p)
virtual uint32_t pickStreamID()=0
uint32_t pickStreamID() override
uint32_t pickSubStreamID() override
std::vector< uint32_t > substreamIds
static StreamGen * create(const BaseTrafficGenParams *p)
Factory method for constructing a Stream generator.
FixedStreamGen(const BaseTrafficGenParams *p)
std::vector< uint32_t > streamIds
Store preset Stream and Substream IDs to use for requests This is the set of available streamIDs the ...
uint32_t randomPick(const std::vector< uint32_t > &svec)
Function to pick one of the preset Stream or Substream ID.
bool ssidValid() const
Returns true if the substreamID generation is valid and hence should be taken into account.
StreamGen(const BaseTrafficGenParams *p)
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
uint32_t pickSubStreamID() override
Generated on Wed Sep 30 2020 14:02:09 for gem5 by doxygen 1.8.17