mirror of https://github.com/YosysHQ/yosys.git
Fixed localparam signdness, fixes #127
This commit is contained in:
parent
b6d08f39ba
commit
ef4207d5ad
|
@ -794,7 +794,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
|
||||||
RTLIL::SigSpec sig(children[0]->bits);
|
RTLIL::SigSpec sig(children[0]->bits);
|
||||||
sig.extend_u0(width, children[0]->is_signed);
|
sig.extend_u0(width, children[0]->is_signed);
|
||||||
AstNode *old_child_0 = children[0];
|
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;
|
delete old_child_0;
|
||||||
}
|
}
|
||||||
children[0]->is_signed = is_signed;
|
children[0]->is_signed = is_signed;
|
||||||
|
|
Loading…
Reference in New Issue