otsdaq_prepmodernization  v2_05_02_indev
a_3114533131_1992432545.c
1 /**********************************************************************/
2 /* ____ ____ */
3 /* / /\/ / */
4 /* /___/ \ / */
5 /* \ \ \/ */
6 /* \ \ Copyright (c) 2003-2009 Xilinx, Inc. */
7 /* / / All Right Reserved. */
8 /* /---/ /\ */
9 /* \ \ / \ */
10 /* \___\/\___\ */
11 /***********************************************************************/
12 
13 /* This file is designed for use with ISim build 0x7708f090 */
14 
15 #define XSI_HIDE_SYMBOL_SPEC true
16 #include <memory.h>
17 #include "xsi.h"
18 #ifdef __GNUC__
19 #include <stdlib.h>
20 #else
21 #include <malloc.h>
22 #define alloca _alloca
23 #endif
24 static const char* ng0 =
25  "D:/cbradford/WorkingExampleCollinDebug/GPS_ADC_/GEL_CAPTAN/ipcore_dir/ethernetFIFO/"
26  "simulation/ethernetFIFO_dgen.vhd";
27 extern char* IEEE_P_2592010699;
28 extern char* IEEE_P_0017514958;
29 extern char* IEEE_P_3620187407;
30 
31 unsigned char ieee_p_0017514958_sub_2737647089_1861681735(char*, char*, char*);
32 unsigned char ieee_p_2592010699_sub_1605435078_503743352(char*,
33  unsigned char,
34  unsigned char);
35 unsigned char ieee_p_2592010699_sub_1690584930_503743352(char*, unsigned char);
36 int ieee_p_3620187407_sub_514432868_3965413181(char*, char*, char*);
37 char* ieee_p_3620187407_sub_767668596_3965413181(
38  char*, char*, char*, char*, char*, char*);
39 
40 static void work_a_3114533131_1992432545_p_0(char* t0)
41 {
42  char* t1;
43  char* t2;
44  unsigned char t3;
45  char* t4;
46  char* t5;
47  char* t6;
48  char* t7;
49  char* t8;
50 
51 LAB0:
52  xsi_set_current_line(101, ng0);
53 
54 LAB3:
55  t1 = (t0 + 5576U);
56  t2 = *((char**)t1);
57  t3 = *((unsigned char*)t2);
58  t1 = (t0 + 12072);
59  t4 = (t1 + 56U);
60  t5 = *((char**)t4);
61  t6 = (t5 + 56U);
62  t7 = *((char**)t6);
63  *((unsigned char*)t7) = t3;
64  xsi_driver_first_trans_fast_port(t1);
65 
66 LAB2:
67  t8 = (t0 + 11928);
68  *((int*)t8) = 1;
69 
70 LAB1:
71  return;
72 LAB4:
73  goto LAB2;
74 }
75 
76 static void work_a_3114533131_1992432545_p_1(char* t0)
77 {
78  int64 t1;
79  char* t2;
80  char* t3;
81  char* t4;
82  char* t5;
83  char* t6;
84  char* t7;
85  char* t8;
86  char* t9;
87 
88 LAB0:
89  xsi_set_current_line(102, ng0);
90 
91 LAB3:
92  t1 = (100 * 1000LL);
93  t2 = (t0 + 6536U);
94  t3 = *((char**)t2);
95  t2 = (t0 + 12136);
96  t4 = (t2 + 56U);
97  t5 = *((char**)t4);
98  t6 = (t5 + 56U);
99  t7 = *((char**)t6);
100  memcpy(t7, t3, 32U);
101  xsi_driver_first_trans_delta(t2, 0U, 32U, t1);
102  t8 = (t0 + 12136);
103  xsi_driver_intertial_reject(t8, t1, t1);
104 
105 LAB2:
106  t9 = (t0 + 11944);
107  *((int*)t9) = 1;
108 
109 LAB1:
110  return;
111 LAB4:
112  goto LAB2;
113 }
114 
115 static void work_a_3114533131_1992432545_p_2(char* t0)
116 {
117  char* t1;
118  char* t2;
119  unsigned char t3;
120  char* t4;
121  char* t5;
122  unsigned char t6;
123  unsigned char t7;
124  char* t8;
125  unsigned char t9;
126  unsigned char t10;
127  unsigned char t11;
128  char* t12;
129  char* t13;
130  char* t14;
131  char* t15;
132  char* t16;
133 
134 LAB0:
135  xsi_set_current_line(121, ng0);
136 
137 LAB3:
138  t1 = (t0 + 6696U);
139  t2 = *((char**)t1);
140  t1 = (t0 + 23884U);
141  t3 = ieee_p_0017514958_sub_2737647089_1861681735(IEEE_P_0017514958, t2, t1);
142  t4 = (t0 + 5576U);
143  t5 = *((char**)t4);
144  t6 = *((unsigned char*)t5);
145  t7 = ieee_p_2592010699_sub_1605435078_503743352(IEEE_P_2592010699, t3, t6);
146  t4 = (t0 + 5736U);
147  t8 = *((char**)t4);
148  t9 = *((unsigned char*)t8);
149  t10 = ieee_p_2592010699_sub_1690584930_503743352(IEEE_P_2592010699, t9);
150  t11 = ieee_p_2592010699_sub_1605435078_503743352(IEEE_P_2592010699, t7, t10);
151  t4 = (t0 + 12200);
152  t12 = (t4 + 56U);
153  t13 = *((char**)t12);
154  t14 = (t13 + 56U);
155  t15 = *((char**)t14);
156  *((unsigned char*)t15) = t11;
157  xsi_driver_first_trans_fast(t4);
158 
159 LAB2:
160  t16 = (t0 + 11960);
161  *((int*)t16) = 1;
162 
163 LAB1:
164  return;
165 LAB4:
166  goto LAB2;
167 }
168 
169 static void work_a_3114533131_1992432545_p_3(char* t0)
170 {
171  char* t1;
172  char* t2;
173  char* t3;
174  int t4;
175  int t5;
176  int t6;
177  int t7;
178  unsigned int t8;
179  char* t9;
180  char* t10;
181  int t11;
182  int t12;
183  int t13;
184  int t14;
185  unsigned int t15;
186  unsigned int t16;
187  char* t17;
188  char* t18;
189  char* t19;
190  int t20;
191  int t21;
192  int t22;
193  int t23;
194  char* t24;
195  char* t25;
196  int t26;
197  int t27;
198  int t28;
199  int t29;
200  int t30;
201  unsigned int t31;
202  unsigned int t32;
203  unsigned char t33;
204  char* t34;
205  char* t35;
206  char* t36;
207  char* t37;
208  char* t38;
209  char* t39;
210 
211 LAB0:
212  xsi_set_current_line(122, ng0);
213 
214 LAB3:
215  t1 = (t0 + 6376U);
216  t2 = *((char**)t1);
217  t1 = (t0 + 6696U);
218  t3 = *((char**)t1);
219  t1 = (t0 + 23884U);
220  t4 = ieee_p_3620187407_sub_514432868_3965413181(IEEE_P_3620187407, t3, t1);
221  t5 = (32 * t4);
222  t6 = (128 - t5);
223  t7 = (t6 - 1);
224  t8 = (127 - t7);
225  t9 = (t0 + 6696U);
226  t10 = *((char**)t9);
227  t9 = (t0 + 23884U);
228  t11 = ieee_p_3620187407_sub_514432868_3965413181(IEEE_P_3620187407, t10, t9);
229  t12 = (t11 + 1);
230  t13 = (32 * t12);
231  t14 = (128 - t13);
232  xsi_vhdl_check_range_of_slice(127, 0, -1, t7, t14, -1);
233  t15 = (t8 * 1U);
234  t16 = (0 + t15);
235  t17 = (t2 + t16);
236  t18 = (t0 + 6696U);
237  t19 = *((char**)t18);
238  t18 = (t0 + 23884U);
239  t20 = ieee_p_3620187407_sub_514432868_3965413181(IEEE_P_3620187407, t19, t18);
240  t21 = (32 * t20);
241  t22 = (128 - t21);
242  t23 = (t22 - 1);
243  t24 = (t0 + 6696U);
244  t25 = *((char**)t24);
245  t24 = (t0 + 23884U);
246  t26 = ieee_p_3620187407_sub_514432868_3965413181(IEEE_P_3620187407, t25, t24);
247  t27 = (t26 + 1);
248  t28 = (32 * t27);
249  t29 = (128 - t28);
250  t30 = (t29 - t23);
251  t31 = (t30 * -1);
252  t31 = (t31 + 1);
253  t32 = (1U * t31);
254  t33 = (32U != t32);
255  if(t33 == 1)
256  goto LAB5;
257 
258 LAB6:
259  t34 = (t0 + 12264);
260  t35 = (t34 + 56U);
261  t36 = *((char**)t35);
262  t37 = (t36 + 56U);
263  t38 = *((char**)t37);
264  memcpy(t38, t17, 32U);
265  xsi_driver_first_trans_fast(t34);
266 
267 LAB2:
268  t39 = (t0 + 11976);
269  *((int*)t39) = 1;
270 
271 LAB1:
272  return;
273 LAB4:
274  goto LAB2;
275 
276 LAB5:
277  xsi_size_not_matching(32U, t32, 0);
278  goto LAB6;
279 }
280 
281 static void work_a_3114533131_1992432545_p_4(char* t0)
282 {
283  char t18[16];
284  char t19[16];
285  char* t1;
286  char* t2;
287  unsigned char t3;
288  unsigned char t4;
289  char* t5;
290  char* t6;
291  char* t7;
292  char* t8;
293  char* t9;
294  char* t10;
295  unsigned char t11;
296  unsigned char t12;
297  unsigned char t13;
298  unsigned char t14;
299  unsigned char t15;
300  unsigned char t16;
301  unsigned char t17;
302  char* t20;
303  char* t21;
304  int t22;
305  unsigned int t23;
306  char* t24;
307  unsigned int t25;
308  unsigned char t26;
309  char* t27;
310  char* t28;
311  char* t29;
312  char* t30;
313  char* t31;
314 
315 LAB0:
316  xsi_set_current_line(126, ng0);
317  t1 = (t0 + 5256U);
318  t2 = *((char**)t1);
319  t3 = *((unsigned char*)t2);
320  t4 = (t3 == (unsigned char)3);
321  if(t4 != 0)
322  goto LAB2;
323 
324 LAB4:
325  t1 = (t0 + 5376U);
326  t4 = xsi_signal_has_event(t1);
327  if(t4 == 1)
328  goto LAB7;
329 
330 LAB8:
331  t3 = (unsigned char)0;
332 
333 LAB9:
334  if(t3 != 0)
335  goto LAB5;
336 
337 LAB6:
338 LAB3:
339  t1 = (t0 + 11992);
340  *((int*)t1) = 1;
341 
342 LAB1:
343  return;
344 LAB2:
345  xsi_set_current_line(127, ng0);
346  t1 = xsi_get_transient_memory(2U);
347  memset(t1, 0, 2U);
348  t5 = t1;
349  memset(t5, (unsigned char)2, 2U);
350  t6 = (t0 + 12328);
351  t7 = (t6 + 56U);
352  t8 = *((char**)t7);
353  t9 = (t8 + 56U);
354  t10 = *((char**)t9);
355  memcpy(t10, t1, 2U);
356  xsi_driver_first_trans_fast(t6);
357  goto LAB3;
358 
359 LAB5:
360  xsi_set_current_line(129, ng0);
361  t2 = (t0 + 5736U);
362  t6 = *((char**)t2);
363  t14 = *((unsigned char*)t6);
364  t15 = (t14 == (unsigned char)2);
365  if(t15 == 1)
366  goto LAB13;
367 
368 LAB14:
369  t13 = (unsigned char)0;
370 
371 LAB15:
372  if(t13 != 0)
373  goto LAB10;
374 
375 LAB12:
376 LAB11:
377  goto LAB3;
378 
379 LAB7:
380  t2 = (t0 + 5416U);
381  t5 = *((char**)t2);
382  t11 = *((unsigned char*)t5);
383  t12 = (t11 == (unsigned char)3);
384  t3 = t12;
385  goto LAB9;
386 
387 LAB10:
388  xsi_set_current_line(130, ng0);
389  t2 = (t0 + 6696U);
390  t8 = *((char**)t2);
391  t2 = (t0 + 23884U);
392  t9 = (t0 + 24164);
393  t20 = (t19 + 0U);
394  t21 = (t20 + 0U);
395  *((int*)t21) = 0;
396  t21 = (t20 + 4U);
397  *((int*)t21) = 0;
398  t21 = (t20 + 8U);
399  *((int*)t21) = 1;
400  t22 = (0 - 0);
401  t23 = (t22 * 1);
402  t23 = (t23 + 1);
403  t21 = (t20 + 12U);
404  *((unsigned int*)t21) = t23;
405  t21 = ieee_p_3620187407_sub_767668596_3965413181(
406  IEEE_P_3620187407, t18, t8, t2, t9, t19);
407  t24 = (t18 + 12U);
408  t23 = *((unsigned int*)t24);
409  t25 = (1U * t23);
410  t26 = (2U != t25);
411  if(t26 == 1)
412  goto LAB16;
413 
414 LAB17:
415  t27 = (t0 + 12328);
416  t28 = (t27 + 56U);
417  t29 = *((char**)t28);
418  t30 = (t29 + 56U);
419  t31 = *((char**)t30);
420  memcpy(t31, t21, 2U);
421  xsi_driver_first_trans_fast(t27);
422  goto LAB11;
423 
424 LAB13:
425  t2 = (t0 + 5576U);
426  t7 = *((char**)t2);
427  t16 = *((unsigned char*)t7);
428  t17 = (t16 == (unsigned char)3);
429  t13 = t17;
430  goto LAB15;
431 
432 LAB16:
433  xsi_size_not_matching(2U, t25, 0);
434  goto LAB17;
435 }
436 
437 extern void work_a_3114533131_1992432545_init()
438 {
439  static char* pe[] = {(void*)work_a_3114533131_1992432545_p_0,
440  (void*)work_a_3114533131_1992432545_p_1,
441  (void*)work_a_3114533131_1992432545_p_2,
442  (void*)work_a_3114533131_1992432545_p_3,
443  (void*)work_a_3114533131_1992432545_p_4};
444  xsi_register_didat("work_a_3114533131_1992432545",
445  "isim/ethernetFIFO_tb.exe.sim/work/a_3114533131_1992432545.didat");
446  xsi_register_executes(pe);
447 }