From: Cesar Strauss Date: Tue, 17 Aug 2021 11:11:19 +0000 (-0300) Subject: Clear operand latch on a terminating condition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=954dc88e60300e7470967bcf8568df5bf24f41d5;p=soc.git Clear operand latch on a terminating condition --- diff --git a/src/soc/experiment/compldst_multi.py b/src/soc/experiment/compldst_multi.py index 750edcf8..f1e470b4 100644 --- a/src/soc/experiment/compldst_multi.py +++ b/src/soc/experiment/compldst_multi.py @@ -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