SimpleNetwork.hh (11663:cf870cd20cfc) SimpleNetwork.hh (11664:2365e9e396f7)
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;

--- 50 unchanged lines hidden (view full) ---

59 bool isVNetOrdered(int vnet) const { return m_ordered[vnet]; }
60
61 // Methods used by Topology to setup the network
62 void makeExtOutLink(SwitchID src, NodeID dest, BasicLink* link,
63 const NetDest& routing_table_entry);
64 void makeExtInLink(NodeID src, SwitchID dest, BasicLink* link,
65 const NetDest& routing_table_entry);
66 void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
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;

--- 50 unchanged lines hidden (view full) ---

59 bool isVNetOrdered(int vnet) const { return m_ordered[vnet]; }
60
61 // Methods used by Topology to setup the network
62 void makeExtOutLink(SwitchID src, NodeID dest, BasicLink* link,
63 const NetDest& routing_table_entry);
64 void makeExtInLink(NodeID src, SwitchID dest, BasicLink* link,
65 const NetDest& routing_table_entry);
66 void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
67 const NetDest& routing_table_entry);
67 const NetDest& routing_table_entry,
68 PortDirection src_outport,
69 PortDirection dst_inport);
68
69 void print(std::ostream& out) const;
70
71 bool functionalRead(Packet *pkt);
72 uint32_t functionalWrite(Packet *pkt);
73
74 private:
75 void addLink(SwitchID src, SwitchID dest, int link_latency);

--- 29 unchanged lines hidden ---
70
71 void print(std::ostream& out) const;
72
73 bool functionalRead(Packet *pkt);
74 uint32_t functionalWrite(Packet *pkt);
75
76 private:
77 void addLink(SwitchID src, SwitchID dest, int link_latency);

--- 29 unchanged lines hidden ---