From 16a332d4d943f6a973df75d8c1f85aef6eb0edf8 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Mon, 15 Feb 2021 14:06:12 -0300 Subject: [PATCH] Simplify obtaining the PC from the register file --- src/soc/simple/test/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/simple/test/test_core.py b/src/soc/simple/test/test_core.py index 98d42840..6f7c8ffd 100644 --- a/src/soc/simple/test/test_core.py +++ b/src/soc/simple/test/test_core.py @@ -173,7 +173,7 @@ def check_regs(dut, sim, core, test, code): dut.assertEqual(e_ca, ca, "ca mismatch %s" % (repr(code))) # Check the PC as well - state = core.regs.rf['state'] + state = core.regs.state pc = yield state.r_ports['cia'].data_o e_pc = sim.pc.CIA.value dut.assertEqual(e_pc, pc) -- 2.30.2