mirror of https://github.com/YosysHQ/abc.git
Moving BDD-based threshold function detection to the BDD part of the code.
This commit is contained in:
parent
d944384d9e
commit
0145b0ca72
|
|
@ -987,6 +987,10 @@ SOURCE=.\src\bdd\extrab\extraBddSymm.c
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\bdd\extrab\extraBddThresh.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\bdd\extrab\extraBddTime.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
|
@ -3119,10 +3123,6 @@ SOURCE=.\src\misc\extra\extraUtilSupp.c
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\misc\extra\extraUtilThresh.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\misc\extra\extraUtilTruth.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
|
|
|||
|
|
@ -16941,7 +16941,6 @@ usage:
|
|||
***********************************************************************/
|
||||
int Abc_CommandDsdFilter( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||
{
|
||||
extern void Id_DsdManTuneThresh( If_DsdMan_t * p, int fUnate, int fThresh, int fThreshHeuristic, int fVerbose );
|
||||
If_DsdMan_t * pDsd = (If_DsdMan_t *)Abc_FrameReadManDsd();
|
||||
int c, nLimit = 0, nLutSize = -1, fCleanOccur = 0, fCleanMarks = 0, fInvMarks = 0, fUnate = 0, fThresh = 0, fThreshHeuristic = 0, fVerbose = 0;
|
||||
Extra_UtilGetoptReset();
|
||||
|
|
@ -17009,8 +17008,10 @@ int Abc_CommandDsdFilter( Abc_Frame_t * pAbc, int argc, char ** argv )
|
|||
If_DsdManCleanMarks( pDsd, fVerbose );
|
||||
if ( fInvMarks )
|
||||
If_DsdManInvertMarks( pDsd, fVerbose );
|
||||
#ifdef ABC_USE_CUDD
|
||||
else
|
||||
Id_DsdManTuneThresh( pDsd, fUnate, fThresh, fThreshHeuristic, fVerbose );
|
||||
#endif
|
||||
return 0;
|
||||
|
||||
usage:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/**CFile****************************************************************
|
||||
|
||||
FileName [extraUtilThresh.c]
|
||||
FileName [extraBddThresh.c]
|
||||
|
||||
SystemName [ABC: Logic synthesis and verification system.]
|
||||
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
Date [Ver. 1.0. Started - October 7, 2014.]
|
||||
|
||||
Revision [$Id: extraUtilThresh.c,v 1.0 2014/10/07 00:00:00 alanmi Exp $]
|
||||
Revision [$Id: extraBddThresh.c,v 1.0 2014/10/07 00:00:00 alanmi Exp $]
|
||||
|
||||
***********************************************************************/
|
||||
|
||||
|
|
@ -4,5 +4,6 @@ SRC += src/bdd/extrab/extraBddAuto.c \
|
|||
src/bdd/extrab/extraBddKmap.c \
|
||||
src/bdd/extrab/extraBddMisc.c \
|
||||
src/bdd/extrab/extraBddSymm.c \
|
||||
src/misc/extra/extraBddThresh.c \
|
||||
src/bdd/extrab/extraBddTime.c \
|
||||
src/bdd/extrab/extraBddUnate.c
|
||||
|
|
|
|||
|
|
@ -576,6 +576,7 @@ extern char * If_DsdManGetCellStr( If_DsdMan_t * p );
|
|||
extern unsigned If_DsdManCheckXY( If_DsdMan_t * p, int iDsd, int LutSize, int fDerive, unsigned uMaskNot, int fHighEffort, int fVerbose );
|
||||
extern int If_CutDsdBalanceEval( If_Man_t * p, If_Cut_t * pCut, Vec_Int_t * vAig );
|
||||
extern int If_CutDsdBalancePinDelays( If_Man_t * p, If_Cut_t * pCut, char * pPerm );
|
||||
extern void Id_DsdManTuneThresh( If_DsdMan_t * p, int fUnate, int fThresh, int fThreshHeuristic, int fVerbose );
|
||||
/*=== ifLib.c =============================================================*/
|
||||
extern If_LibLut_t * If_LibLutRead( char * FileName );
|
||||
extern If_LibLut_t * If_LibLutDup( If_LibLut_t * p );
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@
|
|||
#include "aig/gia/gia.h"
|
||||
#include "bool/kit/kit.h"
|
||||
|
||||
#ifdef ABC_USE_CUDD
|
||||
#include "bdd/extrab/extraBdd.h"
|
||||
#endif
|
||||
|
||||
#ifdef ABC_USE_PTHREADS
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
@ -2761,6 +2765,8 @@ void Id_DsdManTuneStr( If_DsdMan_t * p, char * pStruct, int nConfls, int nProcs,
|
|||
SeeAlso []
|
||||
|
||||
***********************************************************************/
|
||||
#ifdef ABC_USE_CUDD
|
||||
|
||||
void Id_DsdManTuneThresh( If_DsdMan_t * p, int fUnate, int fThresh, int fThreshHeuristic, int fVerbose )
|
||||
{
|
||||
extern int Extra_ThreshCheck( word * t, int nVars, int * pW );
|
||||
|
|
@ -2821,6 +2827,8 @@ void Id_DsdManTuneThresh( If_DsdMan_t * p, int fUnate, int fThresh, int fThreshH
|
|||
If_DsdManPrintDistrib( p );
|
||||
}
|
||||
|
||||
#endif // ABC_USE_CUDD are used
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
/// END OF FILE ///
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -10,6 +10,5 @@ SRC += src/misc/extra/extraUtilBitMatrix.c \
|
|||
src/misc/extra/extraUtilProgress.c \
|
||||
src/misc/extra/extraUtilReader.c \
|
||||
src/misc/extra/extraUtilSupp.c \
|
||||
src/misc/extra/extraUtilThresh.c \
|
||||
src/misc/extra/extraUtilTruth.c \
|
||||
src/misc/extra/extraUtilUtil.c
|
||||
|
|
|
|||
Loading…
Reference in New Issue