From ae55a4b26250c919f702b8ef2ae3c5503b0ffe90 Mon Sep 17 00:00:00 2001 From: Staf Verhaegen Date: Sun, 14 Jul 2019 21:15:09 +0200 Subject: [PATCH] Pin: Add extra hierarchy level for name derivation --- nmigen/lib/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmigen/lib/io.py b/nmigen/lib/io.py index 42c2def..d87f809 100644 --- a/nmigen/lib/io.py +++ b/nmigen/lib/io.py @@ -97,9 +97,9 @@ class Pin(Record): cannot change direction more than once per cycle, so at most one output enable signal is present. """ - def __init__(self, width, dir, xdr=0, name=None): + def __init__(self, width, dir, xdr=0, name=None, src_loc_at=0): self.width = width self.dir = dir self.xdr = xdr - super().__init__(pin_layout(self.width, self.dir, self.xdr), name=name) + super().__init__(pin_layout(self.width, self.dir, self.xdr), name=name, src_loc_at=src_loc_at + 1) -- 2.30.2