Go to the documentation of this file.
33 #ifndef __MEM_RUBY_NETWORK_GARNET_0_NETWORKINTERFACE_HH__
34 #define __MEM_RUBY_NETWORK_GARNET_0_NETWORKINTERFACE_HH__
47 #include "params/GarnetNetworkInterface.hh"
55 typedef GarnetNetworkInterfaceParams
Params;
61 SwitchID router_id, uint32_t consumerVcs);
68 void print(std::ostream& out)
const;
148 std::stringstream
ss;
239 std::stringstream
ss;
300 #endif // __MEM_RUBY_NETWORK_GARNET_0_NETWORKINTERFACE_HH__
void addInPort(NetworkLink *in_link, CreditLink *credit_link)
void print(std::ostream &out) const
std::vector< int > mVnets
void init_net_ptr(GarnetNetwork *net_ptr)
GarnetNetwork * m_net_ptr
flitBuffer * outFlitQueue()
CreditLink * _inCreditLink
NetworkLink * _outNetLink
CreditLink * inCreditLink()
std::vector< OutVcState > outVcState
std::vector< int > m_vc_allocator
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
void addOutPort(NetworkLink *out_link, CreditLink *credit_link, SwitchID router_id, uint32_t consumerVcs)
std::vector< int > vc_busy_counter
std::vector< InputPort * > inPorts
const int m_virtual_networks
std::vector< MessageBuffer * > outNode_ptr
GarnetNetworkInterfaceParams Params
void addNode(std::vector< MessageBuffer * > &inNode, std::vector< MessageBuffer * > &outNode)
void scheduleOutputLink()
This function looks at the NI buffers if some buffer has flits which are ready to traverse the link i...
int get_router_id(int vnet)
~NetworkInterface()=default
void scheduleFlit(flit *t_flit)
InputPort * getInportForVnet(int vnet)
void incrementStats(flit *t_flit)
flitBuffer * _outFlitQueue
std::shared_ptr< Message > MsgPtr
bool isVnetSupported(int pVnet)
int calculateVC(int vnet)
void vcRoundRobin(int vc)
NetworkInterface(const Params *p)
OutputPort(NetworkLink *outLink, CreditLink *creditLink, int routerID)
bool flitisizeMessage(MsgPtr msg_ptr, int vnet)
std::vector< int > m_stall_count
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
NetworkLink * outNetLink()
std::vector< int > _vnets
std::vector< flitBuffer > niOutVcs
std::vector< Tick > m_ni_out_vcs_enqueue_time
OutputPort * getOutportForVnet(int vnet)
std::vector< OutputPort * > outPorts
uint32_t functionalWrite(Packet *)
std::vector< MessageBuffer * > inNode_ptr
void scheduleOutputPort(OutputPort *oPort)
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17