From 984ce6eef2e439955ff991f90c2b654be7c6c3f3 Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 17 Apr 2025 19:56:53 -0400 Subject: Add option to turn off pipeline --- tests/id.cc | 3 ++- tests/if.cc | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/id.cc b/tests/id.cc index 6dcb124..321c013 100644 --- a/tests/id.cc +++ b/tests/id.cc @@ -184,8 +184,9 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # two", "[id]") t = this->encode_J_type(0xBBCCF, 0b10101, 0b0011, 0b10); i = this->decode_bits(t); + t = 0xFFFBBCCF; CHECK(i->get_s1() == 0x00000000); // registers are empty - CHECK(i->get_s2() == 0xFFFBBCCF); + CHECK(i->get_s2() == t); CHECK(i->get_mnemonic() == JAL); delete i; diff --git a/tests/if.cc b/tests/if.cc index 01070ef..8b30d0e 100644 --- a/tests/if.cc +++ b/tests/if.cc @@ -73,9 +73,7 @@ class IFFixture TEST_CASE_METHOD(IFFixture, "fetch returns single instuction", "[if_pipe]") { InstrDTO *i; - int expected_cycles; - expected_cycles = this->m_delay + this->c_delay + 2; i = this->fetch_through(); REQUIRE(i->get_instr_bits() == this->p[0]); -- cgit v1.2.3