mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-02 10:47:31 +02:00
Version abc80314
This commit is contained in:
+1
-1
@@ -238,7 +238,7 @@ void If_CutRotatePins( If_Man_t * p, If_Cut_t * pCut )
|
||||
float PinDelays[32];
|
||||
// int PinPerm[32];
|
||||
int i;
|
||||
assert( p->pPars->pLutLib && p->pPars->pLutLib->fVarPinDelays && p->pPars->fTruth );
|
||||
// assert( p->pPars->pLutLib && p->pPars->pLutLib->fVarPinDelays && p->pPars->fTruth );
|
||||
If_CutForEachLeaf( p, pCut, pLeaf, i )
|
||||
PinDelays[i] = If_ObjCutBest(pLeaf)->Delay;
|
||||
If_CutTruthPermute( p->puTemp[0], If_CutTruth(pCut), If_CutLeaveNum(pCut), PinDelays, If_CutLeaves(pCut) );
|
||||
|
||||
@@ -146,16 +146,18 @@ void If_CutTruthPermute( unsigned * pOut, unsigned * pIn, int nVars, float * pDe
|
||||
for ( i = 0; i < nVars - 1; i++ )
|
||||
{
|
||||
if ( pDelays[i] >= pDelays[i+1] )
|
||||
// if ( pDelays[i] <= pDelays[i+1] )
|
||||
continue;
|
||||
tTemp = pDelays[i]; pDelays[i] = pDelays[i+1]; pDelays[i+1] = tTemp;
|
||||
Temp = pVars[i]; pVars[i] = pVars[i+1]; pVars[i+1] = Temp;
|
||||
if ( pOut && pIn )
|
||||
If_TruthSwapAdjacentVars( pOut, pIn, nVars, i );
|
||||
pTemp = pOut; pOut = pIn; pIn = pTemp;
|
||||
fChange = 1;
|
||||
Counter++;
|
||||
}
|
||||
}
|
||||
if ( Counter & 1 )
|
||||
if ( pOut && pIn && (Counter & 1) )
|
||||
If_TruthCopy( pOut, pIn, nVars );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user