mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-23 12:48:54 +00:00
Improved AstNode::asReal for large integers
This commit is contained in:
parent
11d2add1b9
commit
48dc6ab98d
2 changed files with 13 additions and 10 deletions
|
@ -533,7 +533,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
|
|||
if (children[0]->type == AST_REALVALUE) {
|
||||
RTLIL::Const constvalue = children[0]->realAsConst(width);
|
||||
log("Warning: converting real value %e to binary %s at %s:%d.\n",
|
||||
realvalue, log_signal(constvalue), filename.c_str(), linenum);
|
||||
children[0]->realvalue, log_signal(constvalue), filename.c_str(), linenum);
|
||||
delete children[0];
|
||||
children[0] = mkconst_bits(constvalue.bits, sign_hint);
|
||||
did_something = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue