summaryrefslogtreecommitdiffstats
path: root/src/base/abci
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-06-22 17:08:21 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-06-22 17:08:21 -0700
commitf93e5244219b75224df0c75b424654bd2424852b (patch)
treefb511d395ddfe1d1a200842ccd14477ff4a3894b /src/base/abci
parent13dd4eeb590099a7653eb648d34e1a26010b6beb (diff)
downloadabc-f93e5244219b75224df0c75b424654bd2424852b.tar.gz
abc-f93e5244219b75224df0c75b424654bd2424852b.tar.bz2
abc-f93e5244219b75224df0c75b424654bd2424852b.zip
Added command &mux_profile.
Diffstat (limited to 'src/base/abci')
-rw-r--r--src/base/abci/abc.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index a7e8c384..0fb1e406 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -326,6 +326,7 @@ static int Abc_CommandAbc9Ps ( Abc_Frame_t * pAbc, int argc, cha
static int Abc_CommandAbc9PFan ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9PSig ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9Status ( Abc_Frame_t * pAbc, int argc, char ** argv );
+static int Abc_CommandAbc9MuxProfile ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9Show ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9Strash ( Abc_Frame_t * pAbc, int argc, char ** argv );
static int Abc_CommandAbc9Topand ( Abc_Frame_t * pAbc, int argc, char ** argv );
@@ -905,6 +906,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd( pAbc, "ABC9", "&pfan", Abc_CommandAbc9PFan, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&psig", Abc_CommandAbc9PSig, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&status", Abc_CommandAbc9Status, 0 );
+ Cmd_CommandAdd( pAbc, "ABC9", "&mux_profile", Abc_CommandAbc9MuxProfile, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&show", Abc_CommandAbc9Show, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&st", Abc_CommandAbc9Strash, 0 );
Cmd_CommandAdd( pAbc, "ABC9", "&topand", Abc_CommandAbc9Topand, 0 );
@@ -25631,6 +25633,47 @@ usage:
SeeAlso []
***********************************************************************/
+int Abc_CommandAbc9MuxProfile( Abc_Frame_t * pAbc, int argc, char ** argv )
+{
+ extern void Gia_ManMuxProfiling( Gia_Man_t * p );
+ int c;
+ Extra_UtilGetoptReset();
+ while ( ( c = Extra_UtilGetopt( argc, argv, "h" ) ) != EOF )
+ {
+ switch ( c )
+ {
+ case 'h':
+ goto usage;
+ default:
+ goto usage;
+ }
+ }
+ if ( pAbc->pGia == NULL )
+ {
+ Abc_Print( -1, "Abc_CommandAbc9MuxProfile(): There is no AIG.\n" );
+ return 1;
+ }
+ Gia_ManMuxProfiling( pAbc->pGia );
+ return 0;
+
+usage:
+ Abc_Print( -2, "usage: &mux_profile [-h]\n" );
+ Abc_Print( -2, "\t profile MUXes appearing in the design\n" );
+ Abc_Print( -2, "\t-h : print the command usage\n");
+ return 1;
+}
+
+/**Function*************************************************************
+
+ Synopsis []
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
int Abc_CommandAbc9Show( Abc_Frame_t * pAbc, int argc, char ** argv )
{
Aig_Man_t * pMan;