Deleted Added
sdiff udiff text old ( 11666:10d59d546ea2 ) new ( 12071:fd0b4bd769dd )
full compact
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();
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__