[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 10:43:29 BST 2020
https://bugs.libre-soc.org/show_bug.cgi?id=450
--- Comment #7 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
572 # rts := unsigned('0' & pgtbl(62 downto 61) & pgtbl(7 downto
5));
573 # rts == radix tree size, number of address bits being
translated
574 comb += rts.eq((0 & pgtbl[61:63] & pgtbl[5:8]).as_unsigned())
575
this is a Cat like i explained in the earlier comment. you swap the order of
the things separated by & but DO NOT swap the order of bits in the const.
x'1243' & foo
becomes
Cat(foo, Const(0x1243, 16))
and
'0111' & bar
becomes
Cat(bar, Const(0b0111, 4))
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list