mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 19:51:23 +00:00
Added RTLIL::Cell::has(portname)
This commit is contained in:
parent
a84cb04935
commit
97a59851a6
12 changed files with 33 additions and 27 deletions
|
@ -202,7 +202,7 @@ cell_body:
|
|||
delete $5;
|
||||
} |
|
||||
cell_body TOK_CONNECT TOK_ID sigspec EOL {
|
||||
if (current_cell->connections().count($3) != 0)
|
||||
if (current_cell->has($3))
|
||||
rtlil_frontend_ilang_yyerror(stringf("ilang error: redefinition of cell port %s.", $3).c_str());
|
||||
current_cell->set($3, *$4);
|
||||
delete $4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue