From: Luke Kenneth Casson Leighton Date: Fri, 24 Jul 2020 13:43:54 +0000 (+0100) Subject: better debug assert log message X-Git-Tag: semi_working_ecp5~567 X-Git-Url: https://git.libre-soc.org/?p=soc.git;a=commitdiff_plain;h=f5bcf3c193eb30185e63113e59bdf441562c59af;ds=sidebyside better debug assert log message --- 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