error in address width (truncated) in setting up L0CacheBuffer
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Jun 2020 14:50:35 +0000 (15:50 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Jun 2020 14:50:35 +0000 (15:50 +0100)
src/soc/experiment/l0_cache.py

index aadd4f48b1f2f0421f9864c896edb5c48d881f28..ae5aea75c555424b42417b47c443f1cd9c87c9c2 100644 (file)
@@ -498,7 +498,7 @@ class L0CacheBuffer(Elaboratable):
 class TstL0CacheBuffer(Elaboratable):
     def __init__(self, n_units=3, regwid=16, addrwid=4):
         self.mem = TestMemory(regwid, addrwid, granularity=regwid//8)
-        self.l0 = L0CacheBuffer(n_units, self.mem, regwid, addrwid)
+        self.l0 = L0CacheBuffer(n_units, self.mem, regwid, addrwid<<1)
 
     def elaborate(self, platform):
         m = Module()