Revert "Fix sign extension when sign is 1'bx"

This reverts commit 0221f3e1c5.
This commit is contained in:
Eddie Hung 2019-06-20 12:40:05 -07:00
parent b77322034c
commit e33cbb0dde
1 changed files with 1 additions and 1 deletions

View File

@ -3437,7 +3437,7 @@ void RTLIL::SigSpec::extend_u0(int width, bool is_signed)
if (width_ < width) {
RTLIL::SigBit padding = width_ > 0 ? (*this)[width_ - 1] : RTLIL::State::Sx;
if (padding != RTLIL::State::Sx && !is_signed)
if (!is_signed)
padding = RTLIL::State::S0;
while (width_ < width)
append(padding);