projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a820a38
)
lib.io: use keyword-only arguments in Pin().
author
whitequark
<cz@m-labs.hk>
Wed, 16 Oct 2019 19:50:04 +0000
(19:50 +0000)
committer
whitequark
<cz@m-labs.hk>
Wed, 16 Oct 2019 19:50:04 +0000
(19:50 +0000)
nmigen/build/res.py
patch
|
blob
|
history
nmigen/lib/io.py
patch
|
blob
|
history
diff --git
a/nmigen/build/res.py
b/nmigen/build/res.py
index bdd3f0aeb68af599f0343ea4ce328338bcb0a0a0..afcf41cc562c85f92a0a5612b10697fdc67eb8fd 100644
(file)
--- a/
nmigen/build/res.py
+++ b/
nmigen/build/res.py
@@
-134,7
+134,7
@@
class ResourceManager:
if dir == "-":
pin = None
else:
- pin = Pin(len(phys), dir, xdr, name=name)
+ pin = Pin(len(phys), dir, xdr
=xdr
, name=name)
for phys_name in phys_names:
if phys_name in self._phys_reqd:
diff --git
a/nmigen/lib/io.py
b/nmigen/lib/io.py
index d2969b0522a9644fcea4b1432bdd433afc5bdb40..7c950ae7d3c8f2aea3d3f9b21b0391e543c707fa 100644
(file)
--- a/
nmigen/lib/io.py
+++ b/
nmigen/lib/io.py
@@
-97,7
+97,7
@@
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, src_loc_at=0):
+ def __init__(self, width, dir,
*,
xdr=0, name=None, src_loc_at=0):
self.width = width
self.dir = dir
self.xdr = xdr