hdl.dsl: warn on suspicious statements like `m.If(~True):`.
authorwhitequark <cz@m-labs.hk>
Sat, 3 Aug 2019 14:00:29 +0000 (14:00 +0000)
committerwhitequark <cz@m-labs.hk>
Sat, 3 Aug 2019 14:00:29 +0000 (14:00 +0000)
commit019e01afe6c1b3b099ea79d934f82cee5dad057b
tree92a58049a62de4e11c13bf9749fe8b2105a13783
parentf2c93a626e84ea5255a820a09aa2a9b619ccc58e
hdl.dsl: warn on suspicious statements like `m.If(~True):`.

This pattern usually produces an extremely hard to notice bug that
will usually break a design when it is triggered, but will also be
hidden unless the pathological value of a boolean switch is used.

Fixes #159.
nmigen/hdl/dsl.py
nmigen/test/test_hdl_dsl.py