projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2ddc0a
)
add convenience variables in TestMemory
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 9 Jun 2020 11:08:12 +0000
(12:08 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 9 Jun 2020 11:08:12 +0000
(12:08 +0100)
src/soc/experiment/testmem.py
patch
|
blob
|
history
diff --git
a/src/soc/experiment/testmem.py
b/src/soc/experiment/testmem.py
index d4a13557283e05784b06f16299c0c284bfc6b19d..72a24ab7dca4c949c3ea3db635b77fef7dd2c6f9 100644
(file)
--- a/
src/soc/experiment/testmem.py
+++ b/
src/soc/experiment/testmem.py
@@
-5,6
+5,8
@@
class TestMemory(Elaboratable):
def __init__(self, regwid, addrw):
self.ddepth = 1 # regwid //8
depth = (1<<addrw) // self.ddepth
+ self.depth = depth
+ self.regwid = regwid
self.mem = Memory(width=regwid, depth=depth,
init=range(0, depth*2, 2))
self.rdport = self.mem.read_port() # not now transparent=False)