1/* 2 * Copyright (c) 2011 Advanced Micro Devices, Inc. 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; --- 18 unchanged lines hidden (view full) --- 27 */ 28 29#include "mem/ruby/network/simple/SimpleLink.hh" 30 31SimpleExtLink::SimpleExtLink(const Params *p) 32 : BasicExtLink(p) 33{ 34 // For the simple links, the bandwidth factor translates to the |
35 // bandwidth multiplier. The multipiler, in combination with the 36 // endpoint bandwidth multiplier - message size multiplier ratio, 37 // determines the link bandwidth in bytes |
38 m_bw_multiplier = p->bandwidth_factor; 39} 40 41void 42SimpleExtLink::print(std::ostream& out) const 43{ 44 out << name(); 45} 46 47SimpleExtLink * 48SimpleExtLinkParams::create() 49{ 50 return new SimpleExtLink(this); 51} 52 53SimpleIntLink::SimpleIntLink(const Params *p) 54 : BasicIntLink(p) 55{ 56 // For the simple links, the bandwidth factor translates to the |
57 // bandwidth multiplier. The multipiler, in combination with the 58 // endpoint bandwidth multiplier - message size multiplier ratio, 59 // determines the link bandwidth in bytes |
60 m_bw_multiplier = p->bandwidth_factor; 61} 62 63void 64SimpleIntLink::print(std::ostream& out) const 65{ 66 out << name(); 67} 68 69SimpleIntLink * 70SimpleIntLinkParams::create() 71{ 72 return new SimpleIntLink(this); 73} |