diff options
author | bd <bdunahu@operationnull.com> | 2025-03-26 22:01:54 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-26 22:01:54 -0400 |
commit | 8d37d15ebd1221e3b1698abb3b051d9d0c044c93 (patch) | |
tree | fd3263d2754d662fdad6d69851f14a84f44db4d1 /tests/if.cc | |
parent | c30535c914a8ac32278f1af0b16968550d0fb466 (diff) |
Fix timing issues in fetch tests
Diffstat (limited to 'tests/if.cc')
-rw-r--r-- | tests/if.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/if.cc b/tests/if.cc index 86458d2..5c1b645 100644 --- a/tests/if.cc +++ b/tests/if.cc @@ -74,7 +74,7 @@ TEST_CASE_METHOD(IFPipeFixture, "fetch returns single instuction", "[if_pipe]") InstrDTO instr; int expected_cycles; - expected_cycles = this->m_delay + this->c_delay + 1; + expected_cycles = this->m_delay + this->c_delay + 2; this->fetch_through(instr); CHECK(instr.get_if_cycle() == expected_cycles); @@ -86,7 +86,7 @@ TEST_CASE_METHOD(IFPipeFixture, "fetch returns two instuctions", "[if_pipe]") InstrDTO instr; int expected_cycles; - expected_cycles = this->m_delay + this->c_delay + 1; + expected_cycles = this->m_delay + this->c_delay + 2; this->fetch_through(instr); CHECK(instr.get_if_cycle() == expected_cycles); |