summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abclib.dsp8
-rw-r--r--src/aig/gia/module.make2
-rw-r--r--src/base/abci/abc.c155
-rw-r--r--src/base/main/mainInit.c2
4 files changed, 0 insertions, 167 deletions
diff --git a/abclib.dsp b/abclib.dsp
index fcbe343b..d1a2e3d5 100644
--- a/abclib.dsp
+++ b/abclib.dsp
@@ -5171,14 +5171,6 @@ SOURCE=.\src\aig\gia\giaSim2.c
# End Source File
# Begin Source File
-SOURCE=.\src\aig\gia\giaSim4.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\aig\gia\giaSim5.c
-# End Source File
-# Begin Source File
-
SOURCE=.\src\aig\gia\giaSimBase.c
# End Source File
# Begin Source File
diff --git a/src/aig/gia/module.make b/src/aig/gia/module.make
index 843d721b..acb32c18 100644
--- a/src/aig/gia/module.make
+++ b/src/aig/gia/module.make
@@ -79,8 +79,6 @@ SRC += src/aig/gia/giaAig.c \
src/aig/gia/giaShrink7.c \
src/aig/gia/giaSim.c \
src/aig/gia/giaSim2.c \
- src/aig/gia/giaSim4.c \
- src/aig/gia/giaSim5.c \
src/aig/gia/giaSimBase.c \
src/aig/gia/giaSort.c \
src/aig/gia/giaSpeedup.c \
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index eb7e50f6..50edfcbf 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -140,7 +140,6 @@ static int Abc_CommandTestRPO ( Abc_Frame_t * pAbc, int argc, cha
static int Abc_CommandTestTruth ( 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_CommandRunSim ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandRunTest ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandRewrite ( Abc_Frame_t * pAbc, int argc, char ** argv );
@@ -883,7 +882,6 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd( pAbc, "Synthesis", "testtruth", Abc_CommandTestTruth, 0 );
Cmd_CommandAdd( pAbc, "Synthesis", "runeco", Abc_CommandRunEco, 0 );
Cmd_CommandAdd( pAbc, "Synthesis", "rungen", Abc_CommandRunGen, 0 );
- Cmd_CommandAdd( pAbc, "Synthesis", "runsim", Abc_CommandRunSim, 0 );
Cmd_CommandAdd( pAbc, "Synthesis", "xec", Abc_CommandRunTest, 0 );
Cmd_CommandAdd( pAbc, "Synthesis", "rewrite", Abc_CommandRewrite, 1 );
@@ -7251,159 +7249,6 @@ usage:
SeeAlso []
***********************************************************************/
-int Abc_CommandRunSim( Abc_Frame_t * pAbc, int argc, char ** argv )
-{
- extern void Acb_NtkRunSim( char * pFileName[4], int nTimeout, int nWords, int nBeam, int LevL, int LevU, int fOrder, int fFancy, int fUseBuf, int fRandom, int fUseWeights, int fInputs, int fSkipMffc, int fVerbose, int fVeryVerbose );
- char * pFileNames[4] = {NULL, NULL, "out.v", NULL};
- int c, nTimeout = 0, nWords = 8, nBeam = 4, LevL = -1, LevU = -1, fOrder = 0, fFancy = 0, fUseBuf = 0, fRandom = 0, fUseWeights = 0, fInputs = 0, fSkipMffc = 0, fVerbose = 0, fVeryVerbose = 0;
- Extra_UtilGetoptReset();
- while ( ( c = Extra_UtilGetopt( argc, argv, "TWBLUofbruimvwh" ) ) != EOF )
- {
- switch ( c )
- {
- case 'T':
- if ( globalUtilOptind >= argc )
- {
- Abc_Print( -1, "Command line switch \"-T\" should be followed by an integer.\n" );
- goto usage;
- }
- nTimeout = atoi(argv[globalUtilOptind]);
- globalUtilOptind++;
- if ( nTimeout < 0 )
- goto usage;
- break;
- case 'W':
- if ( globalUtilOptind >= argc )
- {
- Abc_Print( -1, "Command line switch \"-W\" should be followed by an integer.\n" );
- goto usage;
- }
- nWords = atoi(argv[globalUtilOptind]);
- globalUtilOptind++;
- if ( nWords < 0 )
- goto usage;
- break;
- case 'B':
- if ( globalUtilOptind >= argc )
- {
- Abc_Print( -1, "Command line switch \"-B\" should be followed by an integer.\n" );
- goto usage;
- }
- nBeam = atoi(argv[globalUtilOptind]);
- globalUtilOptind++;
- if ( nBeam < 0 )
- goto usage;
- break;
- case 'L':
- if ( globalUtilOptind >= argc )
- {
- Abc_Print( -1, "Command line switch \"-L\" should be followed by an integer.\n" );
- goto usage;
- }
- LevL = atoi(argv[globalUtilOptind]);
- globalUtilOptind++;
- if ( LevL < 0 )
- goto usage;
- break;
- case 'U':
- if ( globalUtilOptind >= argc )
- {
- Abc_Print( -1, "Command line switch \"-U\" should be followed by an integer.\n" );
- goto usage;
- }
- LevU = atoi(argv[globalUtilOptind]);
- globalUtilOptind++;
- if ( LevU < 0 )
- goto usage;
- break;
- case 'o':
- fOrder ^= 1;
- break;
- case 'f':
- fFancy ^= 1;
- break;
- case 'b':
- fUseBuf ^= 1;
- break;
- case 'r':
- fRandom ^= 1;
- break;
- case 'u':
- fUseWeights ^= 1;
- break;
- case 'i':
- fInputs ^= 1;
- break;
- case 'm':
- fSkipMffc ^= 1;
- break;
- case 'v':
- fVerbose ^= 1;
- break;
- case 'w':
- fVeryVerbose ^= 1;
- break;
- case 'h':
- goto usage;
- default:
- goto usage;
- }
- }
- if ( argc - globalUtilOptind < 2 || argc - globalUtilOptind > 4 )
- {
- Abc_Print( 1, "Expecting two or three file names on the command line.\n" );
- goto usage;
- }
- Gia_ManRandom(1);
- for ( c = 0; c < argc - globalUtilOptind; c++ )
- pFileNames[c] = argv[globalUtilOptind+c];
- for ( c = 0; c < argc - globalUtilOptind - 1; c++ )
- {
- FILE * pFile = fopen( pFileNames[c], "rb" );
- if ( pFile == NULL )
- {
- printf( "Cannot open input file \"%s\".\n", pFileNames[c] );
- return 0;
- }
- else
- fclose( pFile );
- }
- Acb_NtkRunSim( pFileNames, nTimeout, nWords, nBeam, LevL, LevU, fOrder, fFancy, fUseBuf, fRandom, fUseWeights, fInputs, fSkipMffc, fVerbose, fVeryVerbose );
- return 0;
-
-usage:
- Abc_Print( -2, "usage: runsim [-TWBLU] [-ofbruimvwh] [-N <num>] <file1> <file2> <file3>\n" );
- Abc_Print( -2, "\t experimental simulation command\n" );
- Abc_Print( -2, "\t-T <num> : the timeout in seconds [default = %d]\n", nTimeout );
- Abc_Print( -2, "\t-W <num> : the number of words of simulation info [default = %d]\n", nWords );
- Abc_Print( -2, "\t-B <num> : the beam width parameter [default = %d]\n", nBeam );
- Abc_Print( -2, "\t-L <num> : the lower bound on level [default = %d]\n", LevL );
- Abc_Print( -2, "\t-U <num> : the upper bound on level [default = %d]\n", LevU );
- Abc_Print( -2, "\t-o : toggle using a different node ordering [default = %s]\n", fOrder? "yes": "no" );
- Abc_Print( -2, "\t-f : toggle using experimental feature [default = %s]\n", fFancy? "yes": "no" );
- Abc_Print( -2, "\t-b : toggle using buffers [default = %s]\n", fUseBuf? "yes": "no" );
- Abc_Print( -2, "\t-r : toggle using random permutation of support variables [default = %s]\n", fRandom? "yes": "no" );
- Abc_Print( -2, "\t-u : toggle using topological info to select support variables [default = %s]\n", fUseWeights? "yes": "no" );
- Abc_Print( -2, "\t-i : toggle using primary inputs as support variables [default = %s]\n", fInputs? "yes": "no" );
- Abc_Print( -2, "\t-m : toggle MFFC nodes as candidate divisors [default = %s]\n", fSkipMffc? "yes": "no" );
- Abc_Print( -2, "\t-v : toggle printing verbose information [default = %s]\n", fVerbose? "yes": "no" );
- Abc_Print( -2, "\t-w : toggle printing more verbose information [default = %s]\n", fVeryVerbose? "yes": "no" );
- Abc_Print( -2, "\t-h : print the command usage\n");
- return 1;
-}
-
-
-/**Function*************************************************************
-
- Synopsis []
-
- Description []
-
- SideEffects []
-
- SeeAlso []
-
-***********************************************************************/
int Abc_CommandRunTest( Abc_Frame_t * pAbc, int argc, char ** argv )
{
extern void Acb_NtkRunTest( char * pFileNames[4], int fFancy, int fVerbose );
diff --git a/src/base/main/mainInit.c b/src/base/main/mainInit.c
index d7ab7ae2..693cea90 100644
--- a/src/base/main/mainInit.c
+++ b/src/base/main/mainInit.c
@@ -119,7 +119,6 @@ void Abc_FrameInit( Abc_Frame_t * pAbc )
Bac_Init( pAbc );
Cba_Init( pAbc );
Pla_Init( pAbc );
- Sim_Init( pAbc );
Test_Init( pAbc );
Glucose_Init( pAbc );
Glucose2_Init( pAbc );
@@ -160,7 +159,6 @@ void Abc_FrameEnd( Abc_Frame_t * pAbc )
Bac_End( pAbc );
Cba_End( pAbc );
Pla_End( pAbc );
- Sim_End( pAbc );
Test_End( pAbc );
Glucose_End( pAbc );
}