SimpleNetwork.hh (9302:c2e70a9bc340) | SimpleNetwork.hh (9799:5aed42e54180) |
---|---|
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, | 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 bool isReconfiguration); 78 void makeInLink(NodeID src, SwitchID dest, BasicLink* link, | 76 const NetDest& routing_table_entry); 77 void makeInLink(NodeID src, SwitchID dest, BasicLink* link, |
79 LinkDirection direction, | 78 LinkDirection direction, |
80 const NetDest& routing_table_entry, 81 bool isReconfiguration); | 79 const NetDest& routing_table_entry); |
82 void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link, 83 LinkDirection direction, | 80 void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link, 81 LinkDirection direction, |
84 const NetDest& routing_table_entry, 85 bool isReconfiguration); | 82 const NetDest& routing_table_entry); |
86 87 void print(std::ostream& out) const; 88 89 bool functionalRead(Packet *pkt); 90 uint32_t functionalWrite(Packet *pkt); 91 92 private: 93 void checkNetworkAllocation(NodeID id, bool ordered, int network_num); --- 35 unchanged lines hidden --- | 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 --- |