32#ifndef __DEV_AMDGPU_MEMORY_MANAGER_HH__
33#define __DEV_AMDGPU_MEMORY_MANAGER_HH__
36#include <unordered_map>
40#include "params/AMDGPUMemoryManager.hh"
131 if (if_name ==
"port") {
std::deque< PacketPtr > retries
bool recvTimingResp(PacketPtr pkt) override
Receive a timing response from the peer.
AMDGPUMemoryManager & gpu_mem
void recvReqRetry() override
Called by the peer if sendTimingReq was called on this peer (causing recvTimingReq to be called on th...
GPUMemPort(const std::string &_name, AMDGPUMemoryManager &_gpuMemMgr)
RequestorID getRequestorID() const
Get the requestorID for the memory manager.
std::unordered_map< uint64_t, RequestStatus > requestStatus
AMDGPUMemoryManager(const AMDGPUMemoryManagerParams &p)
Port & getPort(const std::string &if_name, PortID idx) override
Get a port with a given name and index.
const RequestorID _requestorId
void writeRequest(Addr addr, uint8_t *data, int size, Request::Flags flag, Event *callback)
Write size amount of data to device memory at addr using flags and callback.
void readRequest(Addr addr, uint8_t *data, int size, Request::Flags flag, Event *callback)
Read size amount of data from device memory at addr using flags and callback.
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.
A RequestPort is a specialisation of a Port, which implements the default protocol for the three diff...
ClockedObject declaration and implementation.
virtual Port & getPort(const std::string &if_name, PortID idx=InvalidPortID)
Get a port with a given name and index.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
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.
SenderState(Event *callback, Addr addr, uint64_t requestId)
uint64_t outstandingChunks
A virtual base opaque structure used to hold state associated with the packet (e.g....