Switch.hh (10311:ad9c042dce54) Switch.hh (10370:4466307b8a2a)
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;

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

57class Switch : public BasicRouter
58{
59 public:
60 typedef SwitchParams Params;
61 Switch(const Params *p);
62 ~Switch();
63 void init();
64
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;

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

57class Switch : public BasicRouter
58{
59 public:
60 typedef SwitchParams Params;
61 Switch(const Params *p);
62 ~Switch();
63 void init();
64
65 void addInPort(const std::map<int, MessageBuffer*>& in);
66 void addOutPort(const std::map<int, MessageBuffer*>& out,
65 void addInPort(const std::vector<MessageBuffer*>& in);
66 void addOutPort(const std::vector<MessageBuffer*>& out,
67 const NetDest& routing_table_entry,
68 Cycles link_latency, int bw_multiplier);
69
70 const Throttle* getThrottle(LinkID link_number) const;
71
72 void resetStats();
73 void collateStats();
74 void regStats();

--- 34 unchanged lines hidden ---
67 const NetDest& routing_table_entry,
68 Cycles link_latency, int bw_multiplier);
69
70 const Throttle* getThrottle(LinkID link_number) const;
71
72 void resetStats();
73 void collateStats();
74 void regStats();

--- 34 unchanged lines hidden ---