From 2a06e10509a69ee8f15d774ec8fb3b6d5050e750 Mon Sep 17 00:00:00 2001 From: Cole Poirier Date: Wed, 12 Aug 2020 09:47:09 -0700 Subject: [PATCH] mmu.py fix length of hex const https://bugs.libre-soc.org/show_bug.cgi?id=450#c31 --- src/soc/experiment/mmu.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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): -- 2.30.2