diff options
Diffstat (limited to 'src/opt')
-rw-r--r-- | src/opt/lpk/lpkCore.c | 6 | ||||
-rw-r--r-- | src/opt/lpk/lpkCut.c | 4 | ||||
-rw-r--r-- | src/opt/res/resCore.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/opt/lpk/lpkCore.c b/src/opt/lpk/lpkCore.c index 8b8028e3..acea4866 100644 --- a/src/opt/lpk/lpkCore.c +++ b/src/opt/lpk/lpkCore.c @@ -446,10 +446,6 @@ p->timeTruth3 += clock() - clk; // pFileName = Kit_TruthDumpToFile( pTruth, pCut->nLeaves, Count++ ); // printf( "Saved truth table in file \"%s\".\n", pFileName ); } - if ( p->pObj->Id == 33 && i == 0 ) - { - int x = 0; - } // update the network nNodesBef = Abc_NtkNodeNum(p->pNtk); @@ -512,6 +508,8 @@ int Lpk_Resynthesize( Abc_Ntk_t * pNtk, Lpk_Par_t * pPars ) // get the number of inputs pPars->nLutSize = Abc_NtkGetFaninMax( pNtk ); + if ( pPars->nLutSize > 6 ) + pPars->nLutSize = 6; // adjust the number of crossbars based on LUT size if ( pPars->nVarsShared > pPars->nLutSize - 2 ) pPars->nVarsShared = pPars->nLutSize - 2; diff --git a/src/opt/lpk/lpkCut.c b/src/opt/lpk/lpkCut.c index b2a743bd..facd330b 100644 --- a/src/opt/lpk/lpkCut.c +++ b/src/opt/lpk/lpkCut.c @@ -24,7 +24,7 @@ //////////////////////////////////////////////////////////////////////// /// DECLARATIONS /// //////////////////////////////////////////////////////////////////////// - + //////////////////////////////////////////////////////////////////////// /// FUNCTION DEFINITIONS /// //////////////////////////////////////////////////////////////////////// @@ -489,7 +489,7 @@ void Lpk_NodeCutsOne( Lpk_Man_t * p, Lpk_Cut_t * pCut, int Node ) if ( Abc_ObjIsCi(pObj) ) return; assert( Abc_ObjIsNode(pObj) ); - assert( Abc_ObjFaninNum(pObj) <= p->pPars->nLutSize ); +// assert( Abc_ObjFaninNum(pObj) <= p->pPars->nLutSize ); // if the node is not in the MFFC, check the limit if ( !Abc_NodeIsTravIdCurrent(pObj) ) diff --git a/src/opt/res/resCore.c b/src/opt/res/resCore.c index 27e9b3ea..aa0eaeec 100644 --- a/src/opt/res/resCore.c +++ b/src/opt/res/resCore.c @@ -246,6 +246,8 @@ int Abc_NtkResynthesize( Abc_Ntk_t * pNtk, Res_Par_t * pPars ) Extra_ProgressBarUpdate( pProgress, i, NULL ); if ( !Abc_ObjIsNode(pObj) ) continue; + if ( Abc_ObjFaninNum(pObj) > 8 ) + continue; if ( pObj->Id > nNodesOld ) break; |