Commit e5fb4fe5 by Alan Mishchenko

Added writing signal names in AIGER writer for GIA package.

parent e6f87447
...@@ -887,6 +887,22 @@ void Gia_WriteAiger( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int ...@@ -887,6 +887,22 @@ void Gia_WriteAiger( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
fwrite( pBuffer, 1, Pos, pFile ); fwrite( pBuffer, 1, Pos, pFile );
ABC_FREE( pBuffer ); ABC_FREE( pBuffer );
// write the symbol table
if ( p->vNamesIn && p->vNamesOut )
{
assert( Vec_PtrSize(p->vNamesIn) == Gia_ManCiNum(p) );
assert( Vec_PtrSize(p->vNamesOut) == Gia_ManCoNum(p) );
// write PIs
Gia_ManForEachPi( p, pObj, i )
fprintf( pFile, "i%d %s\n", i, Vec_PtrEntry(p->vNamesIn, i) );
// write latches
Gia_ManForEachRo( p, pObj, i )
fprintf( pFile, "l%d %s\n", i, Vec_PtrEntry(p->vNamesIn, Gia_ManPiNum(p) + i) );
// write POs
Gia_ManForEachPo( p, pObj, i )
fprintf( pFile, "o%d %s\n", i, Vec_PtrEntry(p->vNamesOut, i) );
}
// write the comment // write the comment
fprintf( pFile, "c" ); fprintf( pFile, "c" );
// write equivalences // write equivalences
......
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