From: whitequark Date: Fri, 21 Dec 2018 12:26:49 +0000 (+0000) Subject: hdl.mem: use different naming for array signals. X-Git-Tag: working~162 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af7db882c0f237f0696245a55af2ad2fffe7ec98;p=nmigen.git hdl.mem: use different naming for array signals. It looks like [] is confusing gtkwave somehow. --- diff --git a/nmigen/hdl/mem.py b/nmigen/hdl/mem.py index f60cdce..99ed6e1 100644 --- 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: