Check if output exists

This commit is contained in:
Miodrag Milanovic 2024-09-16 12:35:16 +02:00
parent c335bad6e9
commit c1aa0bde87

View File

@ -434,6 +434,7 @@ void NgUltraPacker::pack_dff_chains(void)
CellInfo* start_dff = &ci;
while(1) {
NetInfo *o = dff->getPort(id_O);
if (!o) break;
if (o->users.entries() != 1) break;
dff = (*o->users.begin()).cell;
if (dff->type == id_NX_DFF && (*o->users.begin()).port == id_I) {