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
74 private:
75 const int m_id;
76 link_type m_type;
77 const Cycles m_latency;
78
79 flitBuffer *linkBuffer;
80 Consumer *link_consumer;
81 flitBuffer *link_srcQueue;
82
83 // Statistical variables
84 unsigned int m_link_utilized;
85 std::vector<unsigned int> m_vc_load;
86};
87
88#endif // __MEM_RUBY_NETWORK_GARNET_NETWORK_LINK_HH__