29#ifndef __CPU_GARNET_SYNTHETIC_TRAFFIC_HH__
30#define __CPU_GARNET_SYNTHETIC_TRAFFIC_HH__
36#include "params/GarnetSyntheticTraffic.hh"
60 typedef GarnetSyntheticTrafficParams
Params;
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
Cycles is a wrapper class for representing cycle counts, i.e.
virtual bool recvTimingResp(PacketPtr pkt)
Receive a timing response from the peer.
virtual void recvReqRetry()
Called by the peer if sendTimingReq was called on this peer (causing recvTimingReq to be called on th...
GarnetSyntheticTraffic * tester
CpuPort(const std::string &_name, GarnetSyntheticTraffic *_tester)
GarnetSyntheticTrafficSenderState(uint8_t *_data)
Constructor.
void sendPkt(PacketPtr pkt)
GarnetSyntheticTrafficParams Params
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
const Cycles responseLimit
EventFunctionWrapper tickEvent
friend class MemCompleteEvent
GarnetSyntheticTraffic(const Params &p)
std::map< std::string, TrafficType > trafficStringToEnum
void completeRequest(PacketPtr pkt)
void printAddr(Addr a)
Print state of address in memory system via PrintReq (for debugging).
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Ports are used to interface objects to each other.
A RequestPort is a specialisation of a Port, which implements the default protocol for the three diff...
ClockedObject declaration and implementation.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
const PortID InvalidPortID
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
uint64_t Tick
Tick count type.
Declaration of Statistics objects.
A virtual base opaque structure used to hold state associated with the packet (e.g....