whoops use C not Const
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Dec 2021 00:18:39 +0000 (00:18 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Dec 2021 00:18:39 +0000 (00:18 +0000)
src/soc/experiment/mmu.py

index 763346f22d941885134ed0c41a724fd6f1726f3e..64673510e7b889db94793a402543c148e59a4ceb 100644 (file)
@@ -293,7 +293,7 @@ class MMU(Elaboratable):
             comb += v.pt0_valid.eq(1)
 
         # rts == radix tree size, # address bits being translated
-        comb += rts.eq(Cat(prtbl.rts2, prtbl.rts1, Const(0)))
+        comb += rts.eq(Cat(prtbl.rts2, prtbl.rts1, C(0)))
 
         # mbits == # address bits to index top level of tree
         comb += mbits.eq(prtbl.rpds)