From 344b389f04151678ea48eac487d5f0cc119e2fb8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 30 Apr 2021 11:19:28 +0100 Subject: [PATCH] better reporting on gpr comparisons --- src/soc/simple/test/test_core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/simple/test/test_core.py b/src/soc/simple/test/test_core.py index ff1ce52b..c40644c7 100644 --- a/src/soc/simple/test/test_core.py +++ b/src/soc/simple/test/test_core.py @@ -154,7 +154,8 @@ def check_regs(dut, sim, core, test, code): for i in range(32): simregval = sim.gpr[i].asint() dut.assertEqual(simregval, intregs[i], - "int reg %d not equal %s" % (i, repr(code))) + "int reg %d not equal %s. got %x expected %x" % \ + (i, repr(code), simregval, intregs[i])) # CRs crregs = [] -- 2.30.2