mirror of https://github.com/YosysHQ/abc.git
Enables dumping stats into a file.
This commit is contained in:
parent
3f95853f3e
commit
d9b5aa49f7
|
|
@ -1211,7 +1211,7 @@ usage:
|
||||||
Abc_Print( -2, "\t prints the network statistics\n" );
|
Abc_Print( -2, "\t prints the network statistics\n" );
|
||||||
Abc_Print( -2, "\t-f : toggles printing the literal count in the factored forms [default = %s]\n", fFactor? "yes": "no" );
|
Abc_Print( -2, "\t-f : toggles printing the literal count in the factored forms [default = %s]\n", fFactor? "yes": "no" );
|
||||||
Abc_Print( -2, "\t-b : toggles saving the best logic network in \"best.blif\" [default = %s]\n", fSaveBest? "yes": "no" );
|
Abc_Print( -2, "\t-b : toggles saving the best logic network in \"best.blif\" [default = %s]\n", fSaveBest? "yes": "no" );
|
||||||
Abc_Print( -2, "\t-d : toggles dumping network into file \"<input_file_name>_dump.blif\" [default = %s]\n", fDumpResult? "yes": "no" );
|
Abc_Print( -2, "\t-d : toggles dumping statistics about the network into file [default = %s]\n", fDumpResult? "yes": "no" );
|
||||||
Abc_Print( -2, "\t-l : toggles printing delay of LUT mapping using LUT library [default = %s]\n", fSaveBest? "yes": "no" );
|
Abc_Print( -2, "\t-l : toggles printing delay of LUT mapping using LUT library [default = %s]\n", fSaveBest? "yes": "no" );
|
||||||
Abc_Print( -2, "\t-t : toggles printing runtime statistics [default = %s]\n", fPrintTime? "yes": "no" );
|
Abc_Print( -2, "\t-t : toggles printing runtime statistics [default = %s]\n", fPrintTime? "yes": "no" );
|
||||||
Abc_Print( -2, "\t-m : toggles printing MUX statistics [default = %s]\n", fPrintMuxes? "yes": "no" );
|
Abc_Print( -2, "\t-m : toggles printing MUX statistics [default = %s]\n", fPrintMuxes? "yes": "no" );
|
||||||
|
|
|
||||||
|
|
@ -222,6 +222,7 @@ void Abc_NtkPrintStats( Abc_Ntk_t * pNtk, int fFactored, int fSaveBest, int fDum
|
||||||
}
|
}
|
||||||
if ( fSaveBest )
|
if ( fSaveBest )
|
||||||
Abc_NtkCompareAndSaveBest( pNtk );
|
Abc_NtkCompareAndSaveBest( pNtk );
|
||||||
|
/*
|
||||||
if ( fDumpResult )
|
if ( fDumpResult )
|
||||||
{
|
{
|
||||||
char Buffer[1000] = {0};
|
char Buffer[1000] = {0};
|
||||||
|
|
@ -230,6 +231,7 @@ void Abc_NtkPrintStats( Abc_Ntk_t * pNtk, int fFactored, int fSaveBest, int fDum
|
||||||
Io_Write( pNtk, Buffer, IO_FILE_BLIF );
|
Io_Write( pNtk, Buffer, IO_FILE_BLIF );
|
||||||
if ( pNtk->pSpec ) ABC_FREE( pNameGen );
|
if ( pNtk->pSpec ) ABC_FREE( pNameGen );
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// if ( Abc_NtkIsStrash(pNtk) )
|
// if ( Abc_NtkIsStrash(pNtk) )
|
||||||
// Abc_AigCountNext( pNtk->pManFunc );
|
// Abc_AigCountNext( pNtk->pManFunc );
|
||||||
|
|
@ -322,6 +324,18 @@ void Abc_NtkPrintStats( Abc_Ntk_t * pNtk, int fFactored, int fSaveBest, int fDum
|
||||||
Abc_Print( 1,"\n" );
|
Abc_Print( 1,"\n" );
|
||||||
|
|
||||||
// print the statistic into a file
|
// print the statistic into a file
|
||||||
|
if ( fDumpResult )
|
||||||
|
{
|
||||||
|
FILE * pTable = fopen( "abcstats.txt", "a+" );
|
||||||
|
fprintf( pTable, "%s ", pNtk->pName );
|
||||||
|
fprintf( pTable, "%d ", Abc_NtkPiNum(pNtk) );
|
||||||
|
fprintf( pTable, "%d ", Abc_NtkPoNum(pNtk) );
|
||||||
|
fprintf( pTable, "%d ", Abc_NtkNodeNum(pNtk) );
|
||||||
|
fprintf( pTable, "%d ", Abc_NtkGetTotalFanins(pNtk) );
|
||||||
|
fprintf( pTable, "%d ", Abc_NtkLevel(pNtk) );
|
||||||
|
fprintf( pTable, "\n" );
|
||||||
|
fclose( pTable );
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
FILE * pTable;
|
FILE * pTable;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue