diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-04-27 17:54:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-27 17:54:41 -0400 |
commit | ecb0d131e786b1fec5233c7674ba6710ce201c83 (patch) | |
tree | 78bfefa262912b0f26a27a1b741c082a2a6e8176 /tests/cache_1_1.cc | |
parent | 6f99f95d9968ea5c83bf5a467bd4bc64750075a3 (diff) | |
parent | de6ccea3c6d23b788acecb0744221a4f6078597a (diff) |
Merge pull request #8 from bdunahu/bdunahu
Replace view function with get_data
Diffstat (limited to 'tests/cache_1_1.cc')
-rw-r--r-- | tests/cache_1_1.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/cache_1_1.cc b/tests/cache_1_1.cc index 7d16f76..3cc83a0 100644 --- a/tests/cache_1_1.cc +++ b/tests/cache_1_1.cc @@ -20,7 +20,7 @@ TEST_CASE_METHOD(C11, "store 0th element in DELAY cycles", "[dram]") CHECK(r); expected.at(0) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); } @@ -40,7 +40,7 @@ TEST_CASE_METHOD(C11, "store 0th, 1st element in DELAY cycles, with conflict", " CHECK(!r); // check for early modifications - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(this->expected == this->actual); } @@ -48,7 +48,7 @@ TEST_CASE_METHOD(C11, "store 0th, 1st element in DELAY cycles, with conflict", " CHECK(r); expected.at(0) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); // this should have been loaded already! @@ -59,7 +59,7 @@ TEST_CASE_METHOD(C11, "store 0th, 1st element in DELAY cycles, with conflict", " CHECK(r); expected.at(1) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); } @@ -81,7 +81,7 @@ TEST_CASE_METHOD( CHECK(r); expected.at(0) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); // write back to memory @@ -95,7 +95,7 @@ TEST_CASE_METHOD( CHECK(r); expected.at(0) = 0; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; CHECK(expected == actual); this->wait_then_do( @@ -106,6 +106,6 @@ TEST_CASE_METHOD( expected.at(0) = 0; expected.at(1) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); } |