diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-11 00:43:37 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-11 00:43:37 -0800 |
commit | 112f797c731ac45b713efd87dd5956695b983ecd (patch) | |
tree | e1bb5ccba8e41559e9642394a888d9d30e6c0bd1 /src/base/abci/abcPrint.c | |
parent | c5067f7d04dc4c8ee919d9597a4a94a5c4ac3552 (diff) | |
download | abc-112f797c731ac45b713efd87dd5956695b983ecd.tar.gz abc-112f797c731ac45b713efd87dd5956695b983ecd.tar.bz2 abc-112f797c731ac45b713efd87dd5956695b983ecd.zip |
Added switch -f to 'print_io' to suppress printing flops.
Diffstat (limited to 'src/base/abci/abcPrint.c')
-rw-r--r-- | src/base/abci/abcPrint.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/base/abci/abcPrint.c b/src/base/abci/abcPrint.c index af34029e..01e0a093 100644 --- a/src/base/abci/abcPrint.c +++ b/src/base/abci/abcPrint.c @@ -395,7 +395,7 @@ void Abc_NtkPrintStats( Abc_Ntk_t * pNtk, int fFactored, int fSaveBest, int fDum SeeAlso [] ***********************************************************************/ -void Abc_NtkPrintIo( FILE * pFile, Abc_Ntk_t * pNtk ) +void Abc_NtkPrintIo( FILE * pFile, Abc_Ntk_t * pNtk, int fPrintFlops ) { Abc_Obj_t * pObj; int i; @@ -411,6 +411,9 @@ void Abc_NtkPrintIo( FILE * pFile, Abc_Ntk_t * pNtk ) fprintf( pFile, " %s", Abc_ObjName(pObj) ); fprintf( pFile, "\n" ); + if ( !fPrintFlops ) + return; + fprintf( pFile, "Latches (%d): ", Abc_NtkLatchNum(pNtk) ); Abc_NtkForEachLatch( pNtk, pObj, i ) fprintf( pFile, " %s(%s=%s)", Abc_ObjName(pObj), |