mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-08 03:46:07 +02:00
Changes to LUT mappers.
This commit is contained in:
+2
-2
@@ -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 )
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user