34 #ifndef __MEM_RUBY_NETWORK_GARNET_ROUTING_UNIT_HH__
35 #define __MEM_RUBY_NETWORK_GARNET_ROUTING_UNIT_HH__
89 #endif // __MEM_RUBY_NETWORK_GARNET_ROUTING_UNIT_HH__
std::map< int, PortDirection > m_inports_idx2dirn
int outportComputeXY(RouteInfo route, int inport, PortDirection inport_dirn)
void addWeight(int link_weight)
int lookupRoutingTable(int vnet, NetDest net_dest)
std::string PortDirection
std::map< int, PortDirection > m_outports_idx2dirn
void addRoute(const NetDest &routing_table_entry)
std::map< PortDirection, int > m_inports_dirn2idx
int outportComputeCustom(RouteInfo route, int inport, PortDirection inport_dirn)
void addInDirection(PortDirection inport_dirn, int inport)
int outportCompute(RouteInfo route, int inport, PortDirection inport_dirn)
void addOutDirection(PortDirection outport_dirn, int outport)
std::vector< int > m_weight_table
std::vector< NetDest > m_routing_table
std::map< PortDirection, int > m_outports_dirn2idx
RoutingUnit(Router *router)