lib.io: use keyword-only arguments in Pin().
This commit is contained in:
parent
045f5e19a2
commit
fb90043460
|
@ -134,7 +134,7 @@ class ResourceManager:
|
||||||
if dir == "-":
|
if dir == "-":
|
||||||
pin = None
|
pin = None
|
||||||
else:
|
else:
|
||||||
pin = Pin(len(phys), dir, xdr, name=name)
|
pin = Pin(len(phys), dir, xdr=xdr, name=name)
|
||||||
|
|
||||||
for phys_name in phys_names:
|
for phys_name in phys_names:
|
||||||
if phys_name in self._phys_reqd:
|
if phys_name in self._phys_reqd:
|
||||||
|
|
|
@ -97,7 +97,7 @@ class Pin(Record):
|
||||||
cannot change direction more than once per cycle, so at most one output enable signal
|
cannot change direction more than once per cycle, so at most one output enable signal
|
||||||
is present.
|
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.width = width
|
||||||
self.dir = dir
|
self.dir = dir
|
||||||
self.xdr = xdr
|
self.xdr = xdr
|
||||||
|
|
Loading…
Reference in a new issue