From da6838463fedf0821f542dcc3a4451bfe1ca3abd Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Mon, 27 Aug 2012 14:29:32 -0700 Subject: Added features 'map -M ' to control the use of large gates. --- src/map/mio/mioUtils.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'src/map/mio/mioUtils.c') 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 #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 /// -- cgit v1.2.3