diff options
author | Matthew Poremba <matthew.poremba@amd.com> | 2017-01-19 11:59:10 -0500 |
---|---|---|
committer | Matthew Poremba <matthew.poremba@amd.com> | 2017-01-19 11:59:10 -0500 |
commit | 42044645b9e3a60bd77a84de6c356033d6133004 (patch) | |
tree | 0afd45ce0d71b4dc8cefe21f3ec188cb21a9774e /src/sim/init_signals.cc | |
parent | a4b546c3a139aeb33f087422637ac06fc4477d11 (diff) | |
download | gem5-42044645b9e3a60bd77a84de6c356033d6133004.tar.xz |
ruby: Check MessageBuffer space in garnet NetworkInterface
Garnet's NetworkInterface does not consider the size of MessageBuffers when
ejecting a Message from the network. Add a size check for the MessageBuffer
and only enqueue if space is available. If space is not available, the
message if placed in a queue and the credit is held. A callback from the
MessageBuffer is implemented to wake the NetworkInterface. If there are
messages in the stalled queue, they are processed first, in a FIFO manner
and if succesfully ejected, the credit is finally sent back upstream. The
maximum size of the stall queue is equal to the number of valid VNETs
with MessageBuffers attached.
Diffstat (limited to 'src/sim/init_signals.cc')
0 files changed, 0 insertions, 0 deletions