write-mask made from LD and Update mode (for data_o and addr_o output)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 6 Jun 2020 17:09:17 +0000 (18:09 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 6 Jun 2020 17:09:17 +0000 (18:09 +0100)
src/soc/experiment/compldst_multi.py

index 89c7bcaaf276ddf445962ca3ff5d3d78ac6ce1e4..5f809019b57d78155cd3cf9c2be15cafae8c011e 100644 (file)
@@ -448,8 +448,9 @@ class LDSTCompUnit(RegSpecAPI, Elaboratable):
         with m.If(op_is_update & self.wr.go[1]):
             comb += self.dest[1].eq(addr_r)
 
-        # need to look like MultiCompUnit: put wrmask out
-        comb += self.wrmask.eq(self.wr.rel)
+        # need to look like MultiCompUnit: put wrmask out.
+        # XXX may need to make this enable only when write active
+        comb += self.wrmask.eq(bro & Cat(op_is_ld, op_is_update))
 
         ###########################
         # PortInterface connections