diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-08-21 12:42:28 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-08-21 12:42:28 +0200 |
commit | 38addd4c67905e3d1514ba839f07d94058e42560 (patch) | |
tree | 2c4a13cdfe523a6b460df75fbd0f863d97817087 /frontends/verilog/verilog_frontend.cc | |
parent | a92a68ce521c1e86c0666b9add0c88d59154325e (diff) | |
download | yosys-38addd4c67905e3d1514ba839f07d94058e42560.tar.gz yosys-38addd4c67905e3d1514ba839f07d94058e42560.tar.bz2 yosys-38addd4c67905e3d1514ba839f07d94058e42560.zip |
Added support for global tasks and functions
Diffstat (limited to 'frontends/verilog/verilog_frontend.cc')
-rw-r--r-- | frontends/verilog/verilog_frontend.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/verilog/verilog_frontend.cc b/frontends/verilog/verilog_frontend.cc index 4466e1cb6..195789086 100644 --- a/frontends/verilog/verilog_frontend.cc +++ b/frontends/verilog/verilog_frontend.cc @@ -285,10 +285,10 @@ struct VerilogFrontend : public Frontend { frontend_verilog_yylex_destroy(); for (auto &child : current_ast->children) { - log_assert(child->type == AST::AST_MODULE); - for (auto &attr : attributes) - if (child->attributes.count(attr) == 0) - child->attributes[attr] = AST::AstNode::mkconst_int(1, false); + if (child->type == AST::AST_MODULE) + for (auto &attr : attributes) + if (child->attributes.count(attr) == 0) + child->attributes[attr] = AST::AstNode::mkconst_int(1, false); } AST::process(design, current_ast, flag_dump_ast1, flag_dump_ast2, flag_dump_vlog, flag_nolatches, flag_nomem2reg, flag_mem2reg, flag_lib, flag_noopt, flag_icells, flag_ignore_redef, flag_defer, default_nettype_wire); |