Initial version of donated sources by Avertec, 3.4p5.
[tas-yagle.git] / distrib / sources / tas / stm / stm_modiv.h
1 /****************************************************************************/
2 /* */
3 /* Chaine de CAO & VLSI AVERTEC */
4 /* */
5 /* Produit : STM Version 1.00 */
6 /* Fichier : stm_modiv.h */
7 /* */
8 /* (c) copyright 2000 AVERTEC */
9 /* Tous droits reserves */
10 /* */
11 /* Auteur(s) : Grégoire Avot */
12 /* */
13 /****************************************************************************/
14
15 #ifndef STM_MODIV_H
16 #define STM_MODIV_H
17 void stm_modiv_setis( timing_iv *iv, int ne, int ns, float is );
18 float stm_modiv_getis( timing_iv *iv, int ne, int ns );
19 extern timing_iv* stm_modiv_create( int nve, int nvs, float vemax, float vsmax, char (*fnct)( void *data, float ve, float vs, float *is ), void *data );
20 timing_iv* stm_modiv_duplicate( timing_iv *orig );
21 timing_iv* stm_modiv_alloc( int nve, int nvs );
22 extern void stm_modiv_destroy( timing_iv *iv );
23
24 extern void stm_modiv_set_cf( timing_iv *iv, float ci, float p0, float p1, float irap );
25
26 extern void stm_modiv_set_in( timing_iv *iv, float vt, float vi, float vf, float vth );
27 float stm_modiv_in_vi( timing_iv *iv );
28 float stm_modiv_in_vf( timing_iv *iv );
29 float stm_modiv_in_vth( timing_iv *iv );
30 float stm_modiv_in_vt( timing_iv *iv );
31
32 extern void stm_modiv_set_ti( timing_iv *iv, float vi );
33 float stm_modiv_ti_vi( timing_iv *iv );
34
35 #endif