summaryrefslogtreecommitdiffstats
path: root/src/map/if/if.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-05-03 19:54:40 +0800
committerAlan Mishchenko <alanmi@berkeley.edu>2012-05-03 19:54:40 +0800
commitd4399dbf929b9c273b187580566ab41ac9ab955d (patch)
tree4720163b34746ec5db528c5521c22e32784d16cf /src/map/if/if.h
parent32b07625464c92dcb32e2d5c40134ada0497d717 (diff)
downloadabc-d4399dbf929b9c273b187580566ab41ac9ab955d.tar.gz
abc-d4399dbf929b9c273b187580566ab41ac9ab955d.tar.bz2
abc-d4399dbf929b9c273b187580566ab41ac9ab955d.zip
Misc changes.
Diffstat (limited to 'src/map/if/if.h')
-rw-r--r--src/map/if/if.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/if/if.h b/src/map/if/if.h
index ec1dedfa..8c1ab975 100644
--- a/src/map/if/if.h
+++ b/src/map/if/if.h
@@ -352,12 +352,14 @@ static inline int If_CutTruthWords( int nVarsMax ) { r
static inline int If_CutPermWords( int nVarsMax ) { return nVarsMax / sizeof(int) + ((nVarsMax % sizeof(int)) > 0); }
static inline float If_CutLutArea( If_Man_t * p, If_Cut_t * pCut ) { return pCut->fUser? (float)pCut->Cost : (p->pPars->pLutLib? p->pPars->pLutLib->pLutAreas[pCut->nLeaves] : (float)1.0); }
+static inline float If_CutLutDelay( If_Lib_t * p, int Size, int iPin ) { return p ? (p->fVarPinDelays ? p->pLutDelays[Size][iPin] : p->pLutDelays[Size][0]) : 1.0; }
static inline word If_AndToWrd( If_And_t m ) { union { If_And_t x; word y; } v; v.x = m; return v.y; }
static inline If_And_t If_WrdToAnd( word m ) { union { If_And_t x; word y; } v; v.y = m; return v.x; }
static inline void If_AndClear( If_And_t * pNode ) { *pNode = If_WrdToAnd(0); }
+
////////////////////////////////////////////////////////////////////////
/// MACRO DEFINITIONS ///
////////////////////////////////////////////////////////////////////////