build.res: always return a Pin record.
authorwhitequark <whitequark@whitequark.org>
Sat, 1 Jun 2019 16:41:30 +0000 (16:41 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 1 Jun 2019 16:41:30 +0000 (16:41 +0000)
commit53ddff9f338506533085bf3e7e8826fe5935bed0
treea5d5fc75baa481a085ff8749d51f04ae23b94469
parent8c1b5a26b34ee36e41c7fc8a21eac2d7ef5f5964
build.res: always return a Pin record.

In the simple cases, a Pin record consisting of exactly one field
is equivalent in every way to this single field. In the more complex
case however, it can be used as a record, making the code more robust
such that it works with both bidirectional and unidirectional pins.
nmigen/build/res.py
nmigen/test/test_build_res.py