From 1ed823c67d5ba9681a0d5a52aec576edc9ed2de2 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 21 Jul 2013 01:01:53 -0700 Subject: Adding support for input slew and output capacitance to timer and gate-sizer. --- src/map/scl/sclInt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/scl/sclInt.h') 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); } -- cgit v1.2.3