Switch.cc (10370:4466307b8a2a) | Switch.cc (10918:dd3ab1f109ad) |
---|---|
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; --- 67 unchanged lines hidden (view full) --- 76} 77 78void 79Switch::addOutPort(const vector<MessageBuffer*>& out, 80 const NetDest& routing_table_entry, 81 Cycles link_latency, int bw_multiplier) 82{ 83 // Create a throttle | 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; --- 67 unchanged lines hidden (view full) --- 76} 77 78void 79Switch::addOutPort(const vector<MessageBuffer*>& out, 80 const NetDest& routing_table_entry, 81 Cycles link_latency, int bw_multiplier) 82{ 83 // Create a throttle |
84 Throttle* throttle_ptr = new Throttle(m_id, m_throttles.size(), | 84 RubySystem *rs = m_network_ptr->params()->ruby_system; 85 Throttle* throttle_ptr = new Throttle(m_id, rs, m_throttles.size(), |
85 link_latency, bw_multiplier, 86 m_network_ptr->getEndpointBandwidth(), 87 this); 88 89 m_throttles.push_back(throttle_ptr); 90 91 // Create one buffer per vnet (these are intermediaryQueues) 92 vector<MessageBuffer*> intermediateBuffers; --- 121 unchanged lines hidden --- | 86 link_latency, bw_multiplier, 87 m_network_ptr->getEndpointBandwidth(), 88 this); 89 90 m_throttles.push_back(throttle_ptr); 91 92 // Create one buffer per vnet (these are intermediaryQueues) 93 vector<MessageBuffer*> intermediateBuffers; --- 121 unchanged lines hidden --- |