otsdaq_prepmodernization  v2_05_02_indev
a_0153932009_3367265570.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_rng.vhd";
27 extern char* IEEE_P_3499444699;
28 extern char* IEEE_P_2592010699;
29 
30 unsigned char ieee_p_2592010699_sub_853553178_503743352(char*,
31  unsigned char,
32  unsigned char);
33 char* ieee_p_3499444699_sub_2213602152_3536714472(char*, char*, int, int);
34 
35 static void work_a_0153932009_3367265570_p_0(char* t0)
36 {
37  char t5[16];
38  char* t1;
39  char* t2;
40  unsigned char t3;
41  unsigned char t4;
42  char* t6;
43  char* t7;
44  unsigned char t8;
45  unsigned char t9;
46  unsigned char t10;
47  unsigned char t11;
48  char* t12;
49  int t13;
50  int t14;
51  unsigned int t15;
52  unsigned int t16;
53  unsigned int t17;
54  unsigned char t18;
55  char* t19;
56  char* t20;
57  int t21;
58  int t22;
59  unsigned int t23;
60  unsigned int t24;
61  unsigned int t25;
62  unsigned char t26;
63  unsigned char t27;
64  char* t28;
65  char* t29;
66  int t30;
67  int t31;
68  unsigned int t32;
69  unsigned int t33;
70  unsigned int t34;
71  unsigned char t35;
72  unsigned char t36;
73  char* t37;
74  char* t38;
75  int t39;
76  int t40;
77  unsigned int t41;
78  unsigned int t42;
79  unsigned int t43;
80  unsigned char t44;
81  unsigned char t45;
82  char* t46;
83  char* t47;
84 
85 LAB0:
86  xsi_set_current_line(85, ng0);
87  t1 = (t0 + 1192U);
88  t2 = *((char**)t1);
89  t3 = *((unsigned char*)t2);
90  t4 = (t3 == (unsigned char)3);
91  if(t4 != 0)
92  goto LAB2;
93 
94 LAB4:
95  t1 = (t0 + 992U);
96  t4 = xsi_signal_has_event(t1);
97  if(t4 == 1)
98  goto LAB7;
99 
100 LAB8:
101  t3 = (unsigned char)0;
102 
103 LAB9:
104  if(t3 != 0)
105  goto LAB5;
106 
107 LAB6:
108 LAB3:
109  xsi_set_current_line(96, ng0);
110  t1 = (t0 + 2048U);
111  t2 = *((char**)t1);
112  t1 = (t0 + 3552);
113  t6 = (t1 + 56U);
114  t7 = *((char**)t6);
115  t12 = (t7 + 56U);
116  t19 = *((char**)t12);
117  memcpy(t19, t2, 8U);
118  xsi_driver_first_trans_fast_port(t1);
119  t1 = (t0 + 3472);
120  *((int*)t1) = 1;
121 
122 LAB1:
123  return;
124 LAB2:
125  xsi_set_current_line(86, ng0);
126  t1 = ieee_p_3499444699_sub_2213602152_3536714472(IEEE_P_3499444699, t5, 16, 8);
127  t6 = (t0 + 2048U);
128  t7 = *((char**)t6);
129  t6 = (t7 + 0);
130  memcpy(t6, t1, 8U);
131  xsi_set_current_line(87, ng0);
132  t1 = (t0 + 2168U);
133  t2 = *((char**)t1);
134  t1 = (t2 + 0);
135  *((unsigned char*)t1) = (unsigned char)2;
136  goto LAB3;
137 
138 LAB5:
139  xsi_set_current_line(89, ng0);
140  t2 = (t0 + 1352U);
141  t7 = *((char**)t2);
142  t10 = *((unsigned char*)t7);
143  t11 = (t10 == (unsigned char)3);
144  if(t11 != 0)
145  goto LAB10;
146 
147 LAB12:
148 LAB11:
149  goto LAB3;
150 
151 LAB7:
152  t2 = (t0 + 1032U);
153  t6 = *((char**)t2);
154  t8 = *((unsigned char*)t6);
155  t9 = (t8 == (unsigned char)3);
156  t3 = t9;
157  goto LAB9;
158 
159 LAB10:
160  xsi_set_current_line(90, ng0);
161  t2 = (t0 + 2048U);
162  t12 = *((char**)t2);
163  t13 = (8 - 1);
164  t14 = (t13 - 7);
165  t15 = (t14 * -1);
166  t16 = (1U * t15);
167  t17 = (0 + t16);
168  t2 = (t12 + t17);
169  t18 = *((unsigned char*)t2);
170  t19 = (t0 + 2048U);
171  t20 = *((char**)t19);
172  t21 = (8 - 3);
173  t22 = (t21 - 7);
174  t23 = (t22 * -1);
175  t24 = (1U * t23);
176  t25 = (0 + t24);
177  t19 = (t20 + t25);
178  t26 = *((unsigned char*)t19);
179  t27 = ieee_p_2592010699_sub_853553178_503743352(IEEE_P_2592010699, t18, t26);
180  t28 = (t0 + 2048U);
181  t29 = *((char**)t28);
182  t30 = (8 - 4);
183  t31 = (t30 - 7);
184  t32 = (t31 * -1);
185  t33 = (1U * t32);
186  t34 = (0 + t33);
187  t28 = (t29 + t34);
188  t35 = *((unsigned char*)t28);
189  t36 = ieee_p_2592010699_sub_853553178_503743352(IEEE_P_2592010699, t27, t35);
190  t37 = (t0 + 2048U);
191  t38 = *((char**)t37);
192  t39 = (8 - 5);
193  t40 = (t39 - 7);
194  t41 = (t40 * -1);
195  t42 = (1U * t41);
196  t43 = (0 + t42);
197  t37 = (t38 + t43);
198  t44 = *((unsigned char*)t37);
199  t45 = ieee_p_2592010699_sub_853553178_503743352(IEEE_P_2592010699, t36, t44);
200  t46 = (t0 + 2168U);
201  t47 = *((char**)t46);
202  t46 = (t47 + 0);
203  *((unsigned char*)t46) = t45;
204  xsi_set_current_line(91, ng0);
205  t1 = (t0 + 2048U);
206  t2 = *((char**)t1);
207  t13 = (8 - 2);
208  t15 = (7 - t13);
209  t16 = (t15 * 1U);
210  t17 = (0 + t16);
211  t1 = (t2 + t17);
212  t6 = xsi_get_transient_memory(7U);
213  memcpy(t6, t1, 7U);
214  t7 = (t0 + 2048U);
215  t12 = *((char**)t7);
216  t14 = (8 - 1);
217  t23 = (7 - t14);
218  t24 = (t23 * 1U);
219  t25 = (0 + t24);
220  t7 = (t12 + t25);
221  memcpy(t7, t6, 7U);
222  xsi_set_current_line(92, ng0);
223  t1 = (t0 + 2168U);
224  t2 = *((char**)t1);
225  t3 = *((unsigned char*)t2);
226  t1 = (t0 + 2048U);
227  t6 = *((char**)t1);
228  t13 = (0 - 7);
229  t15 = (t13 * -1);
230  t16 = (1U * t15);
231  t17 = (0 + t16);
232  t1 = (t6 + t17);
233  *((unsigned char*)t1) = t3;
234  goto LAB11;
235 }
236 
237 extern void work_a_0153932009_3367265570_init()
238 {
239  static char* pe[] = {(void*)work_a_0153932009_3367265570_p_0};
240  xsi_register_didat("work_a_0153932009_3367265570",
241  "isim/ethernetFIFO_tb.exe.sim/work/a_0153932009_3367265570.didat");
242  xsi_register_executes(pe);
243 }