summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abc/abcHieCec.c6
-rw-r--r--src/base/abci/abc.c11
2 files changed, 11 insertions, 6 deletions
diff --git a/src/base/abc/abcHieCec.c b/src/base/abc/abcHieCec.c
index 3210ad48..b3a3718f 100644
--- a/src/base/abc/abcHieCec.c
+++ b/src/base/abc/abcHieCec.c
@@ -402,7 +402,7 @@ Gia_Man_t * Abc_NtkDeriveFlatGia2Derive( Abc_Ntk_t * pNtk, Vec_Ptr_t * vOrder )
Gia_ManStop( pGiaBox );
printf( "%8d -> ", Abc_NtkCountAndNodes(vOrder) );
- Gia_ManPrintStats( pGia, 0 );
+ Gia_ManPrintStats( pGia, 0, 0 );
return pGia;
}
/*
@@ -721,7 +721,7 @@ Gia_Man_t * Abc_NtkHieCecTest( char * pFileName, int fVerbose )
clk = clock();
pGia = Abc_NtkDeriveFlatGia2( pNtk, vOrder );
Abc_PrintTime( 1, "Deriving GIA", clock() - clk );
- Gia_ManPrintStats( pGia, 0 );
+ Gia_ManPrintStats( pGia, 0, 0 );
// Gia_ManStop( pGia );
Vec_PtrFree( vOrder );
@@ -737,7 +737,7 @@ Gia_Man_t * Abc_NtkHieCecTest( char * pFileName, int fVerbose )
clk = clock();
pGia = Abc_NtkDeriveFlatGia( pNtk );
Abc_PrintTime( 1, "Deriving GIA", clock() - clk );
- Gia_ManPrintStats( pGia, 0 );
+ Gia_ManPrintStats( pGia, 0, 0 );
// clean nodes/boxes of all nodes
Vec_PtrForEachEntry( Abc_Ntk_t *, vMods, pModel, i )
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index 8bf1c60e..15e314db 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -22031,11 +22031,15 @@ int Abc_CommandAbc9Ps( Abc_Frame_t * pAbc, int argc, char ** argv )
{
int c;
int fSwitch = 0;
+ int fTents = 0;
Extra_UtilGetoptReset();
- while ( ( c = Extra_UtilGetopt( argc, argv, "ph" ) ) != EOF )
+ while ( ( c = Extra_UtilGetopt( argc, argv, "tph" ) ) != EOF )
{
switch ( c )
{
+ case 't':
+ fTents ^= 1;
+ break;
case 'p':
fSwitch ^= 1;
break;
@@ -22050,12 +22054,13 @@ int Abc_CommandAbc9Ps( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Abc_CommandAbc9Ps(): There is no AIG.\n" );
return 1;
}
- Gia_ManPrintStats( pAbc->pGia, fSwitch );
+ Gia_ManPrintStats( pAbc->pGia, fTents, fSwitch );
return 0;
usage:
- Abc_Print( -2, "usage: &ps [-ph]\n" );
+ Abc_Print( -2, "usage: &ps [-tph]\n" );
Abc_Print( -2, "\t prints stats of the current AIG\n" );
+ Abc_Print( -2, "\t-t : toggle printing BMC tents [default = %s]\n", fTents? "yes": "no" );
Abc_Print( -2, "\t-p : toggle printing switching activity [default = %s]\n", fSwitch? "yes": "no" );
Abc_Print( -2, "\t-h : print the command usage\n");
return 1;