Clear operand latch on a terminating condition
[soc.git] / src / soc / experiment / compldst_multi.py
index 750edcf89e54cbacc1a2e429070d10efa9587d3b..f1e470b414e1f8780464796687bd0457f1c145b5 100644 (file)
@@ -396,7 +396,7 @@ class LDSTCompUnit(RegSpecAPI, Elaboratable):
         # create a latch/register for the operand
         with m.If(self.issue_i):
             sync += oper_r.eq(self.oper_i)
-        with m.If(self.done_o):
+        with m.If(self.done_o | terminate):
             sync += oper_r.eq(0)
 
         # and for LD