Ruby: Add new object called WireBuffer to mimic a Wire.

This is a substitute for MessageBuffers between controllers where you don't
want messages to actually go through the Network, because requests/responses can
always get reordered wrt to one another (even if you turn off Randomization and turn on Ordered)
because you are, after all, going through a network with contention. For systems where you model
multiple controllers that are very tightly coupled and do not actually go through a network,
it is a pain to have to write a coherence protocol to account for mixed up request/response orderings
despite the fact that it's completely unrealistic.  This is *not* meant as a substitute for real
MessageBuffers when messages do in fact go over a network.
This commit is contained in:
Lisa Hsu
2011-03-31 17:17:57 -07:00
parent 06fcaf9104
commit 322b9ca2c5
7 changed files with 322 additions and 0 deletions

View File

@@ -146,6 +146,10 @@ structure (CacheMemory, external = "yes") {
void setMRU(Address);
}
structure (WireBuffer, inport="yes", outport="yes", external = "yes") {
}
structure (MemoryControl, inport="yes", outport="yes", external = "yes") {
}