mirror of https://github.com/YosysHQ/abc.git
Several minor changes.
This commit is contained in:
parent
9621ae946e
commit
201cb24596
|
|
@ -1288,7 +1288,7 @@ int Ga2_GlaAbsCount( Ga2_Man_t * p, int fRo, int fAnd )
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
void Ga2_ManAbsPrintFrame( Ga2_Man_t * p, int nFrames, int nConfls, int nCexes, clock_t Time, int fFinal )
|
void Ga2_ManAbsPrintFrame( Ga2_Man_t * p, int nFrames, int nConfls, int nCexes, clock_t Time, int fFinal )
|
||||||
{
|
{
|
||||||
if ( Abc_FrameIsBatchMode() && !fFinal )
|
if ( Abc_FrameIsBatchMode() && !(((fFinal && nCexes) || p->pPars->fVeryVerbose)) )
|
||||||
return;
|
return;
|
||||||
Abc_Print( 1, "%4d :", nFrames );
|
Abc_Print( 1, "%4d :", nFrames );
|
||||||
Abc_Print( 1, "%4d", Abc_MinInt(100, 100 * Vec_IntSize(p->vAbs) / p->nMarked) );
|
Abc_Print( 1, "%4d", Abc_MinInt(100, 100 * Vec_IntSize(p->vAbs) / p->nMarked) );
|
||||||
|
|
|
||||||
|
|
@ -154,9 +154,9 @@ void Abc_SclComputeLoad( SC_Man * p )
|
||||||
pLoad->rise += Vec_FltEntry(vWireCaps, k);
|
pLoad->rise += Vec_FltEntry(vWireCaps, k);
|
||||||
pLoad->fall += Vec_FltEntry(vWireCaps, k);
|
pLoad->fall += Vec_FltEntry(vWireCaps, k);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Vec_FltFree( vWireCaps );
|
Vec_FltFree( vWireCaps );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
void Abc_SclUpdateLoad( SC_Man * p, Abc_Obj_t * pObj, SC_Cell * pOld, SC_Cell * pNew )
|
void Abc_SclUpdateLoad( SC_Man * p, Abc_Obj_t * pObj, SC_Cell * pOld, SC_Cell * pNew )
|
||||||
{
|
{
|
||||||
Abc_Obj_t * pFanin;
|
Abc_Obj_t * pFanin;
|
||||||
|
|
|
||||||
|
|
@ -684,6 +684,47 @@ void Extra_FileSort( char * pFileName, char * pFileNameOut )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**Function*************************************************************
|
||||||
|
|
||||||
|
Synopsis [Appends line number in the end.]
|
||||||
|
|
||||||
|
Description []
|
||||||
|
|
||||||
|
SideEffects []
|
||||||
|
|
||||||
|
SeeAlso []
|
||||||
|
|
||||||
|
***********************************************************************/
|
||||||
|
void Extra_FileLineNumAdd( char * pFileName, char * pFileNameOut )
|
||||||
|
{
|
||||||
|
char Buffer[1000];
|
||||||
|
FILE * pFile;
|
||||||
|
FILE * pFile2;
|
||||||
|
int iLine;
|
||||||
|
pFile = fopen( pFileName, "rb" );
|
||||||
|
if ( pFile == NULL )
|
||||||
|
{
|
||||||
|
printf( "Extra_FileLineNumAdd(): Cannot open file \"%s\".\n", pFileName );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
pFile2 = fopen( pFileNameOut, "wb" );
|
||||||
|
if ( pFile2 == NULL )
|
||||||
|
{
|
||||||
|
fclose( pFile );
|
||||||
|
printf( "Extra_FileLineNumAdd(): Cannot open file \"%s\".\n", pFileNameOut );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for ( iLine = 0; fgets( Buffer, 1000, pFile ); iLine++ )
|
||||||
|
{
|
||||||
|
sprintf( Buffer + strlen(Buffer) - 2, "%03d\n%c", iLine, 0 );
|
||||||
|
fputs( Buffer, pFile2 );
|
||||||
|
}
|
||||||
|
fclose( pFile );
|
||||||
|
fclose( pFile2 );
|
||||||
|
// report the result
|
||||||
|
printf( "The resulting file is \"%s\".\n", pFileNameOut );
|
||||||
|
}
|
||||||
|
|
||||||
/**Function*************************************************************
|
/**Function*************************************************************
|
||||||
|
|
||||||
Synopsis []
|
Synopsis []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue