Fix in &nf for the case when PO can be driven by an inverter.

This commit is contained in:
Alan Mishchenko 2016-01-05 19:25:46 -08:00
parent 30d09e2cbe
commit 7bf3f5e186
1 changed files with 5 additions and 0 deletions

View File

@ -2041,10 +2041,15 @@ void Nf_ManFixPoDrivers( Nf_Man_t * p )
// skip if arrival time exceeds the required time
if ( pMc->D + p->InvDelayI > p->pPars->MapDelay )
continue;
// update references
Nf_MatchDeref_rec( p, iDriver, Gia_ObjFaninC0(pObj), pM );
Nf_ObjMapRefInc( p, iDriver, !Gia_ObjFaninC0(pObj) );
// add inverter
*pM = *pMc;
pM->D += p->InvDelayI;
pM->fCompl = 1;
pM->fBest = 1;
pMc->fBest = 1;
Count++;
}
//printf( "Fixed %d PO drivers.\n", Count );