Commit 70129645 by Alan Mishchenko

Determine LUT size form the LUT library if present.

parent 7184003b
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment