From 8410daf3e49f142dc94587d77680d7cdcfe06b5a Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 4 Feb 2015 16:29:55 -0800 Subject: Improvements and tuning of CBA with buffering/sizing. --- src/base/io/ioWriteBlif.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/base/io/ioWriteBlif.c') 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 { -- cgit v1.2.3