mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-02 02:37:25 +02:00
Made print-out of frontier cut an option ('-c') in '&ps'.
This commit is contained in:
@@ -404,7 +404,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, 0 );
|
||||
Gia_ManPrintStats( pGia, 0, 0, 0 );
|
||||
return pGia;
|
||||
}
|
||||
/*
|
||||
@@ -724,7 +724,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, 0 );
|
||||
Gia_ManPrintStats( pGia, 0, 0, 0 );
|
||||
// Gia_ManStop( pGia );
|
||||
|
||||
Vec_PtrFree( vOrder );
|
||||
@@ -740,7 +740,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, 0 );
|
||||
Gia_ManPrintStats( pGia, 0, 0, 0 );
|
||||
|
||||
// clean nodes/boxes of all nodes
|
||||
Vec_PtrForEachEntry( Abc_Ntk_t *, vMods, pModel, i )
|
||||
|
||||
+9
-4
@@ -23438,10 +23438,11 @@ usage:
|
||||
int Abc_CommandAbc9Ps( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||
{
|
||||
int c;
|
||||
int fSwitch = 0;
|
||||
int fTents = 0;
|
||||
int fSwitch = 0;
|
||||
int fCut = 0;
|
||||
Extra_UtilGetoptReset();
|
||||
while ( ( c = Extra_UtilGetopt( argc, argv, "tph" ) ) != EOF )
|
||||
while ( ( c = Extra_UtilGetopt( argc, argv, "tpch" ) ) != EOF )
|
||||
{
|
||||
switch ( c )
|
||||
{
|
||||
@@ -23451,6 +23452,9 @@ int Abc_CommandAbc9Ps( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||
case 'p':
|
||||
fSwitch ^= 1;
|
||||
break;
|
||||
case 'c':
|
||||
fCut ^= 1;
|
||||
break;
|
||||
case 'h':
|
||||
goto usage;
|
||||
default:
|
||||
@@ -23462,14 +23466,15 @@ 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, fTents, fSwitch );
|
||||
Gia_ManPrintStats( pAbc->pGia, fTents, fSwitch, fCut );
|
||||
return 0;
|
||||
|
||||
usage:
|
||||
Abc_Print( -2, "usage: &ps [-tph]\n" );
|
||||
Abc_Print( -2, "usage: &ps [-tpch]\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-c : toggle printing the size of frontier cut [default = %s]\n", fCut? "yes": "no" );
|
||||
Abc_Print( -2, "\t-h : print the command usage\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user