back.rtlil: extend shorter operand of a binop when matching sign.
authorwhitequark <cz@m-labs.hk>
Mon, 18 Nov 2019 10:39:55 +0000 (10:39 +0000)
committerwhitequark <cz@m-labs.hk>
Mon, 18 Nov 2019 10:39:55 +0000 (10:39 +0000)
commitdc6483f43788229cd7ea6952a425b92e2a0e21c6
treee64d9a19e220e5ae0f7209e0a2c59447e27f495d
parent1380ef405ed4ea0b6d246fd6817e75958bc42189
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