From 954dc88e60300e7470967bcf8568df5bf24f41d5 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Tue, 17 Aug 2021 08:11:19 -0300 Subject: [PATCH] Clear operand latch on a terminating condition --- src/soc/experiment/compldst_multi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2