hdl.ast: cast Mux() selector to bool if it is not a 1-bit value.
authorwhitequark <whitequark@whitequark.org>
Mon, 23 Sep 2019 13:39:31 +0000 (13:39 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 23 Sep 2019 13:39:31 +0000 (13:39 +0000)
commitb2273522584a78830443e40e0239cbb88099fc7a
treed22d048b701b6daefee279c42e33511d9a911b39
parent7777b7b98c5f075d5dfa5770f755a7c58925ff47
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