Skip to content

Commit

Permalink
opt_demorgan: skip zero width cells
Browse files Browse the repository at this point in the history
  • Loading branch information
georgerennie committed Sep 24, 2024
1 parent 8e1e2b9 commit 58af706
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions passes/opt/opt_demorgan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ void demorgan_worker(
return;

auto insig = sigmap(cell->getPort(ID::A));

if (GetSize(insig) < 1)
return;

log("Inspecting %s cell %s (%d inputs)\n", log_id(cell->type), log_id(cell->name), GetSize(insig));
int num_inverted = 0;
for(int i=0; i<GetSize(insig); i++)
Expand Down

0 comments on commit 58af706

Please sign in to comment.