projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
204572d
)
Fixed handling of undef values in POS cells in ConstEval
author
Clifford Wolf
<clifford@clifford.at>
Wed, 6 Nov 2013 17:45:31 +0000
(18:45 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Wed, 6 Nov 2013 17:45:31 +0000
(18:45 +0100)
kernel/calc.cc
patch
|
blob
|
history
diff --git
a/kernel/calc.cc
b/kernel/calc.cc
index efb09c3987706e975f1c75638117d2caec6cf855..f2cbd6f42406b73130f4d0daca37c085722da34d 100644
(file)
--- a/
kernel/calc.cc
+++ b/
kernel/calc.cc
@@
-418,9
+418,7
@@
RTLIL::Const RTLIL::const_pos(const RTLIL::Const &arg1, const RTLIL::Const&, boo
RTLIL::Const arg1_ext = arg1;
while (int(arg1_ext.bits.size()) < result_len)
arg1_ext.bits.push_back(signed1 && arg1_ext.bits.size() ? arg1_ext.bits.back() : RTLIL::State::S0);
-
- RTLIL::Const zero(RTLIL::State::S0, 1);
- return RTLIL::const_add(zero, arg1_ext, false, signed1, result_len);
+ return arg1_ext;
}
RTLIL::Const RTLIL::const_neg(const RTLIL::Const &arg1, const RTLIL::Const&, bool signed1, bool, int result_len)