Switch.hh (10076:f81d94b53661) | Switch.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; --- 46 unchanged lines hidden (view full) --- 55class Throttle; 56 57class Switch : public BasicRouter 58{ 59 public: 60 typedef SwitchParams Params; 61 Switch(const Params *p); 62 ~Switch(); | 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; --- 46 unchanged lines hidden (view full) --- 55class Throttle; 56 57class Switch : public BasicRouter 58{ 59 public: 60 typedef SwitchParams Params; 61 Switch(const Params *p); 62 ~Switch(); |
63 | |
64 void init(); | 63 void init(); |
65 void addInPort(const std::vector<MessageBuffer*>& in); 66 void addOutPort(const std::vector<MessageBuffer*>& out, 67 const NetDest& routing_table_entry, Cycles link_latency, 68 int bw_multiplier); | 64 65 void addInPort(const std::map<int, MessageBuffer*>& in); 66 void addOutPort(const std::map<int, MessageBuffer*>& out, 67 const NetDest& routing_table_entry, 68 Cycles link_latency, int bw_multiplier); 69 |
69 const Throttle* getThrottle(LinkID link_number) const; 70 71 void resetStats(); 72 void collateStats(); 73 void regStats(); 74 const Stats::Formula & getMsgCount(unsigned int type) const 75 { return m_msg_counts[type]; } 76 --- 31 unchanged lines hidden --- | 70 const Throttle* getThrottle(LinkID link_number) const; 71 72 void resetStats(); 73 void collateStats(); 74 void regStats(); 75 const Stats::Formula & getMsgCount(unsigned int type) const 76 { return m_msg_counts[type]; } 77 --- 31 unchanged lines hidden --- |