summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-09-16 12:13:25 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-09-16 12:13:25 -0700
commite033a62282ef94ddca87a1778d66a4a4270ac1c3 (patch)
tree5d304ad565cb86768e6ca68e346f50874dc96db2 /src/base
parent1d5cb52e4ab8649c7f02bddea086bbf57c9d3c20 (diff)
downloadabc-e033a62282ef94ddca87a1778d66a4a4270ac1c3.tar.gz
abc-e033a62282ef94ddca87a1778d66a4a4270ac1c3.tar.bz2
abc-e033a62282ef94ddca87a1778d66a4a4270ac1c3.zip
Code restructuring.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abci/abc.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index df320867..ca7be1d9 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -360,6 +360,7 @@ static int Abc_CommandAbc9BalanceLut ( Abc_Frame_t * pAbc, int argc, cha
static int Abc_CommandAbc9Syn2 ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9Syn3 ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9Syn4 ( Abc_Frame_t * pAbc, int argc, char ** argv );
+static int Abc_CommandAbc9Synch2 ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9False ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9Miter ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9Miter2 ( Abc_Frame_t * pAbc, int argc, char ** argv );
@@ -950,6 +951,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd( pAbc, "ABC9", "&syn2", Abc_CommandAbc9Syn2, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&syn3", Abc_CommandAbc9Syn3, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&syn4", Abc_CommandAbc9Syn4, 0 );
+ Cmd_CommandAdd( pAbc, "ABC9", "&synch2", Abc_CommandAbc9Synch2, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&false", Abc_CommandAbc9False, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&miter", Abc_CommandAbc9Miter, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&miter2", Abc_CommandAbc9Miter2, 0 );
@@ -28449,6 +28451,53 @@ usage:
SeeAlso []
***********************************************************************/
+int Abc_CommandAbc9Synch2( Abc_Frame_t * pAbc, int argc, char ** argv )
+{
+ extern Gia_Man_t * Gia_ManAigSynch2( Gia_Man_t * p, int fVerbose );
+ Gia_Man_t * pTemp;
+ int c, fVerbose = 0;
+ Extra_UtilGetoptReset();
+ while ( ( c = Extra_UtilGetopt( argc, argv, "vh" ) ) != EOF )
+ {
+ switch ( c )
+ {
+ case 'v':
+ fVerbose ^= 1;
+ break;
+ case 'h':
+ goto usage;
+ default:
+ goto usage;
+ }
+ }
+ if ( pAbc->pGia == NULL )
+ {
+ Abc_Print( -1, "Abc_CommandAbc9Synch2(): There is no AIG.\n" );
+ return 1;
+ }
+ pTemp = Gia_ManAigSynch2( pAbc->pGia, fVerbose );
+ Abc_FrameUpdateGia( pAbc, pTemp );
+ return 0;
+
+usage:
+ Abc_Print( -2, "usage: &synch2 [-vh]\n" );
+ Abc_Print( -2, "\t performs synthesis and computes structural choices\n" );
+ Abc_Print( -2, "\t-v : toggles printing additional information [default = %s]\n", fVerbose? "yes": "no" );
+ Abc_Print( -2, "\t-h : print the command usage\n");
+ return 1;
+}
+
+/**Function*************************************************************
+
+ Synopsis []
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
int Abc_CommandAbc9Syn3( Abc_Frame_t * pAbc, int argc, char ** argv )
{
Gia_Man_t * pTemp;