projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b773220
)
Revert "Fix sign extension when sign is 1'bx"
author
Eddie Hung
<eddie@fpgeh.com>
Thu, 20 Jun 2019 19:40:05 +0000
(12:40 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Thu, 20 Jun 2019 19:40:05 +0000
(12:40 -0700)
This reverts commit
0221f3e1c5b427678c5679027ee47ec7c0b8321d
.
kernel/rtlil.cc
patch
|
blob
|
history
diff --git
a/kernel/rtlil.cc
b/kernel/rtlil.cc
index 95a24c93f90b4ffd46addbe4e4511ffdeefca1b8..a09f4a0d1cbfa81cb2edbf69a06f605684b95a63 100644
(file)
--- a/
kernel/rtlil.cc
+++ b/
kernel/rtlil.cc
@@
-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);