build.res: use ConstraintError iff a constraint invariant is violated.
authorwhitequark <cz@m-labs.hk>
Tue, 4 Jun 2019 10:23:27 +0000 (10:23 +0000)
committerwhitequark <cz@m-labs.hk>
Tue, 4 Jun 2019 11:00:11 +0000 (11:00 +0000)
commitd57a875ad5275e6a8d031934b4bd766c72840544
tree3720e4097fa6b352537aca09c3e85faf9efac422
parent6957908441b0a9027683cad4e4eb3e0405799149
build.res: use ConstraintError iff a constraint invariant is violated.

In particular don't use it for type errors.
nmigen/build/__init__.py
nmigen/build/res.py
nmigen/test/test_build_res.py