From fcdd9148b456e7efec1db8b4cf81adbb305401d7 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 12 Jun 2014 21:27:14 -0700 Subject: Various modifications. --- src/map/if/ifMap.c | 8 +++++--- src/map/if/ifReduce.c | 7 +++++-- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'src/map/if') diff --git a/src/map/if/ifMap.c b/src/map/if/ifMap.c index c368cbf9..9f709411 100644 --- a/src/map/if/ifMap.c +++ b/src/map/if/ifMap.c @@ -500,9 +500,11 @@ int If_ManPerformMappingRound( If_Man_t * p, int nCutsUsed, int Mode, int fPrepr if ( p->pPars->fVerbose ) { char Symb = fPreprocess? 'P' : ((Mode == 0)? 'D' : ((Mode == 1)? 'F' : 'A')); - Abc_Print( 1, "%c: Del = %7.2f. Ar = %9.1f. Edge = %8d. Switch = %7.2f. Cut = %8d. ", - Symb, p->RequiredGlo, p->AreaGlo, p->nNets, p->dPower, p->nCutsMerged ); -// printf( "Cut0 =%4d. Cut1 =%4d. ", p->nBestCutSmall[0], p->nBestCutSmall[1] ); + Abc_Print( 1, "%c: Del = %7.2f. Ar = %9.1f. Edge = %8d. ", + Symb, p->RequiredGlo, p->AreaGlo, p->nNets ); + if ( p->dPower ) + Abc_Print( 1, "Switch = %7.2f. ", p->dPower ); + Abc_Print( 1, "Cut = %8d. ", p->nCutsMerged ); Abc_PrintTime( 1, "T", Abc_Clock() - clk ); // Abc_Print( 1, "Max number of cuts = %d. Average number of cuts = %5.2f.\n", // p->nCutsMax, 1.0 * p->nCutsMerged / If_ManAndNum(p) ); diff --git a/src/map/if/ifReduce.c b/src/map/if/ifReduce.c index fec999cb..d50bc40c 100644 --- a/src/map/if/ifReduce.c +++ b/src/map/if/ifReduce.c @@ -57,8 +57,11 @@ void If_ManImproveMapping( If_Man_t * p ) If_ManComputeRequired( p ); if ( p->pPars->fVerbose ) { - Abc_Print( 1, "E: Del = %7.2f. Ar = %9.1f. Edge = %8d. Switch = %7.2f. Cut = %8d. ", - p->RequiredGlo, p->AreaGlo, p->nNets, p->dPower, p->nCutsMerged ); + Abc_Print( 1, "E: Del = %7.2f. Ar = %9.1f. Edge = %8d. ", + p->RequiredGlo, p->AreaGlo, p->nNets ); + if ( p->dPower ) + Abc_Print( 1, "Switch = %7.2f. ", p->dPower ); + Abc_Print( 1, "Cut = %8d. ", p->nCutsMerged ); Abc_PrintTime( 1, "T", Abc_Clock() - clk ); } } -- cgit v1.2.3