build.dsl: fix precondition check in Pins.
authorwhitequark <whitequark@whitequark.org>
Thu, 6 Jun 2019 20:40:49 +0000 (20:40 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 6 Jun 2019 20:40:49 +0000 (20:40 +0000)
nmigen/build/dsl.py

index 6a31158c08d47d05403bc02fb8f51aaa766ddc05..8179323388e576e46a8e7126b55a36793118bffb 100644 (file)
@@ -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))