diff options
author | bd <bdunahu@operationnull.com> | 2025-04-16 22:22:09 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-16 22:22:09 -0400 |
commit | 23d3ebb2702e6b08c7f6b997067e1bc76483b813 (patch) | |
tree | da31aa76d8ea073d92757466985ecdf9ff57a2d9 /tests/id.cc | |
parent | b778ccc3e7c2f2ac3c4892a87f5269f342fd895f (diff) |
Partial fixes for changes in DRAM/Cache, including uncovered bug
Diffstat (limited to 'tests/id.cc')
-rw-r--r-- | tests/id.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/id.cc b/tests/id.cc index 77a7cd9..b8d0479 100644 --- a/tests/id.cc +++ b/tests/id.cc @@ -13,7 +13,7 @@ class IDFixture IDFixture() { this->dr = new Dram(3); - this->c = new Cache(this->dr, 1); + this->c = new Cache(this->dr, 5, 0, 1); this->dum = new DUM(nullptr); this->d = new ID(dum); this->ct = new Controller(this->d, this->c, true); @@ -152,7 +152,7 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary i-type # two", "[id]") t = this->encode_I_type(0xCC, 0b010, 0b101, 0b1011, 0b1); i = this->decode_bits(t); - + CHECK(i->get_s1() == 0x00000000); // registers are empty CHECK(i->get_s2() == 0x00000000); CHECK(i->get_s3() == 0xCC); |