summaryrefslogtreecommitdiffstats
path: root/src/map/scl/sclInt.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-07-21 01:01:53 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-07-21 01:01:53 -0700
commit1ed823c67d5ba9681a0d5a52aec576edc9ed2de2 (patch)
tree1fd5e7c8de97f0219b7c6db6d10b23fe8dcbeca6 /src/map/scl/sclInt.h
parentab84c73eb022b145faa040575d0e507e410035de (diff)
downloadabc-1ed823c67d5ba9681a0d5a52aec576edc9ed2de2.tar.gz
abc-1ed823c67d5ba9681a0d5a52aec576edc9ed2de2.tar.bz2
abc-1ed823c67d5ba9681a0d5a52aec576edc9ed2de2.zip
Adding support for input slew and output capacitance to timer and gate-sizer.
Diffstat (limited to 'src/map/scl/sclInt.h')
-rw-r--r--src/map/scl/sclInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/scl/sclInt.h b/src/map/scl/sclInt.h
index 79474def..6aa353da 100644
--- a/src/map/scl/sclInt.h
+++ b/src/map/scl/sclInt.h
@@ -229,6 +229,7 @@ static inline SC_Pin * SC_CellPin( SC_Cell * p, int i ) { return (SC
static inline Vec_Wrd_t * SC_CellFunc( SC_Cell * p ) { return SC_CellPin(p, p->n_inputs)->vFunc; }
static inline double SC_LibCapFf( SC_Lib * p, double cap ) { return cap * p->unit_cap_fst * pow(10.0, 15 - p->unit_cap_snd); }
+static inline double SC_LibCapFromFf( SC_Lib * p, double cap ) { return cap / p->unit_cap_fst / pow(10.0, 15 - p->unit_cap_snd); }
static inline double SC_LibTimePs( SC_Lib * p, double time ) { return time * pow(10.0, 12 - p->unit_time); }
static inline double SC_LibTimeFromPs( SC_Lib * p, double ps ) { return ps / pow(10.0, 12 - p->unit_time); }