hdl.ast: cast Mux() selector to bool if it is not a 1-bit value.
authorwhitequark <cz@m-labs.hk>
Mon, 23 Sep 2019 13:39:31 +0000 (13:39 +0000)
committerwhitequark <cz@m-labs.hk>
Mon, 23 Sep 2019 13:39:31 +0000 (13:39 +0000)
commite27c162b013ca4723bd61a22250ba01cd3637aca
treed22d048b701b6daefee279c42e33511d9a911b39
parentddd61e74cb395eb2d2f13879d9f9bb65dd2a306d
hdl.ast: cast Mux() selector to bool if it is not a 1-bit value.

Fixes #232.
nmigen/hdl/ast.py
nmigen/test/test_hdl_ast.py