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.
Addr dataManipulated
Counter to determine the amount of data manipulated.
PacketPtr getNextPacket()
Get the next generated packet.
Addr nextAddr
Address of next request.
void enter()
Enter this generator state.
Tick nextPacketTick(bool elastic, Tick delay) const
Determine the tick when the next packet is available.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
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...
Declaration of the linear generator that generates sequential requests.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Tick curTick()
The universal simulation clock.
uint64_t Tick
Tick count type.