1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 59 unchanged lines hidden (view full) --- 68 bool isVNetOrdered(int vnet) { return m_ordered[vnet]; } 69 bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; } 70 71 int getNumNodes() {return m_nodes; } 72 73 // Methods used by Topology to setup the network 74 void makeOutLink(SwitchID src, NodeID dest, BasicLink* link, 75 LinkDirection direction, |
76 const NetDest& routing_table_entry); 77 void makeInLink(NodeID src, SwitchID dest, BasicLink* link, |
78 LinkDirection direction, |
79 const NetDest& routing_table_entry); |
80 void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link, 81 LinkDirection direction, |
82 const NetDest& routing_table_entry); |
83 84 void print(std::ostream& out) const; 85 86 bool functionalRead(Packet *pkt); 87 uint32_t functionalWrite(Packet *pkt); 88 89 private: 90 void checkNetworkAllocation(NodeID id, bool ordered, int network_num); --- 35 unchanged lines hidden --- |