Determine LUT size form the LUT library if present.

This commit is contained in:
Alan Mishchenko 2011-07-27 13:30:17 +07:00
parent 7184003b42
commit 701296451e
1 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#include "lpkInt.h"
#include "cloud.h"
#include "main.h"
ABC_NAMESPACE_IMPL_START
@ -516,7 +517,10 @@ int Lpk_Resynthesize( Abc_Ntk_t * pNtk, Lpk_Par_t * pPars )
Abc_NtkSweep( pNtk, 0 );
// get the number of inputs
pPars->nLutSize = Abc_NtkGetFaninMax( pNtk );
if ( Abc_FrameReadLibLut() )
pPars->nLutSize = ((If_Lib_t *)Abc_FrameReadLibLut())->LutMax;
else
pPars->nLutSize = Abc_NtkGetFaninMax( pNtk );
if ( pPars->nLutSize > 6 )
pPars->nLutSize = 6;
if ( pPars->nLutSize < 3 )