34 #ifndef __MEM_RUBY_NETWORK_GARNET_NETWORK_INTERFACE_HH__
35 #define __MEM_RUBY_NETWORK_GARNET_NETWORK_INTERFACE_HH__
47 #include "params/GarnetNetworkInterface.hh"
55 typedef GarnetNetworkInterfaceParams
Params;
70 void print(std::ostream& out)
const;
121 #endif // __MEM_RUBY_NETWORK_GARNET_NETWORK_INTERFACE_HH__
std::vector< int > m_stall_count
void incrementStats(flit *t_flit)
std::vector< Cycles > m_ni_out_vcs_enqueue_time
std::shared_ptr< Message > MsgPtr
void sendCredit(flit *t_flit, bool is_free)
GarnetNetworkInterfaceParams Params
void addOutPort(NetworkLink *out_link, CreditLink *credit_link, SwitchID router_id)
int calculateVC(int vnet)
std::vector< flitBuffer * > m_ni_out_vcs
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 > vc_busy_counter
std::deque< flit * > m_stall_queue
void addInPort(NetworkLink *in_link, CreditLink *credit_link)
NetworkInterface(const Params *p)
std::vector< OutVcState * > m_out_vc_state
flitBuffer * outFlitQueue
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
flitBuffer * outCreditQueue
uint32_t functionalWrite(Packet *)
bool flitisizeMessage(MsgPtr msg_ptr, int vnet)
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
CreditLink * inCreditLink
void print(std::ostream &out) const
void addNode(std::vector< MessageBuffer * > &inNode, std::vector< MessageBuffer * > &outNode)
std::vector< int > m_vc_allocator
CreditLink * outCreditLink
std::vector< MessageBuffer * > outNode_ptr
std::vector< MessageBuffer * > inNode_ptr
void init_net_ptr(GarnetNetwork *net_ptr)
const int m_virtual_networks
GarnetNetwork * m_net_ptr
void init()
init() is called after all C++ SimObjects have been created and all ports are connected.