mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-07 03:05:36 +02:00
Replacing Mb/Gb to be MB/GB.
This commit is contained in:
@@ -335,7 +335,7 @@ void Amap_ManCreate( Amap_Man_t * p, Aig_Man_t * pAig )
|
||||
if ( p->pPars->fVerbose )
|
||||
{
|
||||
if ( 1.0 * Aig_ManObjNum(pAig) * sizeof(Amap_Obj_t) / (1<<30) > 0.1 )
|
||||
printf( "Warning: Mapper allocates %.3f Gb for subject graph with %d objects.\n",
|
||||
printf( "Warning: Mapper allocates %.3f GB for subject graph with %d objects.\n",
|
||||
1.0 * Aig_ManObjNum(pAig) * sizeof(Amap_Obj_t) / (1<<30), Aig_ManObjNum(pAig) );
|
||||
}
|
||||
// create PIs and remember them in the old nodes
|
||||
|
||||
@@ -913,7 +913,7 @@ int Amap_LibertyParse( char * pFileName, char * pFileGenlib, int fVerbose )
|
||||
}
|
||||
if ( fVerbose )
|
||||
{
|
||||
printf( "Memory = %7.2f Mb. ", 1.0*(p->nContents+p->nItermAlloc*sizeof(Amap_Item_t))/(1<<20) );
|
||||
printf( "Memory = %7.2f MB. ", 1.0*(p->nContents+p->nItermAlloc*sizeof(Amap_Item_t))/(1<<20) );
|
||||
ABC_PRT( "Time", clock() - clk );
|
||||
}
|
||||
Amap_LibertyStop( p );
|
||||
|
||||
@@ -522,7 +522,7 @@ void Amap_ManMerge( Amap_Man_t * p )
|
||||
if ( p->pPars->fVerbose )
|
||||
{
|
||||
printf( "AIG object is %d bytes. ", (int)sizeof(Amap_Obj_t) );
|
||||
printf( "Internal AIG = %5.2f Mb. Cuts = %5.2f Mb.\n",
|
||||
printf( "Internal AIG = %5.2f MB. Cuts = %5.2f MB.\n",
|
||||
1.0*Amap_ManObjNum(p)*sizeof(Amap_Obj_t)/(1<<20), 1.0*p->nBytesUsed/(1<<20) );
|
||||
printf( "Node =%6d. Try =%9d. Try3 =%10d. Used =%7d. R =%6.2f. ",
|
||||
Amap_ManNodeNum(p), p->nCutsTried, p->nCutsTried3, p->nCutsUsed,
|
||||
|
||||
+1
-1
@@ -131,7 +131,7 @@ int If_ManPerformMappingComb( If_Man_t * p )
|
||||
|
||||
if ( p->pPars->fVerbose )
|
||||
{
|
||||
// Abc_Print( 1, "Total memory = %7.2f Mb. Peak cut memory = %7.2f Mb. ",
|
||||
// Abc_Print( 1, "Total memory = %7.2f MB. Peak cut memory = %7.2f MB. ",
|
||||
// 1.0 * (p->nObjBytes + 2*sizeof(void *)) * If_ManObjNum(p) / (1<<20),
|
||||
// 1.0 * p->nSetBytes * Mem_FixedReadMaxEntriesUsed(p->pMemSet) / (1<<20) );
|
||||
Abc_PrintTime( 1, "Total time", clock() - clkTotal );
|
||||
|
||||
@@ -31,7 +31,7 @@ ABC_NAMESPACE_IMPL_START
|
||||
|
||||
#define CLU_VAR_MAX 16
|
||||
#define CLU_WRD_MAX (1 << ((CLU_VAR_MAX)-6))
|
||||
#define CLU_MEM_MAX 1000 // 1 Gb
|
||||
#define CLU_MEM_MAX 1000 // 1 GB
|
||||
#define CLU_UNUSED 0xff
|
||||
|
||||
// decomposition
|
||||
|
||||
+1
-1
@@ -604,7 +604,7 @@ void If_ManSetupSetAll( If_Man_t * p, int nCrossCut )
|
||||
|
||||
if ( p->pPars->fVerbose )
|
||||
{
|
||||
Abc_Print( 1, "Node = %7d. Ch = %5d. Total mem = %7.2f Mb. Peak cut mem = %7.2f Mb.\n",
|
||||
Abc_Print( 1, "Node = %7d. Ch = %5d. Total mem = %7.2f MB. Peak cut mem = %7.2f MB.\n",
|
||||
If_ManAndNum(p), p->nChoices,
|
||||
1.0 * (p->nObjBytes + 2*sizeof(void *)) * If_ManObjNum(p) / (1<<20),
|
||||
1.0 * p->nSetBytes * nCrossCut / (1<<20) );
|
||||
|
||||
@@ -499,7 +499,7 @@ ABC_PRT( "Sorting", clock() - clk );
|
||||
fclose( pFile );
|
||||
|
||||
printf( "The supergates are written into file \"%s\" ", FileName );
|
||||
printf( "(%0.2f Mb).\n", ((double)Extra_FileSize(FileName))/(1<<20) );
|
||||
printf( "(%0.2f MB).\n", ((double)Extra_FileSize(FileName))/(1<<20) );
|
||||
}
|
||||
|
||||
/**Function*************************************************************
|
||||
|
||||
@@ -1186,7 +1186,7 @@ void Super_WriteLibrary( Super_Man_t * pMan )
|
||||
if ( pMan->fVerbose )
|
||||
{
|
||||
printf( "The supergates are written using old format \"%s\" ", FileName );
|
||||
printf( "(%0.3f Mb).\n", ((double)Extra_FileSize(FileName))/(1<<20) );
|
||||
printf( "(%0.3f MB).\n", ((double)Extra_FileSize(FileName))/(1<<20) );
|
||||
}
|
||||
|
||||
ABC_FREE( FileName );
|
||||
@@ -1324,7 +1324,7 @@ void Super_WriteLibraryTree( Super_Man_t * pMan )
|
||||
if ( pMan->fVerbose )
|
||||
{
|
||||
printf( "The supergates are written using new format \"%s\" ", FileName );
|
||||
printf( "(%0.3f Mb).\n", ((double)Extra_FileSize(FileName))/(1<<20) );
|
||||
printf( "(%0.3f MB).\n", ((double)Extra_FileSize(FileName))/(1<<20) );
|
||||
}
|
||||
|
||||
ABC_FREE( FileName );
|
||||
|
||||
Reference in New Issue
Block a user