back.rtlil: extend shorter operand of a binop when matching sign.
authorwhitequark <whitequark@whitequark.org>
Mon, 18 Nov 2019 10:39:55 +0000 (10:39 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 18 Nov 2019 10:39:55 +0000 (10:39 +0000)
commit7c322e562a8e804834688ad7b594d40113ebd7c8
treee64d9a19e220e5ae0f7209e0a2c59447e27f495d
parent834fe3c700e420586b7c299bd42d2417966fa1c2
back.rtlil: extend shorter operand of a binop when matching sign.

This is necessary because converting a large unsigned value to
a signed value of the same width may change its sign.

Fixes #271.
nmigen/back/rtlil.py