projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f26e612
)
build.dsl: fix precondition check in Pins.
author
whitequark
<whitequark@whitequark.org>
Thu, 6 Jun 2019 20:40:49 +0000
(20:40 +0000)
committer
whitequark
<whitequark@whitequark.org>
Thu, 6 Jun 2019 20:40:49 +0000
(20:40 +0000)
nmigen/build/dsl.py
patch
|
blob
|
history
diff --git
a/nmigen/build/dsl.py
b/nmigen/build/dsl.py
index 6a31158c08d47d05403bc02fb8f51aaa766ddc05..8179323388e576e46a8e7126b55a36793118bffb 100644
(file)
--- a/
nmigen/build/dsl.py
+++ b/
nmigen/build/dsl.py
@@
-18,7
+18,7
@@
class Pins:
.format(conn))
names = ["{}_{}:{}".format(conn_name, conn_number, name) for name in names]
- if dir not in ("i", "o", "io"):
+ if dir not in ("i", "o", "io"
, "oe"
):
raise TypeError("Direction must be one of \"i\", \"o\", \"oe\", or \"io\", not {!r}"
.format(dir))