diff options
author | whitequark <whitequark@whitequark.org> | 2021-03-14 15:02:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 15:02:16 +0000 |
commit | e178d0367a315213560514f827072595adfd4b4a (patch) | |
tree | 8f5b6ccaba28f979992946f0efda2ffdd49d74f0 /frontends/ast/simplify.cc | |
parent | 396ad17e06a7b5fa912180540206a6560b54101f (diff) | |
parent | 640b9927fae23d3127cc9ecb56ccbc8a2c66afbe (diff) | |
download | yosys-e178d0367a315213560514f827072595adfd4b4a.tar.gz yosys-e178d0367a315213560514f827072595adfd4b4a.tar.bz2 yosys-e178d0367a315213560514f827072595adfd4b4a.zip |
Merge pull request #2658 from zachjs/parameters-across-files
sv: allow globals in one file to depend on globals in another
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r-- | frontends/ast/simplify.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index e0ac58f20..d68b13b2a 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -192,6 +192,7 @@ void AstNode::annotateTypedEnums(AstNode *template_node) log_assert(current_scope.count(enum_type) == 1); AstNode *enum_node = current_scope.at(enum_type); log_assert(enum_node->type == AST_ENUM); + while (enum_node->simplify(true, false, false, 1, -1, false, true)) { } //get width from 1st enum item: log_assert(enum_node->children.size() >= 1); AstNode *enum_item0 = enum_node->children[0]; |