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

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

65
66 inline bool isReady(Cycles curTime)
67 { return linkBuffer->isReady(curTime); }
68
69 inline flit* peekLink() { return linkBuffer->peekTopFlit(); }
70 inline flit* consumeLink() { return linkBuffer->getTopFlit(); }
71
72 uint32_t functionalWrite(Packet *);
73 void resetStats();
74
75 private:
76 const int m_id;
77 link_type m_type;
78 const Cycles m_latency;
79
80 flitBuffer *linkBuffer;
81 Consumer *link_consumer;
82 flitBuffer *link_srcQueue;
83
84 // Statistical variables
85 unsigned int m_link_utilized;
86 std::vector<unsigned int> m_vc_load;
87};
88
89#endif // __MEM_RUBY_NETWORK_GARNET_NETWORK_LINK_HH__