diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-08-27 14:29:32 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-08-27 14:29:32 -0700 |
commit | da6838463fedf0821f542dcc3a4451bfe1ca3abd (patch) | |
tree | c05d193c0ba8b43ec590654b72c67fbd9adbde2a /src/map/mio/mioUtils.c | |
parent | 9abe8b66c9f828501fc61564e91968d96c4e7507 (diff) | |
download | abc-da6838463fedf0821f542dcc3a4451bfe1ca3abd.tar.gz abc-da6838463fedf0821f542dcc3a4451bfe1ca3abd.tar.bz2 abc-da6838463fedf0821f542dcc3a4451bfe1ca3abd.zip |
Added features 'map -M <float>' to control the use of large gates.
Diffstat (limited to 'src/map/mio/mioUtils.c')
-rw-r--r-- | src/map/mio/mioUtils.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/map/mio/mioUtils.c b/src/map/mio/mioUtils.c index d7f6c329..c2022186 100644 --- a/src/map/mio/mioUtils.c +++ b/src/map/mio/mioUtils.c @@ -16,6 +16,7 @@ ***********************************************************************/ +#include <math.h> #include "mioInt.h" #include "base/main/main.h" #include "exp.h" @@ -591,7 +592,7 @@ Mio_Gate_t * Mio_GateCreatePseudo( int nInputs ) SeeAlso [] ***********************************************************************/ -void Mio_LibraryShift( Mio_Library_t * pLib, double Shift ) +void Mio_LibraryShiftDelay( Mio_Library_t * pLib, double Shift ) { Mio_Gate_t * pGate; Mio_Pin_t * pPin; @@ -607,6 +608,28 @@ void Mio_LibraryShift( Mio_Library_t * pLib, double Shift ) } } +/**Function************************************************************* + + Synopsis [Multiply areas of all gates by values proportional to fanin count.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +void Mio_LibraryShiftArea( Mio_Library_t * pLib, double Shift ) +{ + Mio_Gate_t * pGate; + Mio_LibraryForEachGate( pLib, pGate ) + { +// printf( "Before %8.3f ", pGate->dArea ); + pGate->dArea *= pow( pGate->nInputs, Shift ); +// printf( "After %8.3f Inputs = %d. Factor = %8.3f\n", pGate->dArea, pGate->nInputs, pow( pGate->nInputs, Shift ) ); + } +} + //////////////////////////////////////////////////////////////////////// /// END OF FILE /// |