diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-02-04 16:29:55 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-02-04 16:29:55 -0800 |
commit | 8410daf3e49f142dc94587d77680d7cdcfe06b5a (patch) | |
tree | 1421944373a2581eaef995c392efe2dfd712affb /src/base/io/ioWriteBlif.c | |
parent | eb270018b92d949953cba3017ae6a540260598c1 (diff) | |
download | abc-8410daf3e49f142dc94587d77680d7cdcfe06b5a.tar.gz abc-8410daf3e49f142dc94587d77680d7cdcfe06b5a.tar.bz2 abc-8410daf3e49f142dc94587d77680d7cdcfe06b5a.zip |
Improvements and tuning of CBA with buffering/sizing.
Diffstat (limited to 'src/base/io/ioWriteBlif.c')
-rw-r--r-- | src/base/io/ioWriteBlif.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/base/io/ioWriteBlif.c b/src/base/io/ioWriteBlif.c index 65546c01..88544d9f 100644 --- a/src/base/io/ioWriteBlif.c +++ b/src/base/io/ioWriteBlif.c @@ -615,9 +615,18 @@ int Io_NtkWriteNode( FILE * pFile, Abc_Obj_t * pNode, int Length ) if ( Abc_NtkHasMapping(pNode->pNtk) ) { // write the .gate line - fprintf( pFile, ".gate" ); - RetValue = Io_NtkWriteNodeGate( pFile, pNode, Length ); - fprintf( pFile, "\n" ); + if ( Abc_ObjIsBarBuf(pNode) ) + { + fprintf( pFile, ".barbuf " ); + fprintf( pFile, "%s %s", Abc_ObjName(Abc_ObjFanin0(pNode)), Abc_ObjName(Abc_ObjFanout0(pNode)) ); + fprintf( pFile, "\n" ); + } + else + { + fprintf( pFile, ".gate" ); + RetValue = Io_NtkWriteNodeGate( pFile, pNode, Length ); + fprintf( pFile, "\n" ); + } } else { |