32#ifndef CPU_TESTERS_PROTOCOL_TESTER_PROTOCOL_TESTER_HH_
33#define CPU_TESTERS_PROTOCOL_TESTER_PROTOCOL_TESTER_HH_
60#include "params/ProtocolTester.hh"
83 {
panic(
"%s does not expect a retry\n",
name()); }
121 void init()
override;
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
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.
const PortID id
A numeric identifier to distinguish ports in a vector, and set to InvalidPortID in case this port is ...
const std::string name() const
Return port name (for DPRINTF).
GMTokenPort(const std::string &name, ProtocolTester *_tester, PortID id=InvalidPortID)
void recvReqRetry()
Called by the peer if sendTimingReq was called on this peer (causing recvTimingReq to be called on th...
bool recvTimingResp(PacketPtr)
Receive a timing response from the peer.
virtual bool recvTimingResp(PacketPtr pkt)
Receive a timing response from the peer.
SeqPort(const std::string &_name, ProtocolTester *_tester, PortID _id, PortID _index)
virtual void recvReqRetry()
Called by the peer if sendTimingReq was called on this peer (causing recvTimingReq to be called on th...
int getEpisodeLength() const
ProtocolTester(const Params &p)
std::vector< GpuWavefront * > wfs
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
std::vector< RequestPort * > cuVectorPorts
AddressManager * addrManager
AddressManager::Location Location
std::vector< RequestPort * > cuSqcPorts
ProtocolTesterParams Params
std::vector< DmaThread * > dmaThreads
bool checkDRF(Location atomic_loc, Location loc, bool isStore) const
std::vector< GMTokenPort * > cuTokenPorts
int numNormalLocsPerAtomic
std::vector< CpuThread * > cpuThreads
std::vector< RequestPort * > cuScalarPorts
RequestorID requestorId()
std::vector< RequestPort * > dmaPorts
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
std::vector< TokenManager * > cuTokenManagers
std::vector< RequestPort * > cpuPorts
AddressManager * getAddressManager() const
AddressManager::Value Value
void dumpErrorLog(std::stringstream &ss)
A RequestPort is a specialisation of a Port, which implements the default protocol for the three diff...
#define panic(...)
This implements a cprintf based panic() function.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
const PortID InvalidPortID
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
Declaration of the Packet class.
A virtual base opaque structure used to hold state associated with the packet (e.g....
SenderState(TesterThread *_th)