44 #include "debug/TrafficGen.hh"
const Addr dataLimit
Maximum amount of data to manipulate.
const Tick minPeriod
Request generation period.
void enter()
Enter this generator state.
PacketPtr getPacket(Addr addr, unsigned size, const MemCmd &cmd, Request::FlagsType flags=0)
Generate a new request and associated packet.
PacketPtr getNextPacket()
Get the next generated packet.
std::enable_if< std::is_integral< T >::value, T >::type random()
Use the SFINAE idiom to choose an implementation based on whether the type is integral or floating po...
Tick curTick()
The current simulated tick.
The traffic generator is a master module that generates stimuli for the memory system, based on a collection of simple behaviours that are either probabilistic or based on traces.
uint64_t Tick
Tick count type.
const uint8_t readPercent
Percent of generated transactions that should be reads.
const Addr startAddr
Start of address range.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
const Addr blocksize
Blocksize and address increment.
Tick nextPacketTick(bool elastic, Tick delay) const
Determine the tick when the next packet is available.
Declaration of the random generator that randomly selects addresses within a range.
const Addr endAddr
End of address range.
Addr dataManipulated
Counter to determine the amount of data manipulated.