hdl.ast: normalize case values to two's complement, not signed binary.
authorwhitequark <whitequark@whitequark.org>
Sat, 12 Dec 2020 12:42:12 +0000 (12:42 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 12 Dec 2020 12:42:12 +0000 (12:42 +0000)
commit818c8bc46485ada0f31ad8ec23182ad01a6c7da1
treec4b92c5707cea894a1bbcfcdc31d5fa4f2c16a6e
parent4e7e0b33d542259872bb8bc3c85af896edad4ab0
hdl.ast: normalize case values to two's complement, not signed binary.

This was an especially insidious bug because the minus character is
valid in case values but has a completely different meaning (wildcard
rather than sign).

Fixes #559.
nmigen/hdl/ast.py
tests/test_hdl_ast.py