From: whitequark Date: Thu, 6 Jun 2019 20:40:49 +0000 (+0000) Subject: build.dsl: fix precondition check in Pins. X-Git-Tag: locally_working~177 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12e8fe484d204f637e5ee38286346a84dec83b1f;p=nmigen.git build.dsl: fix precondition check in Pins. --- diff --git a/nmigen/build/dsl.py b/nmigen/build/dsl.py index 6a31158..8179323 100644 --- 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))