diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-10-03 17:15:43 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-10-03 17:15:43 -0700 |
commit | fa5f05e3a2e0e866184d5597f442a3362ff2ab76 (patch) | |
tree | 5d992dbb3e452bcfaa1ab9217df3eabb5ad480e1 /src/map/if | |
parent | 3f31a8580f38b676b4fa8607d0e3863cc160cd48 (diff) | |
download | abc-fa5f05e3a2e0e866184d5597f442a3362ff2ab76.tar.gz abc-fa5f05e3a2e0e866184d5597f442a3362ff2ab76.tar.bz2 abc-fa5f05e3a2e0e866184d5597f442a3362ff2ab76.zip |
Deriving AIG after cell mapping.
Diffstat (limited to 'src/map/if')
-rw-r--r-- | src/map/if/if.h | 2 | ||||
-rw-r--r-- | src/map/if/ifTune.c | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/map/if/if.h b/src/map/if/if.h index 8114e5c3..a94a5fe8 100644 --- a/src/map/if/if.h +++ b/src/map/if/if.h @@ -623,6 +623,8 @@ extern void If_ManComputeRequired( If_Man_t * p ); extern void If_CutRotatePins( If_Man_t * p, If_Cut_t * pCut ); extern int If_CutComputeTruth( If_Man_t * p, If_Cut_t * pCut, If_Cut_t * pCut0, If_Cut_t * pCut1, int fCompl0, int fCompl1 ); extern int If_CutComputeTruthPerm( If_Man_t * p, If_Cut_t * pCut, If_Cut_t * pCut0, If_Cut_t * pCut1, int fCompl0, int fCompl1 ); +/*=== ifTune.c ===========================================================*/ +extern void * If_ManSatBuildFromCell( char * pStr, Vec_Int_t ** pvPiVars, Vec_Int_t ** pvPoVars, void ** ppNtk ); /*=== ifUtil.c ============================================================*/ extern void If_ManCleanNodeCopy( If_Man_t * p ); extern void If_ManCleanCutData( If_Man_t * p ); diff --git a/src/map/if/ifTune.c b/src/map/if/ifTune.c index f75192b6..6e48448b 100644 --- a/src/map/if/ifTune.c +++ b/src/map/if/ifTune.c @@ -621,6 +621,15 @@ sat_solver * Ifn_ManSatBuild( Ifn_Ntk_t * p, Vec_Int_t ** pvPiVars, Vec_Int_t ** Gia_ManStop( p2 ); return pSat; } +void * If_ManSatBuildFromCell( char * pStr, Vec_Int_t ** pvPiVars, Vec_Int_t ** pvPoVars, void ** ppNtk ) +{ + Ifn_Ntk_t * p = Ifn_NtkParse( pStr ); + *ppNtk = p; + if ( p == NULL ) + return NULL; +// Ifn_NtkPrint( p ); + return Ifn_ManSatBuild( p, pvPiVars, pvPoVars ); +} /**Function************************************************************* |