if self.microwatt_compat:
# reduce way sizes and num lines
- super().__init__(NUM_LINES = 8,
+ super().__init__(NUM_LINES = 4,
NUM_WAYS = 1,
TLB_NUM_WAYS = 1,
- TLB_SET_SIZE=16) # XXX needs device-tree entry
+ TLB_SET_SIZE=4) # XXX needs device-tree entry
else:
super().__init__()
# reduce way sizes and num lines
ICacheConfig.__init__(self, NUM_LINES = 4,
NUM_WAYS = 1,
- TLB_SIZE=16 # needs device-tree update
+ TLB_SIZE=4 # needs device-tree update
)
else:
ICacheConfig.__init__(self)
def elaborate(self, platform):
m = Module()
- self.reg = reg = Signal(self.width, name="reg", reset=self.reset)
+ self.reg = reg = Signal(self.width, name="reg", reset=self.reset,
+ attrs={'syn_ramstyle': "block_ram"})
if self.synced:
domain = m.d.sync
def elaborate(self, platform):
m = Module()
bsz = int(log(self.width) / log(2))
- regs = Array(Signal(self.width, name="reg") for _ in range(self.depth))
+ regs = Array(Signal(self.width, name="reg",
+ attrs={'syn_ramstyle': "block_ram"}) \
+ for _ in range(self.depth))
# read ports. has write-through detection (returns data written)
for rp in self._rdports: