Commit 70129645 by Alan Mishchenko

Determine LUT size form the LUT library if present.

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