opt_demorgan: skip zero width cells

This commit is contained in:
George Rennie 2024-09-24 14:20:40 +01:00
parent 8e1e2b9a39
commit 58af70624f
1 changed files with 4 additions and 0 deletions

View File

@ -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++)