Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 11 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* $Id: cmdutil.h,v 1.1.1.1 2003/11/04 23:34:56 mjames Exp $ |
1 | /* $Id: cmdutil.h,v 1.1.1.1 2003/11/04 23:34:56 mjames Exp $ |
2 | 2 | ||
3 | $Log: cmdutil.h,v $ |
3 | $Log: cmdutil.h,v $ |
4 | Revision 1.1.1.1 2003/11/04 23:34:56 mjames |
4 | Revision 1.1.1.1 2003/11/04 23:34:56 mjames |
5 | Imported into local repositrory |
5 | Imported into local repositrory |
6 | 6 | ||
Line 28... | Line 28... | ||
28 | Mike put it here |
28 | Mike put it here |
29 | 29 | ||
30 | 30 | ||
31 | * Revision 1.29 2000/10/04 10:37:12 10:37:12 mjames (Mike James) |
31 | * Revision 1.29 2000/10/04 10:37:12 10:37:12 mjames (Mike James) |
32 | * COnversion to Vertical2, supports signals and components |
32 | * COnversion to Vertical2, supports signals and components |
33 | * |
33 | * |
34 | * Revision 1.29 2000/10/04 10:37:12 10:37:12 mjames (Mike James) |
34 | * Revision 1.29 2000/10/04 10:37:12 10:37:12 mjames (Mike James) |
35 | * Part of Release PSAVAT01 |
35 | * Part of Release PSAVAT01 |
36 | * |
36 | * |
37 | * Revision 1.28 2000/10/02 11:04:10 11:04:10 mjames (Mike James) |
37 | * Revision 1.28 2000/10/02 11:04:10 11:04:10 mjames (Mike James) |
38 | * new_vhdl |
38 | * new_vhdl |
39 | * |
39 | * |
40 | 40 | ||
41 | * Revision 1.27 2000/09/27 14:42:26 14:42:26 mjames (Mike James) |
41 | * Revision 1.27 2000/09/27 14:42:26 14:42:26 mjames (Mike James) |
42 | 42 | ||
43 | * Part of Release Sep_27_ST_2000 |
43 | * Part of Release Sep_27_ST_2000 |
44 | 44 | ||
45 | * |
45 | * |
46 | 46 | ||
47 | * Revision 1.26 2000/09/21 10:15:56 10:15:56 mjames (Mike James) |
47 | * Revision 1.26 2000/09/21 10:15:56 10:15:56 mjames (Mike James) |
48 | 48 | ||
49 | * Part of Release Sep21Alpha |
49 | * Part of Release Sep21Alpha |
50 | 50 | ||
51 | * |
51 | * |
52 | 52 | ||
53 | * Revision 1.25 2000/08/25 09:57:21 09:57:21 mjames (Mike James) |
53 | * Revision 1.25 2000/08/25 09:57:21 09:57:21 mjames (Mike James) |
54 | 54 | ||
55 | * Part of Release Aug25_alpha |
55 | * Part of Release Aug25_alpha |
56 | 56 | ||
57 | * |
57 | * |
58 | 58 | ||
59 | * Revision 1.24 2000/08/16 08:57:37 08:57:37 mjames (Mike James) |
59 | * Revision 1.24 2000/08/16 08:57:37 08:57:37 mjames (Mike James) |
60 | 60 | ||
61 | * Part of Release CD01_Aug2000 |
61 | * Part of Release CD01_Aug2000 |
62 | 62 | ||
63 | * |
63 | * |
64 | 64 | ||
65 | * Revision 1.23 2000/08/14 14:45:17 14:45:17 mjames (Mike James) |
65 | * Revision 1.23 2000/08/14 14:45:17 14:45:17 mjames (Mike James) |
66 | 66 | ||
67 | * Part of Release Aug_14_2000 |
67 | * Part of Release Aug_14_2000 |
68 | 68 | ||
69 | * |
69 | * |
70 | 70 | ||
71 | * Revision 1.22 2000/08/11 08:30:37 08:30:37 mjames (Mike James) |
71 | * Revision 1.22 2000/08/11 08:30:37 08:30:37 mjames (Mike James) |
72 | 72 | ||
73 | * Part of Release Aug_11_2000 |
73 | * Part of Release Aug_11_2000 |
74 | 74 | ||
75 | * |
75 | * |
76 | 76 | ||
77 | * Revision 1.21 2000/08/09 10:31:54 10:31:54 mjames (Mike James) |
77 | * Revision 1.21 2000/08/09 10:31:54 10:31:54 mjames (Mike James) |
78 | 78 | ||
79 | * Part of Release Aug__9_2000 |
79 | * Part of Release Aug__9_2000 |
80 | 80 | ||
81 | * |
81 | * |
82 | 82 | ||
83 | * Revision 1.20 2000/05/31 11:43:06 11:43:06 mjames (Mike James) |
83 | * Revision 1.20 2000/05/31 11:43:06 11:43:06 mjames (Mike James) |
84 | 84 | ||
85 | * Part of Release May_31_2000 |
85 | * Part of Release May_31_2000 |
86 | 86 | ||
87 | * |
87 | * |
88 | 88 | ||
89 | * Revision 1.19 2000/05/08 17:01:44 17:01:44 mjames (Mike James) |
89 | * Revision 1.19 2000/05/08 17:01:44 17:01:44 mjames (Mike James) |
90 | 90 | ||
91 | * Part of Release May__8_2000 |
91 | * Part of Release May__8_2000 |
92 | 92 | ||
93 | * |
93 | * |
94 | 94 | ||
95 | * Revision 1.18 2000/05/08 16:59:37 16:59:37 mjames (Mike James) |
95 | * Revision 1.18 2000/05/08 16:59:37 16:59:37 mjames (Mike James) |
96 | 96 | ||
97 | * Part of Release May__8_2000 |
97 | * Part of Release May__8_2000 |
98 | 98 | ||
99 | * |
99 | * |
100 | 100 | ||
101 | * Revision 1.17 2000/05/08 16:57:13 16:57:13 mjames (Mike James) |
101 | * Revision 1.17 2000/05/08 16:57:13 16:57:13 mjames (Mike James) |
102 | 102 | ||
103 | * Part of Release May__8_2000 |
103 | * Part of Release May__8_2000 |
104 | 104 | ||
105 | * |
105 | * |
106 | 106 | ||
107 | * Revision 1.16 2000/03/08 16:18:45 16:18:45 mjames (Mike James) |
107 | * Revision 1.16 2000/03/08 16:18:45 16:18:45 mjames (Mike James) |
108 | 108 | ||
109 | * New version including PC |
109 | * New version including PC |
110 | 110 | ||
111 | * |
111 | * |
112 | 112 | ||
113 | * Revision 1.13 2000/01/20 15:58:54 15:58:54 mjames (Mike James) |
113 | * Revision 1.13 2000/01/20 15:58:54 15:58:54 mjames (Mike James) |
114 | 114 | ||
115 | * Part of Release R22 |
115 | * Part of Release R22 |
116 | 116 | ||
117 | * |
117 | * |
118 | 118 | ||
119 | * Revision 1.12 99/12/22 11:15:35 11:15:35 mjames (Mike James) |
119 | * Revision 1.12 99/12/22 11:15:35 11:15:35 mjames (Mike James) |
120 | 120 | ||
121 | * Part of Release Dec_22_1999 |
121 | * Part of Release Dec_22_1999 |
122 | 122 | ||
123 | * |
123 | * |
124 | 124 | ||
125 | * Revision 1.11 98/02/11 11:25:50 11:25:50 mjames (Mike James) |
125 | * Revision 1.11 98/02/11 11:25:50 11:25:50 mjames (Mike James) |
126 | 126 | ||
127 | * Checked in for version 6.2a |
127 | * Checked in for version 6.2a |
128 | 128 | ||
129 | * |
129 | * |
130 | 130 | ||
131 | * Revision 1.10 97/04/23 08:44:06 08:44:06 mjames (Mike James) |
131 | * Revision 1.10 97/04/23 08:44:06 08:44:06 mjames (Mike James) |
132 | 132 | ||
133 | * CHecked in for release rel23041997 |
133 | * CHecked in for release rel23041997 |
134 | 134 | ||
135 | * |
135 | * |
136 | 136 | ||
137 | * Revision 1.9 96/07/19 14:39:02 14:39:02 mjames (Mike James) |
137 | * Revision 1.9 96/07/19 14:39:02 14:39:02 mjames (Mike James) |
138 | 138 | ||
139 | * Update to give to PRL |
139 | * Update to give to PRL |
140 | 140 | ||
141 | * |
141 | * |
142 | 142 | ||
143 | * Revision 1.8 1996/07/12 15:52:12 mjames |
143 | * Revision 1.8 1996/07/12 15:52:12 mjames |
144 | 144 | ||
145 | * Sorted out things like Alias and Jumpers |
145 | * Sorted out things like Alias and Jumpers |
146 | 146 | ||
Line 152... | Line 152... | ||
152 | 152 | ||
153 | * Revision 1.7 96/03/29 14:46:47 14:46:47 mjames (Mike James) |
153 | * Revision 1.7 96/03/29 14:46:47 14:46:47 mjames (Mike James) |
154 | 154 | ||
155 | * Added VHDL netlist writing to the capabilities of ACFREAD |
155 | * Added VHDL netlist writing to the capabilities of ACFREAD |
156 | 156 | ||
157 | * |
157 | * |
158 | 158 | ||
159 | * Revision 1.6 96/03/18 13:51:11 13:51:11 mjames (Mike James) |
159 | * Revision 1.6 96/03/18 13:51:11 13:51:11 mjames (Mike James) |
160 | 160 | ||
161 | * Real Revision 2.1 |
161 | * Real Revision 2.1 |
162 | 162 | ||
163 | * |
163 | * |
164 | 164 | ||
165 | * Revision 1.4 96/02/13 09:13:42 09:13:42 mjames (Mike James) |
165 | * Revision 1.4 96/02/13 09:13:42 09:13:42 mjames (Mike James) |
166 | 166 | ||
167 | * Updated to be version 2.0 with net joining |
167 | * Updated to be version 2.0 with net joining |
168 | 168 | ||
169 | * |
169 | * |
170 | 170 | ||
171 | * Revision 1.3 96/02/08 15:28:43 15:28:43 mjames (Mike James) |
171 | * Revision 1.3 96/02/08 15:28:43 15:28:43 mjames (Mike James) |
172 | 172 | ||
173 | * First release |
173 | * First release |
174 | 174 | ||
175 | * |
175 | * |
176 | 176 | ||
177 | * Revision 1.2 96/02/07 16:01:43 16:01:43 mjames (Mike James) |
177 | * Revision 1.2 96/02/07 16:01:43 16:01:43 mjames (Mike James) |
178 | 178 | ||
179 | * Added correct RCS header |
179 | * Added correct RCS header |
180 | 180 | ||
181 | * |
181 | * |
182 | 182 | ||
183 | * Revision 1.1 96/02/07 15:51:27 15:51:27 mjames (Mike James) |
183 | * Revision 1.1 96/02/07 15:51:27 15:51:27 mjames (Mike James) |
184 | 184 | ||
185 | * Initial revision |
185 | * Initial revision |
186 | 186 | ||
187 | * */ |
187 | * */ |
188 | 188 | ||
189 | #define PATHDEPTH 10 |
189 | #define PATHDEPTH 10 |
- | 190 | ||
- | 191 | ||
- | 192 | ||
- | 193 | ||
- | 194 | ||
- | 195 | #define BIT0 1 |
|
190 | 196 | ||
191 | #define BIT0 1 |
197 | #define BIT1 2 |
192 | 198 | ||
193 | #define BIT1 2 |
199 | #define BIT2 4 |
194 | 200 | ||
195 | #define BIT2 4 |
201 | #define BIT3 8 |
196 | 202 | ||
197 | #define BIT3 8 |
203 | #define BIT4 16 |
198 | 204 | ||
199 | #define BIT4 16 |
205 | #define BIT5 32 |
200 | 206 | ||
201 | #define BIT5 32 |
207 | #define BIT6 64 |
202 | 208 | ||
203 | #define BIT6 64 |
209 | #define BIT7 128 |
204 | 210 | ||
205 | #define BIT7 128 |
- | |
206 | 211 | ||
207 | #define TwoTo0 (1L << 0) |
- | |
208 | 212 | ||
209 | #define TwoTo1 (1L << 1) |
213 | #define TwoTo0 (1L<<0) |
210 | 214 | ||
211 | #define TwoTo2 (1L << 2) |
215 | #define TwoTo1 (1L<<1) |
212 | 216 | ||
213 | #define TwoTo3 (1L << 3) |
217 | #define TwoTo2 (1L<<2) |
214 | 218 | ||
215 | #define TwoTo4 (1L << 4) |
219 | #define TwoTo3 (1L<<3) |
216 | 220 | ||
217 | #define TwoTo5 (1L << 5) |
221 | #define TwoTo4 (1L<<4) |
218 | 222 | ||
219 | #define TwoTo6 (1L << 6) |
223 | #define TwoTo5 (1L<<5) |
220 | 224 | ||
221 | #define TwoTo7 (1L << 7) |
225 | #define TwoTo6 (1L<<6) |
222 | 226 | ||
223 | #define TwoTo8 (1L << 8) |
227 | #define TwoTo7 (1L<<7) |
224 | 228 | ||
225 | #define TwoTo14 (1L << 14) |
229 | #define TwoTo8 (1L<<8) |
226 | 230 | ||
227 | #define TwoTo16 (1L << 16) |
231 | #define TwoTo14 (1L<<14) |
228 | 232 | ||
- | 233 | #define TwoTo16 (1L<<16) |
|
- | 234 | ||
229 | #define TwoTo17 (1L << 17) |
235 | #define TwoTo17 (1L<<17) |
- | 236 | ||
- | 237 | #define TwoTo20 (1L<<20) |
|
- | 238 | ||
- | 239 | #define TwoTo24 (1L<<24) |
|
230 | 240 | ||
231 | #define TwoTo20 (1L << 20) |
- | |
232 | 241 | ||
233 | #define TwoTo24 (1L << 24) |
- | |
234 | 242 | ||
235 | /* Pseudo functions */ |
243 | /* Pseudo functions */ |
236 | 244 | ||
237 | #define SetBit(a, b) a |= (1 << (b)) |
245 | #define SetBit(a,b) a|=(1<<(b)) |
- | 246 | ||
- | 247 | #define ClearBit(a,b) a&=(~(1<<(b))) |
|
- | 248 | ||
- | 249 | ||
- | 250 | ||
- | 251 | ||
- | 252 | ||
- | 253 | extern FILE * trap_fopen(char * name, char * mode); |
|
238 | 254 | ||
239 | #define ClearBit(a, b) a &= (~(1 << (b))) |
- | |
240 | 255 | ||
241 | extern FILE *trap_fopen (char *name, char *mode); |
256 | extern int ConvertToDecimal (char * input, long * Output); |
242 | 257 | ||
243 | extern int ConvertToDecimal (char *input, long *Output); |
258 | extern int ReadInt (struct CommandStruct * CmdPtr, |
244 | 259 | ||
245 | extern int ReadInt ( |
- | |
246 | struct CommandStruct *CmdPtr, |
260 | int bits, long * Output); |
247 | 261 | ||
248 | int bits, |
- | |
249 | long *Output); |
262 | extern int ReadWord (struct CommandStruct * CmdPtr, |
250 | 263 | ||
251 | extern int ReadWord ( |
- | |
252 | struct CommandStruct *CmdPtr, |
264 | char * * Output); |
253 | 265 | ||
254 | char **Output); |
266 | extern void set_debug_level(int lev); |
255 | 267 | ||
256 | extern void set_debug_level (int lev); |
- |