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__
uint32_t pickStreamID() override
StreamGen(const BaseTrafficGenParams &p)
FixedStreamGen(const BaseTrafficGenParams &p)
virtual uint32_t pickSubstreamID()=0
RandomStreamGen(const BaseTrafficGenParams &p)
virtual uint32_t pickStreamID()=0
uint32_t pickStreamID() override
static StreamGen * create(const BaseTrafficGenParams &p)
Factory method for constructing a Stream generator.
std::vector< uint32_t > substreamIds
uint32_t pickSubstreamID() override
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 pickSubstreamID() override
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.
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
Generated on Tue Jun 22 2021 15:28:27 for gem5 by doxygen 1.8.17