From d82be1fd05d0a8300f2cbc8fa532647f6e8b40d5 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 3 Apr 2014 14:40:43 -0700 Subject: Improvements to technology mapping. --- src/base/abci/abcIf.c | 2 +- src/map/if/ifMap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/abci/abcIf.c b/src/base/abci/abcIf.c index e53e06a7..feed5579 100644 --- a/src/base/abci/abcIf.c +++ b/src/base/abci/abcIf.c @@ -501,7 +501,7 @@ Abc_Obj_t * Abc_NodeFromIf_rec( Abc_Ntk_t * pNtkNew, If_Man_t * pIfMan, If_Obj_t if ( pIfMan->pPars->fUseTtPerm ) for ( i = 0; i < (int)pCutBest->nLeaves; i++ ) if ( If_CutLeafBit(pCutBest, i) ) - Abc_TtFlip( pTruth, Abc_TtWordNum(pCutBest->nLimit), i ); + Abc_TtFlip( pTruth, Abc_TtWordNum(pCutBest->nLeaves), i ); pNodeNew->pData = Kit_TruthToHop( (Hop_Man_t *)pNtkNew->pManFunc, (unsigned *)pTruth, If_CutLeaveNum(pCutBest), vCover ); } // complement the node if the cut was complemented diff --git a/src/map/if/ifMap.c b/src/map/if/ifMap.c index b3bc4b70..70d3a854 100644 --- a/src/map/if/ifMap.c +++ b/src/map/if/ifMap.c @@ -239,7 +239,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep if ( p->pPars->fUseDsd ) pCut->fUseless = If_DsdManCheckDec( p->pIfDsdMan, pCut->iCutDsd ); else - pCut->fUseless = !p->pPars->pFuncCell( p, If_CutTruth(p, pCut), pCut->nLimit, pCut->nLeaves, p->pPars->pLutStruct ); + pCut->fUseless = !p->pPars->pFuncCell( p, If_CutTruth(p, pCut), pCut->nLeaves, pCut->nLeaves, p->pPars->pLutStruct ); p->nCutsUselessAll += pCut->fUseless; p->nCutsUseless[pCut->nLeaves] += pCut->fUseless; p->nCutsCountAll++; -- cgit v1.2.3