Go to the documentation of this file.
44 #ifndef __CPU_TRAFFIC_GEN_TRACE_GEN_HH__
45 #define __CPU_TRAFFIC_GEN_TRACE_GEN_HH__
157 const std::string& trace_file,
Addr addr_offset)
158 :
BaseGen(obj, requestor_id, _duration),
Tick tick
The time at which the request should be sent.
Base class for all generators, with the shared functionality and virtual functions for entering,...
Tick tickOffset
Stores the time when the state was entered.
uint64_t Tick
Tick count type.
This struct stores a line in the trace file.
MemCmd cmd
Specifies if the request is to be a read or a write.
Addr blocksize
The size of the access for the request.
Addr addrOffset
Offset for memory requests.
PacketPtr getNextPacket()
Get the next generated packet.
Addr addr
The address for the request.
void clear()
Make this element invalid.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void enter()
Enter this generator state.
TraceElement currElement
Store the current and next element in the trace.
Tick nextPacketTick(bool elastic, Tick delay) const
Returns the tick when the next request should be generated.
bool traceComplete
Set to true when the trace replay for one instance of state is complete.
bool isValid() const
Check validity of this element.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
void exit()
Exit this generator state.
InputStream trace
Input stream used for reading the input trace file.
TraceGen(SimObject &obj, RequestorID requestor_id, Tick _duration, const std::string &trace_file, Addr addr_offset)
Create a trace generator.
Request::FlagsType flags
Potential request flags to use.
The trace replay generator reads a trace file and plays back the transactions.
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:10 for gem5 by doxygen 1.8.17