[Libre-soc-bugs] [Bug 450] Create MMU from microwatt mmu.vhdl

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Aug 10 17:30:58 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=450

--- Comment #14 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
note how the git diff wraps?  did you remember to do "git diff" before each
commit?


diff --git a/src/soc/experiment/mmu.py b/src/soc/experiment/mmu.py
index e4779962..d5cba5a2 100644
--- a/src/soc/experiment/mmu.py
+++ b/src/soc/experiment/mmu.py
@@ -572,7 +572,7 @@ class AddrShifter(Elaboratable):
 #           -- rts == radix tree size, # address bits being translated
 #           rts := unsigned('0' & pgtbl(62 downto 61) & pgtbl(7 downto 5));
             # rts == radix tree size, number of address bits being translated
-            comb += rts.eq(((Cat(Const(0b0, 1) , Cat(pgtbl[61:63],
pgtbl[5:8]))).as_unsigned())
+            comb += rts.eq((0 & pgtbl[61:63] & pgtbl[5:8]).as_unsigned())

 #           -- mbits == # address bits to index top level of tree
 #           mbits := unsigned('0' & pgtbl(4 downto 0));

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list