fix LDSTSplitter
authorTobias Platen <tplaten@posteo.de>
Wed, 5 Aug 2020 18:15:09 +0000 (20:15 +0200)
committerTobias Platen <tplaten@posteo.de>
Wed, 5 Aug 2020 18:15:09 +0000 (20:15 +0200)
src/soc/scoreboard/addr_split.py

index aa99f63c9c097c2e8b5723f7b8ad899db857bcd9..0cd546ce142941b338bc4cc42edee854c904236b 100644 (file)
@@ -100,7 +100,7 @@ class LDSTSplitter(Elaboratable):
         mzero = Const(0, mlen)
         m.submodules.ld1 = ld1 = LDLatch(self.dwidth, self.awidth-dlen, mlen)
         m.submodules.ld2 = ld2 = LDLatch(self.dwidth, self.awidth-dlen, mlen)
-        m.submodules.lenexp = lenexp = LenExpand(self.dlen)
+        m.submodules.lenexp = lenexp = LenExpand(self.dlen, cover=8)
 
         # set up len-expander, len to mask.  ld1 gets first bit, ld2 gets rest
         comb += lenexp.addr_i.eq(self.addr_i)