summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abclib.dsp4
-rw-r--r--src/base/abci/abc.c56
-rw-r--r--src/base/acb/acbTest.c55
-rw-r--r--src/base/acb/module.make1
4 files changed, 115 insertions, 1 deletions
diff --git a/abclib.dsp b/abclib.dsp
index 14220199..d0a7be8e 100644
--- a/abclib.dsp
+++ b/abclib.dsp
@@ -1107,6 +1107,10 @@ SOURCE=.\src\base\acb\acbSets.h
# End Source File
# Begin Source File
+SOURCE=.\src\base\acb\acbTest.c
+# End Source File
+# Begin Source File
+
SOURCE=.\src\base\acb\acbUtil.c
# End Source File
# End Group
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index da0eb111..35098ab7 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -139,6 +139,7 @@ static int Abc_CommandTestTruth ( Abc_Frame_t * pAbc, int argc, cha
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 );
static int Abc_CommandRefactor ( Abc_Frame_t * pAbc, int argc, char ** argv );
@@ -855,6 +856,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
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", "runtest", Abc_CommandRunTest, 0 );
Cmd_CommandAdd( pAbc, "Synthesis", "rewrite", Abc_CommandRewrite, 1 );
Cmd_CommandAdd( pAbc, "Synthesis", "refactor", Abc_CommandRefactor, 1 );
@@ -7245,6 +7247,58 @@ usage:
}
+/**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 );
+ char * pFileNames[4] = {NULL};
+ int c, fFancy = 0, fVerbose = 0;
+ Extra_UtilGetoptReset();
+ while ( ( c = Extra_UtilGetopt( argc, argv, "fvh" ) ) != EOF )
+ {
+ switch ( c )
+ {
+ case 'f':
+ fFancy ^= 1;
+ break;
+ case 'v':
+ fVerbose ^= 1;
+ break;
+ case 'h':
+ goto usage;
+ default:
+ goto usage;
+ }
+ }
+ if ( argc - globalUtilOptind < 2 || argc - globalUtilOptind > 3 )
+ {
+ Abc_Print( 1, "Expecting two or three file names on the command line.\n" );
+ goto usage;
+ }
+ for ( c = 0; c < argc - globalUtilOptind; c++ )
+ pFileNames[c] = argv[globalUtilOptind+c];
+ Acb_NtkRunTest( pFileNames, fFancy, fVerbose );
+ return 0;
+
+usage:
+ Abc_Print( -2, "usage: runtest [-fvh] <file1> <file2>\n" );
+ Abc_Print( -2, "\t experimental simulation command\n" );
+ Abc_Print( -2, "\t-f : toggle using experimental feature [default = %s]\n", fFancy? "yes": "no" );
+ 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*************************************************************
@@ -32644,7 +32698,7 @@ int Abc_CommandAbc9MLTest( Abc_Frame_t * pAbc, int argc, char ** argv )
return 0;
usage:
- Abc_Print( -2, "usage: [-vh] <file>\n" );
+ Abc_Print( -2, "usage: &mltest [-vh] <file>\n" );
Abc_Print( -2, "\t testing command for machine learning data\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");
diff --git a/src/base/acb/acbTest.c b/src/base/acb/acbTest.c
new file mode 100644
index 00000000..fa632ca0
--- /dev/null
+++ b/src/base/acb/acbTest.c
@@ -0,0 +1,55 @@
+/**CFile****************************************************************
+
+ FileName [acbTest.c]
+
+ SystemName [ABC: Logic synthesis and verification system.]
+
+ PackageName [Hierarchical word-level netlist.]
+
+ Synopsis []
+
+ Author [Alan Mishchenko]
+
+ Affiliation [UC Berkeley]
+
+ Date [Ver. 1.0. Started - July 21, 2015.]
+
+ Revision [$Id: acbTest.c,v 1.00 2014/11/29 00:00:00 alanmi Exp $]
+
+***********************************************************************/
+
+#include "acb.h"
+
+ABC_NAMESPACE_IMPL_START
+
+////////////////////////////////////////////////////////////////////////
+/// DECLARATIONS ///
+////////////////////////////////////////////////////////////////////////
+
+////////////////////////////////////////////////////////////////////////
+/// FUNCTION DEFINITIONS ///
+////////////////////////////////////////////////////////////////////////
+
+/**Function*************************************************************
+
+ Synopsis []
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
+void Acb_NtkRunTest( char * pFileNames[4], int fFancy, int fVerbose )
+{
+}
+
+
+////////////////////////////////////////////////////////////////////////
+/// END OF FILE ///
+////////////////////////////////////////////////////////////////////////
+
+
+ABC_NAMESPACE_IMPL_END
+
diff --git a/src/base/acb/module.make b/src/base/acb/module.make
index 46294f9f..ec78b3b0 100644
--- a/src/base/acb/module.make
+++ b/src/base/acb/module.make
@@ -5,4 +5,5 @@ SRC += src/base/acb/acbAbc.c \
src/base/acb/acbMfs.c \
src/base/acb/acbPush.c \
src/base/acb/acbSets.c \
+ src/base/acb/acbTest.c \
src/base/acb/acbUtil.c