CrossbarSwitch.hh (11666:10d59d546ea2) CrossbarSwitch.hh (12071:fd0b4bd769dd)
1/*
2 * Copyright (c) 2008 Princeton University
3 * Copyright (c) 2016 Georgia Institute of Technology
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

54 void print(std::ostream& out) const {};
55
56 inline void update_sw_winner(int inport, flit *t_flit)
57 { m_switch_buffer[inport]->insert(t_flit); }
58
59 inline double get_crossbar_activity() { return m_crossbar_activity; }
60
61 uint32_t functionalWrite(Packet *pkt);
1/*
2 * Copyright (c) 2008 Princeton University
3 * Copyright (c) 2016 Georgia Institute of Technology
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

54 void print(std::ostream& out) const {};
55
56 inline void update_sw_winner(int inport, flit *t_flit)
57 { m_switch_buffer[inport]->insert(t_flit); }
58
59 inline double get_crossbar_activity() { return m_crossbar_activity; }
60
61 uint32_t functionalWrite(Packet *pkt);
62 void resetStats();
62
63 private:
64 int m_num_vcs;
65 int m_num_inports;
66 double m_crossbar_activity;
67 Router *m_router;
68 std::vector<flitBuffer *> m_switch_buffer;
69 std::vector<OutputUnit *> m_output_unit;
70};
71
72#endif // __MEM_RUBY_NETWORK_GARNET_CROSSBAR_SWITCH_HH__
63
64 private:
65 int m_num_vcs;
66 int m_num_inports;
67 double m_crossbar_activity;
68 Router *m_router;
69 std::vector<flitBuffer *> m_switch_buffer;
70 std::vector<OutputUnit *> m_output_unit;
71};
72
73#endif // __MEM_RUBY_NETWORK_GARNET_CROSSBAR_SWITCH_HH__