add TODO for cry_in==CA
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Mar 2020 20:30:51 +0000 (20:30 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Mar 2020 20:30:51 +0000 (20:30 +0000)
src/soc/simulator/internalop_sim.py

index d4c1c8d6d4ee6fd4d52bec74edef916d8d6ae8eb..4afe531c2dc840b266e5754a4217ca229477690e 100644 (file)
@@ -133,6 +133,8 @@ class InternalOpSimulator:
         cry_in = yield pdecode2.dec.op.cry_in
         if cry_in == CryIn.ONE.value:
             carry = 1
+        elif cry_in == CryIn.CA.value:
+            carry = TODO deliberately cause error here
 
         result = self.execute_alu_op(operand1, operand2, internal_op,
                                      carry=carry)