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