aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-09-30 18:43:35 +0200
committerClifford Wolf <clifford@clifford.at>2018-09-30 18:43:35 +0200
commit9f9fe94b3522d465d98fa491c5992b14d268f09d (patch)
tree3b4da0465774b9e078f83a429d3ec9e9dc826f46 /frontends/ast
parent031824e38c737db1e47e1cde3865fd9cfd4f2a07 (diff)
downloadyosys-9f9fe94b3522d465d98fa491c5992b14d268f09d.tar.gz
yosys-9f9fe94b3522d465d98fa491c5992b14d268f09d.tar.bz2
yosys-9f9fe94b3522d465d98fa491c5992b14d268f09d.zip
Fix handling of $past 2nd argument in read_verilog
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontends/ast')
-rw-r--r--frontends/ast/simplify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 04c429f7f..aa3b982d8 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -1781,7 +1781,7 @@ skip_dynamic_range_lvalue_expansion:;
if (GetSize(children) == 2)
{
AstNode *buf = children[1]->clone();
- while (buf->simplify(true, false, false, stage, width_hint, sign_hint, false)) { }
+ while (buf->simplify(true, false, false, stage, -1, false, false)) { }
if (buf->type != AST_CONSTANT)
log_file_error(filename, linenum, "Failed to evaluate system function `%s' with non-constant value.\n", str.c_str());