Commit 8e72ac36 by Alan Mishchenko

Outputting the constant node in 'write_gml'.

parent b7176ee3
...@@ -61,6 +61,18 @@ void Io_WriteGml( Abc_Ntk_t * pNtk, char * pFileName ) ...@@ -61,6 +61,18 @@ void Io_WriteGml( Abc_Ntk_t * pNtk, char * pFileName )
fprintf( pFile, "# GML for \"%s\" written by ABC on %s\n", pNtk->pName, Extra_TimeStamp() ); fprintf( pFile, "# GML for \"%s\" written by ABC on %s\n", pNtk->pName, Extra_TimeStamp() );
fprintf( pFile, "graph [\n" ); fprintf( pFile, "graph [\n" );
// output constant node in the AIG if it has fanouts
if ( Abc_NtkIsStrash(pNtk) )
{
pObj = Abc_AigConst1( pNtk );
if ( Abc_ObjFanoutNum(pObj) > 0 )
{
fprintf( pFile, "\n" );
fprintf( pFile, " node [ id %5d label \"%s\"\n", pObj->Id, Abc_ObjName(pObj) );
fprintf( pFile, " graphics [ type \"ellipse\" fill \"#CCCCFF\" ]\n" ); // grey
fprintf( pFile, " ]\n" );
}
}
// output the POs // output the POs
fprintf( pFile, "\n" ); fprintf( pFile, "\n" );
Abc_NtkForEachPo( pNtk, pObj, i ) Abc_NtkForEachPo( pNtk, pObj, i )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment