restore incorrect removal of zero-Cat at LHS (should never do that)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 16 Aug 2020 09:21:09 +0000 (10:21 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 16 Aug 2020 09:21:09 +0000 (10:21 +0100)
src/soc/experiment/mmu.py

index 6ec7ded47abeeaf680757caec20ea9ab6793742e..f9c26d166e4be63fd261f8bbd03baae91bac7e60 100644 (file)
@@ -277,7 +277,7 @@ class MMU(Elaboratable):
                 # for the segment check
                 comb += v.shift.eq(rts)
                 comb += v.mask_size.eq(mbits[0:5])
-                comb += v.pgbase.eq(pgtbl[8:56])
+                comb += v.pgbase.eq(Cat(Const(0, 8), pgtbl[8:56]))
 
 #               if l_in.valid = '1' then
                 with m.If(l_in.valid):