projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6d08f3
)
Fixed localparam signdness, fixes #127
author
Clifford Wolf
<clifford@clifford.at>
Fri, 18 Mar 2016 11:15:00 +0000
(12:15 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Fri, 18 Mar 2016 11:15:00 +0000
(12:15 +0100)
frontends/ast/simplify.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/simplify.cc
b/frontends/ast/simplify.cc
index 5a9a8b9977504c0db73992df082cd32e650ad397..ed6eb85994ca8160d4afde5d89b860c5c0a88500 100644
(file)
--- a/
frontends/ast/simplify.cc
+++ b/
frontends/ast/simplify.cc
@@
-794,7
+794,7
@@
bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
RTLIL::SigSpec sig(children[0]->bits);
sig.extend_u0(width, children[0]->is_signed);
AstNode *old_child_0 = children[0];
- children[0] = mkconst_bits(sig.as_const().bits,
children[0]->
is_signed);
+ children[0] = mkconst_bits(sig.as_const().bits, is_signed);
delete old_child_0;
}
children[0]->is_signed = is_signed;