summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ast/genrtlil.cc4
-rw-r--r--frontends/ilang/parser.y2
2 files changed, 3 insertions, 3 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc
index 861df3fd..dba301f4 100644
--- a/frontends/ast/genrtlil.cc
+++ b/frontends/ast/genrtlil.cc
@@ -1297,9 +1297,9 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
if (child->str.size() == 0) {
char buf[100];
snprintf(buf, 100, "$%d", ++port_counter);
- cell->connections()[buf] = sig;
+ cell->set(buf, sig);
} else {
- cell->connections()[child->str] = sig;
+ cell->set(child->str, sig);
}
continue;
}
diff --git a/frontends/ilang/parser.y b/frontends/ilang/parser.y
index a7ce4bc7..952dd6a3 100644
--- a/frontends/ilang/parser.y
+++ b/frontends/ilang/parser.y
@@ -204,7 +204,7 @@ cell_body:
cell_body TOK_CONNECT TOK_ID sigspec EOL {
if (current_cell->connections().count($3) != 0)
rtlil_frontend_ilang_yyerror(stringf("ilang error: redefinition of cell port %s.", $3).c_str());
- current_cell->connections()[$3] = *$4;
+ current_cell->set($3, *$4);
delete $4;
free($3);
} |