33#ifndef __MEM_RUBY_NETWORK_GARNET_0_NETWORKINTERFACE_HH__
34#define __MEM_RUBY_NETWORK_GARNET_0_NETWORKINTERFACE_HH__
47#include "params/GarnetNetworkInterface.hh"
65 typedef GarnetNetworkInterfaceParams
Params;
71 SwitchID router_id, uint32_t consumerVcs);
78 void print(std::ostream& out)
const;
159 std::stringstream
ss;
250 std::stringstream
ss;
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....
bool isVnetSupported(int pVnet)
OutputPort(NetworkLink *outLink, CreditLink *creditLink, int routerID)
void vcRoundRobin(int vc)
CreditLink * inCreditLink()
NetworkLink * outNetLink()
CreditLink * _inCreditLink
std::vector< int > _vnets
flitBuffer * outFlitQueue()
NetworkLink * _outNetLink
flitBuffer * _outFlitQueue
~NetworkInterface()=default
std::vector< OutputPort * > outPorts
bool functionalRead(Packet *pkt, WriteMask &mask)
std::vector< int > m_vc_allocator
std::vector< InputPort * > inPorts
void addInPort(NetworkLink *in_link, CreditLink *credit_link)
GarnetNetwork * m_net_ptr
void scheduleFlit(flit *t_flit)
int calculateVC(int vnet)
void init_net_ptr(GarnetNetwork *net_ptr)
const int m_virtual_networks
void addOutPort(NetworkLink *out_link, CreditLink *credit_link, SwitchID router_id, uint32_t consumerVcs)
std::vector< int > m_stall_count
std::vector< int > vc_busy_counter
void incrementStats(flit *t_flit)
void print(std::ostream &out) const
GarnetNetworkInterfaceParams Params
int get_router_id(int vnet)
std::vector< MessageBuffer * > outNode_ptr
void addNode(std::vector< MessageBuffer * > &inNode, std::vector< MessageBuffer * > &outNode)
InputPort * getInportForVnet(int vnet)
void scheduleOutputPort(OutputPort *oPort)
NetworkInterface(const Params &p)
OutputPort * getOutportForVnet(int vnet)
std::vector< MessageBuffer * > inNode_ptr
uint32_t functionalWrite(Packet *)
bool flitisizeMessage(MsgPtr msg_ptr, int vnet)
std::vector< Tick > m_ni_out_vcs_enqueue_time
std::vector< OutVcState > outVcState
std::vector< flitBuffer > niOutVcs
void scheduleOutputLink()
This function looks at the NI buffers if some buffer has flits which are ready to traverse the link i...
std::vector< int > mVnets
std::shared_ptr< Message > MsgPtr
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.