update-mode request write signalled too early
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 Jul 2020 03:46:04 +0000 (04:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 Jul 2020 03:46:04 +0000 (04:46 +0100)
src/soc/experiment/compldst_multi.py

index 014ccbe0f376c9c925f552caebd51dd8412f3b98..c1f4f4372f0a5ce075ad05bc195ca00e90a0fb62 100644 (file)
@@ -433,7 +433,7 @@ class LDSTCompUnit(RegSpecAPI, Elaboratable):
                                   op_is_ld & self.shadown_i)
 
         # request write of EA result only in update mode
-        comb += self.wr.rel[1].eq(upd_l.q & busy_o & op_is_update &
+        comb += self.wr.rel[1].eq(upd_l.q & busy_o & op_is_update & alu_valid &
                                   self.shadown_i)
 
         # provide "done" signal: select req_rel for non-LD/ST, adr_rel for LD/ST