diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-09-22 20:52:02 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-09-22 20:52:02 +0200 |
commit | 6176f4d08108fad0f4ac6fa81d2d56d48d951bef (patch) | |
tree | ad8fee2acc506fd358d5cdd832c5fbf91184bf7a /frontends/ast/simplify.cc | |
parent | 4b8200eb4943dcbdb2bede8695ca77cd7d6fde3a (diff) | |
download | yosys-6176f4d08108fad0f4ac6fa81d2d56d48d951bef.tar.gz yosys-6176f4d08108fad0f4ac6fa81d2d56d48d951bef.tar.bz2 yosys-6176f4d08108fad0f4ac6fa81d2d56d48d951bef.zip |
Fixed multi-level prefix resolving
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r-- | frontends/ast/simplify.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 6dc9aed31..77d4447f5 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -651,6 +651,8 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, // dumpAst(NULL, "> "); log_error("Index in generate block prefix syntax at %s:%d is not constant!\n", filename.c_str(), linenum); } + if (children[1]->type == AST_PREFIX) + children[1]->simplify(const_fold, at_zero, in_lvalue, stage, width_hint, sign_hint, in_param); log_assert(children[1]->type == AST_IDENTIFIER); newNode = children[1]->clone(); const char *second_part = children[1]->str.c_str(); |