diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-07-04 14:12:33 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-07-04 14:12:33 +0200 |
commit | 56432a920f9c2189ead2f724f18cde20aad7bf99 (patch) | |
tree | 37c83554247ef98dfba58409993b8f1d2379aa09 /frontends/ast/ast.cc | |
parent | 3b294b391202bdac25c822cc06d7572249b38949 (diff) | |
download | yosys-56432a920f9c2189ead2f724f18cde20aad7bf99.tar.gz yosys-56432a920f9c2189ead2f724f18cde20aad7bf99.tar.bz2 yosys-56432a920f9c2189ead2f724f18cde20aad7bf99.zip |
Added defparam support to Verilog/AST frontend
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r-- | frontends/ast/ast.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index a14297b62..f7a39cf19 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -72,6 +72,7 @@ std::string AST::type2str(AstNodeType type) X(AST_AUTOWIRE) X(AST_PARAMETER) X(AST_LOCALPARAM) + X(AST_DEFPARAM) X(AST_PARASET) X(AST_ARGUMENT) X(AST_RANGE) @@ -327,7 +328,7 @@ void AstNode::dumpVlog(FILE *f, std::string indent) fprintf(f, ");\n"); for (auto child : children) - if (child->type == AST_PARAMETER || child->type == AST_LOCALPARAM) + if (child->type == AST_PARAMETER || child->type == AST_LOCALPARAM || child->type == AST_DEFPARAM) child->dumpVlog(f, indent + " "); else rem_children1.push_back(child); |