summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaAiger.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-02-23 16:08:10 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2013-02-23 16:08:10 -0800
commit7802db98af7705be65f7e58986ed52afc52d4d64 (patch)
tree525963aa8792e1c79ea84e26b703c353101e40c3 /src/aig/gia/giaAiger.c
parent8281b56e9e2a6a9339fb2dc86711aa719055e014 (diff)
downloadabc-7802db98af7705be65f7e58986ed52afc52d4d64.tar.gz
abc-7802db98af7705be65f7e58986ed52afc52d4d64.tar.bz2
abc-7802db98af7705be65f7e58986ed52afc52d4d64.zip
Integrating sweeping information.
Diffstat (limited to 'src/aig/gia/giaAiger.c')
-rw-r--r--src/aig/gia/giaAiger.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/aig/gia/giaAiger.c b/src/aig/gia/giaAiger.c
index fbbaea00..0e9172c8 100644
--- a/src/aig/gia/giaAiger.c
+++ b/src/aig/gia/giaAiger.c
@@ -521,6 +521,13 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fSkipS
if ( fVerbose ) printf( "Finished reading extension \"c\".\n" );
}
// read delay information
+ else if ( *pCur == 'd' )
+ {
+ pCur++;
+ assert( Gia_AigerReadInt(pCur) == 4 ); pCur += 4;
+ pNew->nAnd2Delay = Gia_AigerReadInt(pCur); pCur += 4;
+ if ( fVerbose ) printf( "Finished reading extension \"d\".\n" );
+ }
else if ( *pCur == 'i' )
{
pCur++;
@@ -739,6 +746,8 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fSkipS
return NULL;
}
*/
+
+// pNew->nAnd2Delay = 5;
return pNew;
}
@@ -1092,7 +1101,13 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
Gia_FileWriteBufferSize( pFile, p->nConstrs );
}
*/
- // write gate classes
+ // write timing information
+ if ( p->nAnd2Delay )
+ {
+ fprintf( pFile, "d" );
+ Gia_FileWriteBufferSize( pFile, 4 );
+ Gia_FileWriteBufferSize( pFile, p->nAnd2Delay );
+ }
if ( p->pManTime )
{
Vec_Flt_t * vArrTimes, * vReqTimes;