better debug assert log message
[soc.git] / src / soc / decoder / isa / caller.py
index 1dd24aeb9595db923cbade2dd23a2140401dcb76..e1abc248beec0405222878a99ac9315720fffeb9 100644 (file)
@@ -475,6 +475,8 @@ class ISACaller:
 
     def handle_comparison(self, outputs):
         out = outputs[0]
+        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