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