From ff6bc236c86a64f98d894ef04d2fa81a3c6bd47c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 6 Jun 2020 18:09:17 +0100 Subject: [PATCH] write-mask made from LD and Update mode (for data_o and addr_o output) --- src/soc/experiment/compldst_multi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/soc/experiment/compldst_multi.py b/src/soc/experiment/compldst_multi.py index 89c7bcaa..5f809019 100644 --- a/src/soc/experiment/compldst_multi.py +++ b/src/soc/experiment/compldst_multi.py @@ -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 -- 2.30.2