From: whitequark Date: Wed, 24 Apr 2019 15:02:30 +0000 (+0000) Subject: build.dsl: style. NFC. X-Git-Tag: locally_working~258 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a982fbe37741e01664e1bf2f59aad991a3c89e10;p=nmigen.git build.dsl: style. NFC. --- diff --git a/nmigen/build/dsl.py b/nmigen/build/dsl.py index 7fcdb94..9205a1b 100644 --- a/nmigen/build/dsl.py +++ b/nmigen/build/dsl.py @@ -27,7 +27,7 @@ class DiffPairs: "and {!r} do not" .format(self.p, self.n)) - self.dir = self.p.dir + self.dir = dir def __repr__(self): return "(diffpairs {} {})".format(self.p, self.n) @@ -73,9 +73,10 @@ class Subsignal: class Resource(Subsignal): def __init__(self, name, number, *io, extras=()): - self.number = number super().__init__(name, *io, extras=extras) + self.number = number + def __repr__(self): return "(resource {} {} {} {})".format(self.name, self.number, " ".join(map(repr, self.io)),