diff options
author | Jim Lawson <ucbjrl@berkeley.edu> | 2019-05-21 12:47:55 -0700 |
---|---|---|
committer | Jim Lawson <ucbjrl@berkeley.edu> | 2019-05-21 12:47:55 -0700 |
commit | 489c555b41330ed9b1d69afdd8f44ef1e9a9be59 (patch) | |
tree | 64bdc5903bf099d59aa9ba9dacff03d8b7a9eda2 /frontends/ast/ast.cc | |
parent | 509f729e55458eda0ed7869ad269ec52d1956043 (diff) | |
parent | c907899422884d959632ed42c6589a0720b681e4 (diff) | |
download | yosys-489c555b41330ed9b1d69afdd8f44ef1e9a9be59.tar.gz yosys-489c555b41330ed9b1d69afdd8f44ef1e9a9be59.tar.bz2 yosys-489c555b41330ed9b1d69afdd8f44ef1e9a9be59.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r-- | frontends/ast/ast.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index 9f88b08c1..5623541b2 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -951,6 +951,9 @@ static AstModule* process_module(AstNode *ast, bool defer, AstNode *original_ast continue; if (child->type == AST_PARAMETER || child->type == AST_LOCALPARAM) continue; + if (child->type == AST_CELL && child->children.size() > 0 && child->children[0]->type == AST_CELLTYPE && + (child->children[0]->str == "$specify2" || child->children[0]->str == "$specify3" || child->children[0]->str == "$specrule")) + continue; blackbox_module = false; break; } @@ -1035,6 +1038,9 @@ static AstModule* process_module(AstNode *ast, bool defer, AstNode *original_ast child->delete_children(); child->children.push_back(AstNode::mkconst_int(0, false, 0)); new_children.push_back(child); + } else if (child->type == AST_CELL && child->children.size() > 0 && child->children[0]->type == AST_CELLTYPE && + (child->children[0]->str == "$specify2" || child->children[0]->str == "$specify3" || child->children[0]->str == "$specrule")) { + new_children.push_back(child); } else { delete child; } |