diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-04-17 14:54:35 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-04-17 14:54:35 -0700 |
commit | 3e9bc99e2451104886f9f7f2fd92b83d0eece98d (patch) | |
tree | 0c60420b12d3487928a3f293fc8be70f08b3554e | |
parent | f7a13e11ad95051a4890f333503876ac635fc4cf (diff) | |
download | abc-3e9bc99e2451104886f9f7f2fd92b83d0eece98d.tar.gz abc-3e9bc99e2451104886f9f7f2fd92b83d0eece98d.tar.bz2 abc-3e9bc99e2451104886f9f7f2fd92b83d0eece98d.zip |
Adding new command handler for experimental procedures.
-rw-r--r-- | abclib.dsp | 4 | ||||
-rw-r--r-- | src/base/abci/abc.c | 47 | ||||
-rw-r--r-- | src/base/abci/abcRunGen.c | 55 | ||||
-rw-r--r-- | src/base/abci/module.make | 1 |
4 files changed, 107 insertions, 0 deletions
@@ -451,6 +451,10 @@ SOURCE=.\src\base\abci\abcRr.c # End Source File # Begin Source File +SOURCE=.\src\base\abci\abcRunGen.c +# End Source File +# Begin Source File + SOURCE=.\src\base\abci\abcSat.c # End Source File # Begin Source File diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index ab8e2577..6461d4f4 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -136,6 +136,7 @@ static int Abc_CommandTestDec ( Abc_Frame_t * pAbc, int argc, cha static int Abc_CommandTestNpn ( Abc_Frame_t * pAbc, int argc, char ** argv ); static int Abc_CommandTestRPO ( Abc_Frame_t * pAbc, int argc, char ** argv ); static int Abc_CommandRunEco ( Abc_Frame_t * pAbc, int argc, char ** argv ); +static int Abc_CommandRunGen ( Abc_Frame_t * pAbc, int argc, char ** argv ); static int Abc_CommandRewrite ( Abc_Frame_t * pAbc, int argc, char ** argv ); static int Abc_CommandRefactor ( Abc_Frame_t * pAbc, int argc, char ** argv ); @@ -833,6 +834,7 @@ void Abc_Init( Abc_Frame_t * pAbc ) Cmd_CommandAdd( pAbc, "Synthesis", "testnpn", Abc_CommandTestNpn, 0 ); Cmd_CommandAdd( pAbc, "LogiCS", "testrpo", Abc_CommandTestRPO, 0 ); Cmd_CommandAdd( pAbc, "Synthesis", "runeco", Abc_CommandRunEco, 0 ); + Cmd_CommandAdd( pAbc, "Synthesis", "rungen", Abc_CommandRunGen, 0 ); Cmd_CommandAdd( pAbc, "Synthesis", "rewrite", Abc_CommandRewrite, 1 ); Cmd_CommandAdd( pAbc, "Synthesis", "refactor", Abc_CommandRefactor, 1 ); @@ -6962,6 +6964,51 @@ usage: } +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +int Abc_CommandRunGen( Abc_Frame_t * pAbc, int argc, char ** argv ) +{ + extern void Acb_NtkRunGen( char * pFileNames[2], int fVerbose ); + 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 ( argc - globalUtilOptind != 2 ) + { + Abc_Print( 1, "Expecting two file names on the command line.\n" ); + goto usage; + } + Acb_NtkRunGen( argv + globalUtilOptind, fVerbose ); + return 0; + +usage: + Abc_Print( -2, "usage: rungen <file1> <file2> [-vh]\n" ); + Abc_Print( -2, "\t experimental command\n" ); + Abc_Print( -2, "\t-v : toggle printing verbose information [default = %s]\n", fVerbose? "yes": "no" ); + Abc_Print( -2, "\t-h : print the command usage\n"); + return 1; +} + /**Function************************************************************* diff --git a/src/base/abci/abcRunGen.c b/src/base/abci/abcRunGen.c new file mode 100644 index 00000000..9130fdad --- /dev/null +++ b/src/base/abci/abcRunGen.c @@ -0,0 +1,55 @@ +/**CFile**************************************************************** + + FileName [abcRunGen.c] + + SystemName [ABC: Logic synthesis and verification system.] + + PackageName [Network and node package.] + + Synopsis [Interface to experimental procedures.] + + Author [Alan Mishchenko] + + Affiliation [UC Berkeley] + + Date [Ver. 1.0. Started - June 20, 2005.] + + Revision [$Id: abcRunGen.c,v 1.00 2005/06/20 00:00:00 alanmi Exp $] + +***********************************************************************/ + +#include "base/abc/abc.h" +#include "opt/cut/cut.h" + +ABC_NAMESPACE_IMPL_START + +//////////////////////////////////////////////////////////////////////// +/// DECLARATIONS /// +//////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////////////// +/// FUNCTION DEFINITIONS /// +//////////////////////////////////////////////////////////////////////// + +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +void Acb_NtkRunGen( char * pFileNames[2], int fVerbose ) +{ +} + +//////////////////////////////////////////////////////////////////////// +/// END OF FILE /// +//////////////////////////////////////////////////////////////////////// + + +ABC_NAMESPACE_IMPL_END + diff --git a/src/base/abci/module.make b/src/base/abci/module.make index abf56716..00143df8 100644 --- a/src/base/abci/module.make +++ b/src/base/abci/module.make @@ -59,6 +59,7 @@ SRC += src/base/abci/abc.c \ src/base/abci/abcRewrite.c \ src/base/abci/abcRpo.c \ src/base/abci/abcRr.c \ + src/base/abci/abcRunGen.c \ src/base/abci/abcSat.c \ src/base/abci/abcSaucy.c \ src/base/abci/abcScorr.c \ |