SimpleNetwork.hh (10303:71e0934af9f1) SimpleNetwork.hh (10311:ad9c042dce54)
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;

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

51
52 int getBufferSize() { return m_buffer_size; }
53 int getEndpointBandwidth() { return m_endpoint_bandwidth; }
54 bool getAdaptiveRouting() {return m_adaptive_routing; }
55
56 void collateStats();
57 void regStats();
58
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;

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

51
52 int getBufferSize() { return m_buffer_size; }
53 int getEndpointBandwidth() { return m_endpoint_bandwidth; }
54 bool getAdaptiveRouting() {return m_adaptive_routing; }
55
56 void collateStats();
57 void regStats();
58
59 // returns the queue requested for the given component
60 MessageBuffer* getToNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
61 MessageBuffer* getFromNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
59 // sets the queue requested
60 void setToNetQueue(NodeID id, bool ordered, int network_num,
61 std::string vnet_type, MessageBuffer *b);
62 void setFromNetQueue(NodeID id, bool ordered, int network_num,
63 std::string vnet_type, MessageBuffer *b);
62
63 bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
64 bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }
65
66 // Methods used by Topology to setup the network
67 void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
68 LinkDirection direction,
69 const NetDest& routing_table_entry);

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

84 void addLink(SwitchID src, SwitchID dest, int link_latency);
85 void makeLink(SwitchID src, SwitchID dest,
86 const NetDest& routing_table_entry, int link_latency);
87 void makeTopology();
88
89 // Private copy constructor and assignment operator
90 SimpleNetwork(const SimpleNetwork& obj);
91 SimpleNetwork& operator=(const SimpleNetwork& obj);
64
65 bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
66 bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }
67
68 // Methods used by Topology to setup the network
69 void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
70 LinkDirection direction,
71 const NetDest& routing_table_entry);

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

86 void addLink(SwitchID src, SwitchID dest, int link_latency);
87 void makeLink(SwitchID src, SwitchID dest,
88 const NetDest& routing_table_entry, int link_latency);
89 void makeTopology();
90
91 // Private copy constructor and assignment operator
92 SimpleNetwork(const SimpleNetwork& obj);
93 SimpleNetwork& operator=(const SimpleNetwork& obj);
94
92 std::vector<Switch*> m_switches;
93 std::vector<MessageBuffer*> m_buffers_to_free;
94 std::vector<Switch*> m_endpoint_switches;
95
96 int m_buffer_size;
97 int m_endpoint_bandwidth;
98 bool m_adaptive_routing;
99

--- 14 unchanged lines hidden ---
95 std::vector<Switch*> m_switches;
96 std::vector<MessageBuffer*> m_buffers_to_free;
97 std::vector<Switch*> m_endpoint_switches;
98
99 int m_buffer_size;
100 int m_endpoint_bandwidth;
101 bool m_adaptive_routing;
102

--- 14 unchanged lines hidden ---