diff options
author | bd <bdunahu@operationnull.com> | 2025-03-08 15:19:57 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-08 15:19:57 -0500 |
commit | dcc22079fc1c455df70ab1263ea09400e4c948d6 (patch) | |
tree | a55d0f640d9eb94c58ac25cf5c551c0d7506e43e /tests | |
parent | 8fc631090fd88a7e8e62f284c3dfd3c515d14613 (diff) |
Remove queue in storage.h
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dram.cc | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/dram.cc b/tests/dram.cc index e0189c7..c646135 100644 --- a/tests/dram.cc +++ b/tests/dram.cc @@ -188,51 +188,6 @@ TEST_CASE( delete d; } -TEST_CASE("Many conflicting requests first-come first serve", "[dram]") -{ - int delay = 1; - Dram *d = new Dram(1, delay); - std::array<signed int, LINE_SIZE> expected = {0, 0, 0, 0}; - std::array<signed int, LINE_SIZE> actual = d->view(0, 1)[0]; - CHECK(expected == actual); - - signed int w = 0x11223344; - - Response r; - r = d->write(FETCH, w, 0x00000000); - r = d->write(MEM, w, 0x00000001); - - actual = d->view(0, 1)[0]; - REQUIRE(expected == actual); - d->resolve(); - - r = d->write(FETCH, w, 0x00000000); - r = d->write(L1CACHE, w, 0x00000002); - // call mem after cache - r = d->write(MEM, w, 0x00000001); - - expected.at(0) = w; - actual = d->view(0, 1)[0]; - REQUIRE(expected == actual); - d->resolve(); - - r = d->write(MEM, w, 0x00000001); - r = d->write(L1CACHE, w, 0x00000002); - - actual = d->view(0, 1)[0]; - REQUIRE(expected == actual); - d->resolve(); - - r = d->write(MEM, w, 0x00000001); - r = d->write(L1CACHE, w, 0x00000002); - - expected.at(1) = w; - actual = d->view(0, 1)[0]; - REQUIRE(expected == actual); - - delete d; -} - TEST_CASE("Sidedoor bypasses delay", "[dram]") { int delay = 3; |