Changes to LUT mappers.

This commit is contained in:
Alan Mishchenko
2014-02-25 22:41:34 -08:00
parent 15a1c4b965
commit caa2227b11
8 changed files with 295 additions and 51 deletions
+2 -2
View File
@@ -2201,7 +2201,7 @@ int Abc_CommandPrintDsd( Abc_Frame_t * pAbc, int argc, char ** argv )
extern void Kit_DsdTest( unsigned * pTruth, int nVars );
extern void Kit_DsdPrintCofactors( unsigned * pTruth, int nVars, int nCofLevel, int fVerbose );
extern void Dau_DecTrySets( word * p, int nVars );
extern void Dau_DecTrySets( word * p, int nVars, int fVerbose );
// set defaults
nCofLevel = 1;
@@ -2274,7 +2274,7 @@ int Abc_CommandPrintDsd( Abc_Frame_t * pAbc, int argc, char ** argv )
// Extra_PrintBinary( stdout, pTruth, 1 << Abc_ObjFaninNum(pObj) );
// Abc_Print( -1, "\n" );
if ( fPrintDec )//&&Abc_ObjFaninNum(pObj) <= 6 )
Dau_DecTrySets( (word *)pTruth, Abc_ObjFaninNum(pObj) );
Dau_DecTrySets( (word *)pTruth, Abc_ObjFaninNum(pObj), 1 );
if ( fProfile )
Kit_TruthPrintProfile( pTruth, Abc_ObjFaninNum(pObj) );
else if ( fCofactor )
+6 -3
View File
@@ -25,6 +25,7 @@
#include "bool/dec/dec.h"
#include "bool/kit/kit.h"
#include "opt/dau/dau.h"
#include "misc/util/utilTruth.h"
ABC_NAMESPACE_IMPL_START
@@ -564,11 +565,13 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
{
for ( i = 0; i < p->nFuncs; i++ )
{
extern void Dau_DecTrySets( word * pInit, int nVars );
extern void Dau_DecTrySets( word * pInit, int nVars, int fVerbose );
int nSuppSize = Abc_TtSupportSize( p->pFuncs[i], p->nVars );
if ( fVerbose )
printf( "%7d : ", i );
Dau_DecTrySets( p->pFuncs[i], p->nVars );
printf( "\n" );
Dau_DecTrySets( p->pFuncs[i], nSuppSize, fVerbose );
if ( fVerbose )
printf( "\n" );
}
}
else assert( 0 );