Switch.hh (9389:8f8c911ab5a7) Switch.hh (9499:b03b556a8fbb)
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;

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

58 public:
59 typedef SwitchParams Params;
60 Switch(const Params *p);
61 ~Switch();
62
63 void init();
64 void addInPort(const std::vector<MessageBuffer*>& in);
65 void addOutPort(const std::vector<MessageBuffer*>& out,
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;

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

58 public:
59 typedef SwitchParams Params;
60 Switch(const Params *p);
61 ~Switch();
62
63 void init();
64 void addInPort(const std::vector<MessageBuffer*>& in);
65 void addOutPort(const std::vector<MessageBuffer*>& out,
66 const NetDest& routing_table_entry, int link_latency,
66 const NetDest& routing_table_entry, Cycles link_latency,
67 int bw_multiplier);
68 const Throttle* getThrottle(LinkID link_number) const;
69 const std::vector<Throttle*>* getThrottles() const;
70 void clearRoutingTables();
71 void clearBuffers();
72 void reconfigureOutPort(const NetDest& routing_table_entry);
73
74 void printStats(std::ostream& out) const;

--- 27 unchanged lines hidden ---
67 int bw_multiplier);
68 const Throttle* getThrottle(LinkID link_number) const;
69 const std::vector<Throttle*>* getThrottles() const;
70 void clearRoutingTables();
71 void clearBuffers();
72 void reconfigureOutPort(const NetDest& routing_table_entry);
73
74 void printStats(std::ostream& out) const;

--- 27 unchanged lines hidden ---