mmu.py fixes https://bugs.libre-soc.org/show_bug.cgi?id=450#c52
authorCole Poirier <colepoirier@gmail.com>
Sat, 15 Aug 2020 23:14:00 +0000 (16:14 -0700)
committerCole Poirier <colepoirier@gmail.com>
Sat, 15 Aug 2020 23:14:00 +0000 (16:14 -0700)
src/soc/experiment/mmu.py

index 8b81106881453128bfc96263d8cd3e7c30251db7..d68a9fae8dd2047d2b84d2d75b5e9e34c2d1faa1 100644 (file)
@@ -961,13 +961,16 @@ class MMU1(Elaboratable):
         comb += pgtable_addr.eq(
                  Cat(
                   Cat(
-                   Const(0b000, 3),
-                   (
-                    (r.pgbase[3:19] & ~mask)
-                    | (addrsh       &  mask)
-                   )
+                   Cat(
+                    Const(0b000, 3),
+                    (
+                     (r.pgbase[3:19] & ~mask)
+                     | (addrsh       &  mask)
+                    )
+                   ),
+                   r.pgbase[19:56]
                   ),
-                  Const(0x00, 8)
+                 Const(0x00, 8)
                  )
                 )