From: Cole Poirier Date: Wed, 12 Aug 2020 16:47:09 +0000 (-0700) Subject: mmu.py fix length of hex const https://bugs.libre-soc.org/show_bug.cgi?id=450#c31 X-Git-Tag: semi_working_ecp5~392 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a06e10509a69ee8f15d774ec8fb3b6d5050e750;p=soc.git mmu.py fix length of hex const https://bugs.libre-soc.org/show_bug.cgi?id=450#c31 --- diff --git a/src/soc/experiment/mmu.py b/src/soc/experiment/mmu.py index a1d848dd..16704f09 100644 --- a/src/soc/experiment/mmu.py +++ b/src/soc/experiment/mmu.py @@ -255,8 +255,7 @@ class AddrMaskGen(Elaboratable, MMU): # -- mask_count has to be >= 5 # m := x"001f"; # mask_count has to be >= 5 - # TODO check hex conts with lkcl - comb += mask.eq(Const(0x001F, 5) + comb += mask.eq(Const(0x001F, 16) # for i in 5 to 15 loop for i in range(5,16):