Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/nmigen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dd5bd1c88d5d
Choose a base ref
...
head repository: m-labs/nmigen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a982fbe37741
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 24, 2019

  1. build.dsl: style. NFC.

    whitequark committed Apr 24, 2019
    Copy the full SHA
    a982fbe View commit details
Showing with 3 additions and 2 deletions.
  1. +3 −2 nmigen/build/dsl.py
5 changes: 3 additions & 2 deletions nmigen/build/dsl.py
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ def __init__(self, p, n, dir="io"):
"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 @@ def __repr__(self):

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)),