aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-09-30 18:43:35 +0200
committerJim Lawson <ucbjrl@berkeley.edu>2018-10-08 11:38:10 -0700
commit7d88d851d8d76440f0768e550edb56e513193714 (patch)
tree8cf91fe789d3f1aec1eac277e594f8e7998b4e4a
parentb3de38d3572f0b919c4313cabf2f5321a6851d61 (diff)
downloadyosys-7d88d851d8d76440f0768e550edb56e513193714.tar.gz
yosys-7d88d851d8d76440f0768e550edb56e513193714.tar.bz2
yosys-7d88d851d8d76440f0768e550edb56e513193714.zip
Fix handling of $past 2nd argument in read_verilog
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-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());