mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Fixed handling of cell ports that aren't wires
This commit is contained in:
parent
3dd7f42e2b
commit
2877d5e504
1 changed files with 3 additions and 0 deletions
|
@ -90,6 +90,9 @@ struct OptRmportsPass : public Pass {
|
|||
for(int i=0; i<conn.second.size(); i++)
|
||||
{
|
||||
auto sig = conn.second[i].wire;
|
||||
if(sig == NULL)
|
||||
continue;
|
||||
|
||||
//log(" sig %s\n", sig->name.c_str());
|
||||
if( (sig->port_input || sig->port_output) && (used_ports.find(sig->name) == used_ports.end()) )
|
||||
used_ports.emplace(sig->name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue