Initial version of donated sources by Avertec, 3.4p5.
[tas-yagle.git] / distrib / sources / tas / stm / stm_energy_print.c
1 /****************************************************************************/
2 /* */
3 /* Chaine de CAO & VLSI AVERTEC */
4 /* */
5 /* Produit : STM Version 1.00 */
6 /* Fichier : stm_energy_print.c */
7 /* */
8 /* (c) copyright 2000 AVERTEC */
9 /* Tous droits reserves */
10 /* */
11 /* Auteur(s) : Caroline BLED */
12 /* */
13 /****************************************************************************/
14
15 /****************************************************************************/
16 /* includes */
17 /****************************************************************************/
18
19 #include "stm.h"
20
21 /****************************************************************************/
22 /* functions */
23 /****************************************************************************/
24
25 void stm_energy_print (FILE *f, timing_model *model )
26 {
27 if(( V_INT_TAB[ __AVT_POWER_CALCULATION ].VALUE != 1 )
28 &&( V_INT_TAB[ __AVT_POWER_CALCULATION ].VALUE != 5 ))
29 return ;
30
31 switch (model->ENERGYTYPE) {
32 case STM_ENERGY_TABLE:
33 stm_energy_table_print (f, model->ENERGYMODEL.ETABLE);
34 break;
35 case STM_ENERGY_PARAMS:
36 stm_energy_params_print (f, model->ENERGYMODEL.EPARAMS);
37 break;
38 }
39 }