Go to the documentation of this file.
5 #include "debug/HMCController.hh"
9 numMemSidePorts(
p->port_mem_side_ports_connection_count),
12 assert(
p->port_cpu_side_ports_connection_count == 1);
16 HMCControllerParams::create()
25 if (mem_side_port_id == 0)
57 if (!
reqLayers[mem_side_port_id]->tryTiming(src_port)) {
89 bool success =
memSidePorts[mem_side_port_id]->sendTimingReq(pkt);
99 reqLayers[mem_side_port_id]->failedTiming(src_port,
106 if (expect_response) {
111 reqLayers[mem_side_port_id]->succeededTiming(packetFinishTime);
114 pktCount[cpu_side_port_id][mem_side_port_id]++;
115 pktSize[cpu_side_port_id][mem_side_port_id] += pkt_size;
const Cycles forwardLatency
A ResponsePort is a specialization of a port.
std::vector< QueuedResponsePort * > cpuSidePorts
The memory-side ports and CPU-side ports of the crossbar.
std::vector< bool > gotAddrRanges
Remember for each of the memory-side ports of the crossbar if we got an address range from the connec...
bool cacheResponding() const
Stats::Vector transDist
Stats for transaction distribution and data passing through the crossbar.
bool isExpressSnoop() const
uint32_t payloadDelay
The extra pipelining delay from seeing the packet until the end of payload is transmitted by the comp...
uint64_t Tick
Tick count type.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
RequestPtr req
A pointer to the original request.
virtual bool recvTimingReq(PacketPtr pkt, PortID cpu_side_port_id)
const Cycles frontendLatency
Cycles of front-end pipeline including the delay to accept the request and to decode the address.
uint32_t headerDelay
The extra delay from seeing the packet until the header is transmitted.
virtual void recvRangeChange(PortID mem_side_port_id)
Function called by the port when the crossbar is recieving a range change.
HMCController(const HMCControllerParams *p)
const std::string & cmdString() const
Return the string name of the cmd field (for debugging and tracing).
bool needsResponse() const
Tick clockEdge(Cycles cycles=Cycles(0)) const
Determine the tick when a cycle begins, by default the current one, but the argument also enables the...
int rotate_counter()
Function for rotating the round robin counter.
std::unordered_map< RequestPtr, PortID > routeTo
Remember where request packets came from so that we can route responses to the appropriate port.
int cmdToIndex() const
Return the index of this command.
const std::string name() const
Return port name (for DPRINTF).
HMC Controller, in general, is responsible for translating the host protocol (AXI for example) to ser...
virtual void recvRangeChange(PortID mem_side_port_id)
Function called by the port when the crossbar is recieving a range change.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Cycles is a wrapper class for representing cycle counts, i.e.
std::vector< ReqLayer * > reqLayers
Declare the layers of this crossbar, one vector for requests and one for responses.
A non-coherent crossbar connects a number of non-snooping memory-side ports and cpu_sides,...
void calcPacketTiming(PacketPtr pkt, Tick header_delay)
Calculate the timing parameters for the packet.
std::vector< RequestPort * > memSidePorts
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17