sim._pyrtl: fix miscompilation of -(Const(0b11, 2).as_signed()).
authorwhitequark <whitequark@whitequark.org>
Wed, 26 Aug 2020 04:15:26 +0000 (04:15 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 26 Aug 2020 04:15:54 +0000 (04:15 +0000)
commitcb81618c28d9cbcf1713bbcf632c740a12b30d45
treebef55b6d393a0c0b8431258fb081774896a44ddd
parent0802f943ba5c0919b07659c3cad4da14c32f3264
sim._pyrtl: fix miscompilation of -(Const(0b11, 2).as_signed()).

Fixes #473.
nmigen/sim/_pyrtl.py
nmigen/test/test_sim.py