From: Clifford Wolf Date: Sun, 30 Sep 2018 16:43:35 +0000 (+0200) Subject: Fix handling of $past 2nd argument in read_verilog X-Git-Tag: yosys-0.9~116^2~25 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d88d851d8d76440f0768e550edb56e513193714;p=yosys.git Fix handling of $past 2nd argument in read_verilog Signed-off-by: Clifford Wolf --- 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());