projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b963449
)
Pin: Add extra hierarchy level for name derivation
author
Staf Verhaegen
<staf@stafverhaegen.be>
Sun, 14 Jul 2019 19:15:09 +0000
(21:15 +0200)
committer
whitequark
<whitequark@whitequark.org>
Sun, 14 Jul 2019 19:30:12 +0000
(19:30 +0000)
nmigen/lib/io.py
patch
|
blob
|
history
diff --git
a/nmigen/lib/io.py
b/nmigen/lib/io.py
index 42c2def67b2b42ec907fe5ba55455f6c3215af6c..d87f809a5959507215ee0d92dce90c98dacebdb3 100644
(file)
--- 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
)