Skip to content

Commit 49d9252

Browse files
committed
Updating the way min col mult is reported in lutcasdec.
1 parent 5e54ef3 commit 49d9252

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/base/abci/abcCas.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ word * Abc_LutCascadeDec( char * pGuide, word * pTruth, int nVarsOrig, Vec_Int_t
724724
Vec_Wrd_t * vCas = Vec_WrdAlloc( 100 ); Vec_WrdPush( vCas, nVarsOrig );
725725
if ( pnStages ) *pnStages = 0;
726726
for ( i = 0; Vec_IntSize(vVarIDs) > nLutSize; i++ ) {
727-
nRVars = Abc_LutCascadeDecStage( pGuide, i, vFuncs, vVarIDs, nRVars, nRails, nLutSize, fVerbose, vCas, pMyu );
727+
nRVars = Abc_LutCascadeDecStage( pGuide, i, vFuncs, vVarIDs, nRVars, nRails, nLutSize, fVerbose, vCas, i ? NULL : pMyu );
728728
if ( i+2 > nStages ) {
729729
printf( "The length of the cascade (%d) exceeds the max allowed number of stages (%d).\n", i+2, nStages );
730730
nRVars = -1;
@@ -1426,6 +1426,7 @@ void Abc_NtkLutCascadeFile( char * pFileName, int nVarsOrig, int nLutSize, int n
14261426

14271427
word * pLuts = Abc_LutCascadeDec( NULL, pTruth, nVarsOrig, vVarIDs, nRails, nLutSize, nStages, fVeryVerbose, &nStageCount, &MyuMin );
14281428
Vec_IntFree( vVarIDs );
1429+
if ( MyuMin < 50 ) MyuStats[MyuMin]++;
14291430
if ( pLuts == NULL ) {
14301431
if ( ++Iter < nIters ) {
14311432
i--;
@@ -1442,7 +1443,6 @@ void Abc_NtkLutCascadeFile( char * pFileName, int nVarsOrig, int nLutSize, int n
14421443
if ( Abc_LutCascadeCount(pLuts) < 50 )
14431444
LutStats[Abc_LutCascadeCount(pLuts)]++;
14441445
if ( nStageCount < 50) StageStats[nStageCount]++;
1445-
if ( MyuMin < 50 ) MyuStats[MyuMin]++;
14461446
word * pTruth2 = Abc_LutCascadeTruth( pLuts, nVarsOrig );
14471447
if ( fVeryVerbose )
14481448
Abc_LutCascadePrint( pLuts );
@@ -1463,7 +1463,7 @@ void Abc_NtkLutCascadeFile( char * pFileName, int nVarsOrig, int nLutSize, int n
14631463
printf( "Column multiplicity statistics for %d-rail LUT cascade:\n", nRails );
14641464
for ( i = 0; i < 50; i++ )
14651465
if ( MyuStats[i] )
1466-
printf( " %2d Myu : Function count = %8d (%6.2f %%)\n", i, MyuStats[i], 100.0*MyuStats[i]/nFuncs );
1466+
printf( " %2d Myu : Function count = %8d (%6.2f %%)\n", i, MyuStats[i], 100.0*MyuStats[i]/nFuncs/nIters );
14671467
printf( "Level count statistics for %d-rail LUT cascade:\n", nRails );
14681468
for ( i = 0; i < 50; i++ )
14691469
if ( StageStats[i] )

0 commit comments

Comments
 (0)