diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-07-21 14:56:30 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-07-21 14:56:30 -0700 |
commit | a9afe7e8b7392242446e562f97dc13698005c682 (patch) | |
tree | d56754c8ff7916b1ea20609a3016d20683dedf77 /src/base/io | |
parent | 710835f8d60d5f7cab27fad6547be5f5cb1733a2 (diff) | |
download | abc-a9afe7e8b7392242446e562f97dc13698005c682.tar.gz abc-a9afe7e8b7392242446e562f97dc13698005c682.tar.bz2 abc-a9afe7e8b7392242446e562f97dc13698005c682.zip |
Improvements to post-mapping re-sizing.
Diffstat (limited to 'src/base/io')
-rw-r--r-- | src/base/io/ioWriteBlif.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/base/io/ioWriteBlif.c b/src/base/io/ioWriteBlif.c index 9ed2becb..a455dc76 100644 --- a/src/base/io/ioWriteBlif.c +++ b/src/base/io/ioWriteBlif.c @@ -718,24 +718,26 @@ void Io_WriteTimingInfo( FILE * pFile, Abc_Ntk_t * pNtk ) pTimeDef = Abc_NtkReadDefaultInputDrive( pNtk ); if ( pTimeDef->Rise != 0.0 || pTimeDef->Fall != 0.0 ) fprintf( pFile, ".default_input_drive %g %g\n", pTimeDef->Rise, pTimeDef->Fall ); - Abc_NtkForEachPi( pNtk, pNode, i ) - { - pTime = Abc_NodeReadInputDrive( pNtk, i ); - if ( pTime->Rise == pTimeDef->Rise && pTime->Fall == pTimeDef->Fall ) - continue; - fprintf( pFile, ".input_drive %s %g %g\n", Abc_ObjName(Abc_ObjFanout0(pNode)), pTime->Rise, pTime->Fall ); - } + if ( Abc_NodeReadInputDrive( pNtk, 0 ) ) + Abc_NtkForEachPi( pNtk, pNode, i ) + { + pTime = Abc_NodeReadInputDrive( pNtk, i ); + if ( pTime->Rise == pTimeDef->Rise && pTime->Fall == pTimeDef->Fall ) + continue; + fprintf( pFile, ".input_drive %s %g %g\n", Abc_ObjName(Abc_ObjFanout0(pNode)), pTime->Rise, pTime->Fall ); + } pTimeDef = Abc_NtkReadDefaultOutputLoad( pNtk ); if ( pTimeDef->Rise != 0.0 || pTimeDef->Fall != 0.0 ) fprintf( pFile, ".default_output_load %g %g\n", pTimeDef->Rise, pTimeDef->Fall ); - Abc_NtkForEachPo( pNtk, pNode, i ) - { - pTime = Abc_NodeReadOutputLoad( pNtk, i ); - if ( pTime->Rise == pTimeDef->Rise && pTime->Fall == pTimeDef->Fall ) - continue; - fprintf( pFile, ".output_load %s %g %g\n", Abc_ObjName(Abc_ObjFanin0(pNode)), pTime->Rise, pTime->Fall ); - } + if ( Abc_NodeReadOutputLoad( pNtk, 0 ) ) + Abc_NtkForEachPo( pNtk, pNode, i ) + { + pTime = Abc_NodeReadOutputLoad( pNtk, i ); + if ( pTime->Rise == pTimeDef->Rise && pTime->Fall == pTimeDef->Fall ) + continue; + fprintf( pFile, ".output_load %s %g %g\n", Abc_ObjName(Abc_ObjFanin0(pNode)), pTime->Rise, pTime->Fall ); + } fprintf( pFile, "\n" ); } |