Initial version of donated sources by Avertec, 3.4p5.
[tas-yagle.git] / distrib / sources / mbkspef / spe_lib.h
1 /****************************************************************************/
2 /* */
3 /* Chaine de CAO & VLSI AVERTEC */
4 /* */
5 /* Produit : SPEF Version 1.00 */
6 /* Fichier : spef100.h */
7 /* */
8 /* (c) copyright 2000 AVERTEC */
9 /* Tous droits reserves */
10 /* */
11 /* Auteur(s) : Gilles Augustins */
12 /* */
13 /****************************************************************************/
14
15 //#define SPEF_DEBUG
16
17 #ifndef SPE
18 #define SPE
19
20
21 /* liste des inclusions */
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <math.h>
25 #include <string.h>
26 #include <time.h>
27 #include <sys/types.h>
28 #include <sys/time.h>
29 #include <sys/resource.h>
30 #include <signal.h>
31
32 /* inclusions mbk */
33 #include MUT_H
34 #include MLO_H
35 #include RCN_H
36
37 #define SPEF_NODE_MIN 0x00000002
38 #define SPEF_INDEX 0x00079350
39 #define SPEF_FILE 0x00079351
40 #define SPEF_HEAP 0x00079352
41
42 // zinaps:
43 #define SPEF_CACHE_PTYPE 0x13311331
44
45 /****************************************************************************/
46 /* defines */
47 /****************************************************************************/
48 typedef struct spef_info {
49 char *SPEF;
50 char *VENDOR;
51 char *PROGRAM;
52 char *VERSION;
53 chain_list *DESIGN_FLOW;
54 char DIVIDER;
55 char DELIMITER;
56 char PREFIX_BUS_DELIMITER;
57 char SUFFIX_BUS_DELIMITER;
58 char SPEF_T_UNIT;
59 float SPEF_T_SCALE;
60 char SPEF_CAP_UNIT;
61 float SPEF_CAP_SCALE;
62 char SPEF_RES_UNIT;
63 float SPEF_RES_SCALE;
64 char SPEF_L_UNIT;
65 float SPEF_L_SCALE;
66 } spef_info;
67
68 extern spef_info *SPEF_INFO;
69
70 /****************************************************************************/
71 /* functions */
72 /****************************************************************************/
73 extern void spef_drive(lofig_list *lofig, FILE *f);
74
75
76 extern int spef_error();
77 void parsespef(char *filename);
78 extern int spef_quiet;
79 #endif