mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 02:45:52 +00:00
Manual fixes for new cell connections API
This commit is contained in:
parent
b7dda72302
commit
f8fdc47d33
36 changed files with 169 additions and 123 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
} |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue