From: Luke Kenneth Casson Leighton Date: Sun, 28 Jun 2020 19:19:14 +0000 (+0100) Subject: add readonly option to TestMemory X-Git-Tag: div_pipeline~217 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d69e91e8baa66366a9f36093b738a25dc126659;p=soc.git add readonly option to TestMemory --- diff --git a/src/soc/experiment/testmem.py b/src/soc/experiment/testmem.py index 02000d89..bf7c7e3b 100644 --- a/src/soc/experiment/testmem.py +++ b/src/soc/experiment/testmem.py @@ -2,7 +2,9 @@ from nmigen import Module, Elaboratable, Memory class TestMemory(Elaboratable): - def __init__(self, regwid, addrw, granularity=None, init=True): + def __init__(self, regwid, addrw, granularity=None, init=True, + readonly=False): + self.readonly = readonly self.ddepth = 1 # regwid //8 depth = (1<