Skip to content

Commit

Permalink
Revert "Improve EDIF lib_cell_ports scan"
Browse files Browse the repository at this point in the history
This reverts commit cff3195.
  • Loading branch information
wsipak committed Sep 27, 2023
1 parent c4762d9 commit 7afc568
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions backends/edif/edif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,6 @@ struct EdifBackend : public Backend {

for (auto module : design->modules())
{
lib_cell_ports[module->name];

for (auto port : module->ports)
{
Wire *wire = module->wire(port);
lib_cell_ports[module->name][port] = std::max(lib_cell_ports[module->name][port], GetSize(wire));
}

if (module->get_blackbox_attribute())
continue;

Expand All @@ -216,7 +208,7 @@ struct EdifBackend : public Backend {
if (design->module(cell->type) == nullptr || design->module(cell->type)->get_blackbox_attribute()) {
lib_cell_ports[cell->type];
for (auto p : cell->connections())
lib_cell_ports[cell->type][p.first] = std::max(lib_cell_ports[cell->type][p.first], GetSize(p.second));
lib_cell_ports[cell->type][p.first] = GetSize(p.second);
}
}
}
Expand Down

0 comments on commit 7afc568

Please sign in to comment.