Clear operand latch on a terminating condition
authorCesar Strauss <cestrauss@gmail.com>
Tue, 17 Aug 2021 11:11:19 +0000 (08:11 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Tue, 17 Aug 2021 11:11:19 +0000 (08:11 -0300)
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