diff options
Diffstat (limited to 'src/map/if/ifLib.c')
-rw-r--r-- | src/map/if/ifLib.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/map/if/ifLib.c b/src/map/if/ifLib.c index 2089ca3c..c5353e19 100644 --- a/src/map/if/ifLib.c +++ b/src/map/if/ifLib.c @@ -266,6 +266,38 @@ If_Lib_t * If_SetSimpleLutLib( int nLutSize ) return If_LutLibDup(pLutLib); } +/**Function************************************************************* + + Synopsis [Gets the delay of the fastest pin.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +float If_LutLibFastestPinDelay( If_Lib_t * p ) +{ + return !p? 1.0 : p->pLutDelays[p->LutMax][0]; +} + +/**Function************************************************************* + + Synopsis [Gets the delay of the slowest pin.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +float If_LutLibSlowestPinDelay( If_Lib_t * p ) +{ + return !p? 1.0 : (p->fVarPinDelays? p->pLutDelays[p->LutMax][p->LutMax-1]: p->pLutDelays[p->LutMax][0]); +} + //////////////////////////////////////////////////////////////////////// /// END OF FILE /// //////////////////////////////////////////////////////////////////////// |