From: Luke Kenneth Casson Leighton Date: Fri, 30 Apr 2021 10:19:28 +0000 (+0100) Subject: better reporting on gpr comparisons X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=344b389f04151678ea48eac487d5f0cc119e2fb8;p=soc.git better reporting on gpr comparisons --- 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 = []