From: whitequark Date: Wed, 16 Oct 2019 19:50:04 +0000 (+0000) Subject: lib.io: use keyword-only arguments in Pin(). X-Git-Tag: v0.1~12 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb90043460259046d1981f802c86d37ba6c78b54;p=nmigen.git lib.io: use keyword-only arguments in Pin(). --- diff --git a/nmigen/build/res.py b/nmigen/build/res.py index bdd3f0a..afcf41c 100644 --- 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 d2969b0..7c950ae 100644 --- 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