summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-08-14 16:13:42 +0200
committerClifford Wolf <clifford@clifford.at>2014-08-14 16:22:52 +0200
commit1bf7a18fec76cf46a5b8710a75371e23b68d147d (patch)
treeea445edda6c4bc0fa670effce4ef1b0eaf906258 /frontends
parent746aac540b815099c6a63077010555369d7fdd5a (diff)
Added module->ports
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ast/ast.cc1
-rw-r--r--frontends/ilang/parser.y1
2 files changed, 2 insertions, 0 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc
index f18124e2..9f17f3bf 100644
--- a/frontends/ast/ast.cc
+++ b/frontends/ast/ast.cc
@@ -919,6 +919,7 @@ static AstModule* process_module(AstNode *ast, bool defer)
current_module->noopt = flag_noopt;
current_module->icells = flag_icells;
current_module->autowire = flag_autowire;
+ current_module->fixup_ports();
return current_module;
}
diff --git a/frontends/ilang/parser.y b/frontends/ilang/parser.y
index f696140e..e1ef39a5 100644
--- a/frontends/ilang/parser.y
+++ b/frontends/ilang/parser.y
@@ -101,6 +101,7 @@ module:
} module_body TOK_END {
if (attrbuf.size() != 0)
rtlil_frontend_ilang_yyerror("dangling attribute");
+ current_module->fixup_ports();
} EOL;
module_body: