better debug assert log message
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Jul 2020 13:43:54 +0000 (14:43 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Jul 2020 13:43:54 +0000 (14:43 +0100)
src/soc/decoder/isa/caller.py

index b85843ec8148ba0f9f3d7f35a79c7da9b54b7b85..e1abc248beec0405222878a99ac9315720fffeb9 100644 (file)
@@ -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