break;
}
}
-
-const std::vector<Throttle*>*
-Network::getThrottles(NodeID id) const
-{
- return NULL;
-}
int netNumber, std::string vnet_type) = 0;
virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered,
int netNumber, std::string vnet_type) = 0;
- virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
virtual int getNumNodes() {return 1;}
virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
int
NetworkInterface_d::get_vnet(int vc)
{
- for (int i = 0; i < m_net_ptr->getNumberOfVirtualNetworks(); i++) {
+ for (int i = 0; i < m_virtual_networks; i++) {
if (vc >= (i*m_vc_per_vnet) && vc < ((i+1)*m_vc_per_vnet)) {
return i;
}
return m_fromNetQueues[id][network_num];
}
-const std::vector<Throttle*>*
-SimpleNetwork::getThrottles(NodeID id) const
-{
- assert(id >= 0);
- assert(id < m_nodes);
- assert(m_endpoint_switches[id] != NULL);
- return m_endpoint_switches[id]->getThrottles();
-}
-
void
SimpleNetwork::regStats()
{
// returns the queue requested for the given component
MessageBuffer* getToNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
MessageBuffer* getFromNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
- virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }
return m_throttles[link_number];
}
-const vector<Throttle*>*
-Switch::getThrottles() const
-{
- return &m_throttles;
-}
-
void
Switch::regStats()
{
const NetDest& routing_table_entry, Cycles link_latency,
int bw_multiplier);
const Throttle* getThrottle(LinkID link_number) const;
- const std::vector<Throttle*>* getThrottles() const;
void resetStats();
void collateStats();
using namespace std;
-const int HIGH_RANGE = 256;
-const int ADJUST_INTERVAL = 50000;
const int MESSAGE_SIZE_MULTIPLIER = 1000;
//const int BROADCAST_SCALING = 4; // Have a 16p system act like a 64p systems
const int BROADCAST_SCALING = 1;