From f5bcf3c193eb30185e63113e59bdf441562c59af Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 24 Jul 2020 14:43:54 +0100 Subject: [PATCH] better debug assert log message --- src/soc/decoder/isa/caller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index b85843ec..e1abc248 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -475,7 +475,8 @@ class ISACaller: def handle_comparison(self, outputs): out = outputs[0] - assert isinstance(out, SelectableInt) + assert isinstance(out, SelectableInt, + "out zero not a SelectableInt %s" % repr(outputs)) print("handle_comparison", out.bits, hex(out.value)) # TODO - XXX *processor* in 32-bit mode # https://bugs.libre-soc.org/show_bug.cgi?id=424 -- 2.30.2