From d868a8ed77ebad2c1df449cb70349c6c6eea2c20 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 18 Feb 2022 20:50:22 +0000 Subject: [PATCH] add blockram style to regfile Memory --- src/soc/regfile/regfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/regfile/regfile.py b/src/soc/regfile/regfile.py index e1274b4b..07cee2dd 100644 --- a/src/soc/regfile/regfile.py +++ b/src/soc/regfile/regfile.py @@ -199,7 +199,8 @@ class RegFileMem(Elaboratable): self.fwd_bus_mode = fwd_bus_mode self.synced = synced self.width, self.depth = width, depth - self.memory = Memory(width=width, depth=depth) + self.memory = Memory(width=width, depth=depth, + attrs={'syn_ramstyle': "block_ram"}) self._rdports = {} self._wrports = {} -- 2.30.2