projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e58d9ec
)
hdl.mem: use different naming for array signals.
author
whitequark
<whitequark@whitequark.org>
Fri, 21 Dec 2018 12:26:49 +0000
(12:26 +0000)
committer
whitequark
<whitequark@whitequark.org>
Fri, 21 Dec 2018 12:26:49 +0000
(12:26 +0000)
It looks like [] is confusing gtkwave somehow.
nmigen/hdl/mem.py
patch
|
blob
|
history
diff --git
a/nmigen/hdl/mem.py
b/nmigen/hdl/mem.py
index f60cdcea3ebd927238bbbb0faea57e0699daedd3..99ed6e1f78bae59e761d8999cff3bba9a4f7cb8e 100644
(file)
--- a/
nmigen/hdl/mem.py
+++ b/
nmigen/hdl/mem.py
@@
-35,7
+35,7
@@
class Memory:
# Array of signals for simulation.
self._array = Array()
for addr, data in enumerate(self.init + [0 for _ in range(self.depth - len(self.init))]):
- self._array.append(Signal(self.width, reset=data, name="{}
[{}]
".format(name, addr)))
+ self._array.append(Signal(self.width, reset=data, name="{}
({})
".format(name, addr)))
def read_port(self, domain="sync", synchronous=True, transparent=True):
if not synchronous and not transparent: