1 /* Copyright (c) 1991-2004 Pragmatic C Software Corp. */
2 
3 /*
4   This program is free software; you can redistribute it and/or modify it
5   under the terms of the GNU General Public License as published by the
6   Free Software Foundation; either version 2 of the License, or (at your
7   option) any later version.
8 
9   This program is distributed in the hope that it will be useful, but
10   WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   General Public License for more details.
13 
14   You should have received a copy of the GNU General Public License along
15   with this program; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA, 02111-1307.
17 */
18 
19 #define TRUE 1
20 #define FALSE 0
21 #define MAXSIG 256
22 #define MAXSCOPES 100
23 #define MAXTOKSIZE 1024
24 
25 #define EDGE_PER_LINE 11
26 #define CHAR_PER_EDGE 5
27 
28 #define SCALAR 0
29 #define VECTOR 1
30 #define REALSIZE 60
31 
32 /*var types*/
33 #define EVENT 0
34 #define INTEGER 1
35 #define PARAMETER 2
36 #define REAL 3
37 #define REG 4
38 #define SUPPLY0 5
39 #define SUPPLY1 6
40 #define TIME 7
41 #define TRI 8
42 #define TRI0 9
43 #define TRI1 10
44 #define TRIAND 11
45 #define TRIOR 12
46 #define TRIREG 13
47 #define WAND 14
48 #define WIRE 15
49 #define WOR 16
50 #define UNDEFINED 17
51 
52 
53 /*dumpfile key words*/
54 #define V_COMMENT 1
55 #define V_DATE 2
56 #define V_END  3
57 #define V_ENDDEF  4
58 #define V_SCOPE    5
59 #define V_TIMESCALE 6
60 #define V_UPSCOPE  7
61 #define V_VAR    8
62 #define V_VERSION  9
63 
64 #  define MAX(a,b) ((a  > b ) ?  a  :  b )
65 
66 typedef unsigned long long vtime_t;
67 typedef char bool_t;
68 
69 struct variable_types_t {
70          char *vnam;
71          int vnum;
72 };
73 
74 struct signal_t {
75     int size;
76     int type;
77     unsigned int sig_code;
78     char state;
79     char *vector;
80     char *signame;
81     char *ident;
82     bool_t found;
83     bool_t in_both;
84     struct signal_t *next;
85 };
86