Go to the documentation of this file.
38 #ifndef __CPU_TRAFFIC_GEN_TRAFFIC_GEN_HH__
39 #define __CPU_TRAFFIC_GEN_TRAFFIC_GEN_HH__
41 #include <unordered_map>
48 struct TrafficGenParams;
120 std::unordered_map<uint32_t, std::shared_ptr<BaseGen>>
states;
131 void init()
override;
141 #endif //__CPU_TRAFFIC_GEN_TRAFFIC_GEN_HH__
void initState() override
initState() is called on each SimObject when not restoring from a checkpoint.
size_t nextState()
Use the transition matrix to find the next state index.
void parseConfig()
Parse the config file and build the state map and transition matrix.
std::shared_ptr< BaseGen > nextGenerator() override
Struct to represent a probabilistic transition during parsing.
std::string resolveFile(const std::string &name)
Resolve a file path in the configuration file.
std::vector< std::vector< double > > transitionMatrix
State transition matrix.
uint32_t currState
Index of the current state.
virtual std::string name() const
const std::string configFile
The config file to parse.
void serialize(CheckpointOut &cp) const override
Serialize an object.
The traffic generator is a module that generates stimuli for the memory system, based on a collection...
std::unordered_map< uint32_t, std::shared_ptr< BaseGen > > states
Map of generator states.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
The traffic generator is a module that generates stimuli for the memory system, based on a collection...
std::ostream CheckpointOut
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
TrafficGen(const TrafficGenParams &p)
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
Generated on Sun Jul 30 2023 01:56:54 for gem5 by doxygen 1.8.17