OpenCores
URL https://opencores.org/ocsvn/vtach/vtach/trunk

Subversion Repositories vtach

[/] [vtach/] [trunk/] [isim/] [vtach_test_isim_beh.exe.sim/] [work/] [m_12310458916443855987_1996477019.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 wd5gnr
/**********************************************************************/
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 0xb4d1ced7 */
14
 
15
#define XSI_HIDE_SYMBOL_SPEC true
16
#include "xsi.h"
17
#include <memory.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 = "/home/alw/projects/vtachspartan/bcdadd.v";
25
static unsigned int ng1[] = {9U, 0U};
26
 
27
 
28
 
29
static void Cont_11_0(char *t0)
30
{
31
    char t4[8];
32
    char *t1;
33
    char *t2;
34
    char *t3;
35
    char *t5;
36
    unsigned int t6;
37
    unsigned int t7;
38
    unsigned int t8;
39
    unsigned int t9;
40
    unsigned int t10;
41
    unsigned int t11;
42
    char *t12;
43
    char *t13;
44
    char *t14;
45
    char *t15;
46
    char *t16;
47
    unsigned int t17;
48
    unsigned int t18;
49
    char *t19;
50
    unsigned int t20;
51
    unsigned int t21;
52
    char *t22;
53
    unsigned int t23;
54
    unsigned int t24;
55
    char *t25;
56
 
57
LAB0:    t1 = (t0 + 2680U);
58
    t2 = *((char **)t1);
59
    if (t2 == 0)
60
        goto LAB2;
61
 
62
LAB3:    goto *t2;
63
 
64
LAB2:    xsi_set_current_line(11, ng0);
65
    t2 = (t0 + 1048U);
66
    t3 = *((char **)t2);
67
    memset(t4, 0, 8);
68
    t2 = (t4 + 4);
69
    t5 = (t3 + 4);
70
    t6 = *((unsigned int *)t3);
71
    t7 = (t6 >> 12);
72
    t8 = (t7 & 1);
73
    *((unsigned int *)t4) = t8;
74
    t9 = *((unsigned int *)t5);
75
    t10 = (t9 >> 12);
76
    t11 = (t10 & 1);
77
    *((unsigned int *)t2) = t11;
78
    t12 = (t0 + 3608);
79
    t13 = (t12 + 56U);
80
    t14 = *((char **)t13);
81
    t15 = (t14 + 56U);
82
    t16 = *((char **)t15);
83
    memset(t16, 0, 8);
84
    t17 = 1U;
85
    t18 = t17;
86
    t19 = (t4 + 4);
87
    t20 = *((unsigned int *)t4);
88
    t17 = (t17 & t20);
89
    t21 = *((unsigned int *)t19);
90
    t18 = (t18 & t21);
91
    t22 = (t16 + 4);
92
    t23 = *((unsigned int *)t16);
93
    *((unsigned int *)t16) = (t23 | t17);
94
    t24 = *((unsigned int *)t22);
95
    *((unsigned int *)t22) = (t24 | t18);
96
    xsi_driver_vfirst_trans(t12, 12, 12);
97
    t25 = (t0 + 3496);
98
    *((int *)t25) = 1;
99
 
100
LAB1:    return;
101
}
102
 
103
static void Cont_13_1(char *t0)
104
{
105
    char t3[8];
106
    char t4[8];
107
    char t6[8];
108
    char t31[8];
109
    char *t1;
110
    char *t2;
111
    char *t5;
112
    char *t7;
113
    unsigned int t8;
114
    unsigned int t9;
115
    unsigned int t10;
116
    unsigned int t11;
117
    unsigned int t12;
118
    unsigned int t13;
119
    char *t14;
120
    unsigned int t15;
121
    unsigned int t16;
122
    unsigned int t17;
123
    unsigned int t18;
124
    unsigned int t19;
125
    char *t20;
126
    char *t21;
127
    unsigned int t22;
128
    unsigned int t23;
129
    unsigned int t24;
130
    char *t25;
131
    char *t26;
132
    unsigned int t27;
133
    unsigned int t28;
134
    unsigned int t29;
135
    unsigned int t30;
136
    char *t32;
137
    char *t33;
138
    unsigned int t34;
139
    unsigned int t35;
140
    unsigned int t36;
141
    unsigned int t37;
142
    unsigned int t38;
143
    unsigned int t39;
144
    char *t40;
145
    char *t41;
146
    char *t42;
147
    char *t43;
148
    char *t44;
149
    unsigned int t45;
150
    unsigned int t46;
151
    char *t47;
152
    unsigned int t48;
153
    unsigned int t49;
154
    char *t50;
155
    unsigned int t51;
156
    unsigned int t52;
157
    char *t53;
158
 
159
LAB0:    t1 = (t0 + 2928U);
160
    t2 = *((char **)t1);
161
    if (t2 == 0)
162
        goto LAB2;
163
 
164
LAB3:    goto *t2;
165
 
166
LAB2:    xsi_set_current_line(13, ng0);
167
    t2 = (t0 + 1048U);
168
    t5 = *((char **)t2);
169
    memset(t6, 0, 8);
170
    t2 = (t6 + 4);
171
    t7 = (t5 + 4);
172
    t8 = *((unsigned int *)t5);
173
    t9 = (t8 >> 12);
174
    t10 = (t9 & 1);
175
    *((unsigned int *)t6) = t10;
176
    t11 = *((unsigned int *)t7);
177
    t12 = (t11 >> 12);
178
    t13 = (t12 & 1);
179
    *((unsigned int *)t2) = t13;
180
    memset(t4, 0, 8);
181
    t14 = (t6 + 4);
182
    t15 = *((unsigned int *)t14);
183
    t16 = (~(t15));
184
    t17 = *((unsigned int *)t6);
185
    t18 = (t17 & t16);
186
    t19 = (t18 & 1U);
187
    if (t19 != 0)
188
        goto LAB4;
189
 
190
LAB5:    if (*((unsigned int *)t14) != 0)
191
        goto LAB6;
192
 
193
LAB7:    t21 = (t4 + 4);
194
    t22 = *((unsigned int *)t4);
195
    t23 = *((unsigned int *)t21);
196
    t24 = (t22 || t23);
197
    if (t24 > 0)
198
        goto LAB8;
199
 
200
LAB9:    t27 = *((unsigned int *)t4);
201
    t28 = (~(t27));
202
    t29 = *((unsigned int *)t21);
203
    t30 = (t28 || t29);
204
    if (t30 > 0)
205
        goto LAB10;
206
 
207
LAB11:    if (*((unsigned int *)t21) > 0)
208
        goto LAB12;
209
 
210
LAB13:    if (*((unsigned int *)t4) > 0)
211
        goto LAB14;
212
 
213
LAB15:    memcpy(t3, t31, 8);
214
 
215
LAB16:    t40 = (t0 + 3672);
216
    t41 = (t40 + 56U);
217
    t42 = *((char **)t41);
218
    t43 = (t42 + 56U);
219
    t44 = *((char **)t43);
220
    memset(t44, 0, 8);
221
    t45 = 4095U;
222
    t46 = t45;
223
    t47 = (t3 + 4);
224
    t48 = *((unsigned int *)t3);
225
    t45 = (t45 & t48);
226
    t49 = *((unsigned int *)t47);
227
    t46 = (t46 & t49);
228
    t50 = (t44 + 4);
229
    t51 = *((unsigned int *)t44);
230
    *((unsigned int *)t44) = (t51 | t45);
231
    t52 = *((unsigned int *)t50);
232
    *((unsigned int *)t50) = (t52 | t46);
233
    xsi_driver_vfirst_trans(t40, 0, 11);
234
    t53 = (t0 + 3512);
235
    *((int *)t53) = 1;
236
 
237
LAB1:    return;
238
LAB4:    *((unsigned int *)t4) = 1;
239
    goto LAB7;
240
 
241
LAB6:    t20 = (t4 + 4);
242
    *((unsigned int *)t4) = 1;
243
    *((unsigned int *)t20) = 1;
244
    goto LAB7;
245
 
246
LAB8:    t25 = (t0 + 1368U);
247
    t26 = *((char **)t25);
248
    goto LAB9;
249
 
250
LAB10:    t25 = (t0 + 1048U);
251
    t32 = *((char **)t25);
252
    memset(t31, 0, 8);
253
    t25 = (t31 + 4);
254
    t33 = (t32 + 4);
255
    t34 = *((unsigned int *)t32);
256
    t35 = (t34 >> 0);
257
    *((unsigned int *)t31) = t35;
258
    t36 = *((unsigned int *)t33);
259
    t37 = (t36 >> 0);
260
    *((unsigned int *)t25) = t37;
261
    t38 = *((unsigned int *)t31);
262
    *((unsigned int *)t31) = (t38 & 4095U);
263
    t39 = *((unsigned int *)t25);
264
    *((unsigned int *)t25) = (t39 & 4095U);
265
    goto LAB11;
266
 
267
LAB12:    xsi_vlog_unsigned_bit_combine(t3, 12, t26, 12, t31, 12);
268
    goto LAB16;
269
 
270
LAB14:    memcpy(t3, t26, 8);
271
    goto LAB16;
272
 
273
}
274
 
275
static void implSig1_execute(char *t0)
276
{
277
    char t3[8];
278
    char t4[8];
279
    char t14[8];
280
    char t16[8];
281
    char t26[8];
282
    char t28[8];
283
    char t38[8];
284
    char *t1;
285
    char *t2;
286
    char *t5;
287
    char *t6;
288
    char *t7;
289
    unsigned int t8;
290
    unsigned int t9;
291
    unsigned int t10;
292
    unsigned int t11;
293
    unsigned int t12;
294
    unsigned int t13;
295
    char *t15;
296
    char *t17;
297
    char *t18;
298
    char *t19;
299
    unsigned int t20;
300
    unsigned int t21;
301
    unsigned int t22;
302
    unsigned int t23;
303
    unsigned int t24;
304
    unsigned int t25;
305
    char *t27;
306
    char *t29;
307
    char *t30;
308
    char *t31;
309
    unsigned int t32;
310
    unsigned int t33;
311
    unsigned int t34;
312
    unsigned int t35;
313
    unsigned int t36;
314
    unsigned int t37;
315
    char *t39;
316
    char *t40;
317
    char *t41;
318
    char *t42;
319
    char *t43;
320
    unsigned int t44;
321
    unsigned int t45;
322
    char *t46;
323
    unsigned int t47;
324
    unsigned int t48;
325
    char *t49;
326
    unsigned int t50;
327
    unsigned int t51;
328
    char *t52;
329
 
330
LAB0:    t1 = (t0 + 3176U);
331
    t2 = *((char **)t1);
332
    if (t2 == 0)
333
        goto LAB2;
334
 
335
LAB3:    goto *t2;
336
 
337
LAB2:    t2 = ((char*)((ng1)));
338
    t5 = (t0 + 1048U);
339
    t6 = *((char **)t5);
340
    memset(t4, 0, 8);
341
    t5 = (t4 + 4);
342
    t7 = (t6 + 4);
343
    t8 = *((unsigned int *)t6);
344
    t9 = (t8 >> 0);
345
    *((unsigned int *)t4) = t9;
346
    t10 = *((unsigned int *)t7);
347
    t11 = (t10 >> 0);
348
    *((unsigned int *)t5) = t11;
349
    t12 = *((unsigned int *)t4);
350
    *((unsigned int *)t4) = (t12 & 15U);
351
    t13 = *((unsigned int *)t5);
352
    *((unsigned int *)t5) = (t13 & 15U);
353
    memset(t14, 0, 8);
354
    xsi_vlog_unsigned_minus(t14, 4, t2, 4, t4, 4);
355
    t15 = ((char*)((ng1)));
356
    t17 = (t0 + 1048U);
357
    t18 = *((char **)t17);
358
    memset(t16, 0, 8);
359
    t17 = (t16 + 4);
360
    t19 = (t18 + 4);
361
    t20 = *((unsigned int *)t18);
362
    t21 = (t20 >> 4);
363
    *((unsigned int *)t16) = t21;
364
    t22 = *((unsigned int *)t19);
365
    t23 = (t22 >> 4);
366
    *((unsigned int *)t17) = t23;
367
    t24 = *((unsigned int *)t16);
368
    *((unsigned int *)t16) = (t24 & 15U);
369
    t25 = *((unsigned int *)t17);
370
    *((unsigned int *)t17) = (t25 & 15U);
371
    memset(t26, 0, 8);
372
    xsi_vlog_unsigned_minus(t26, 4, t15, 4, t16, 4);
373
    t27 = ((char*)((ng1)));
374
    t29 = (t0 + 1048U);
375
    t30 = *((char **)t29);
376
    memset(t28, 0, 8);
377
    t29 = (t28 + 4);
378
    t31 = (t30 + 4);
379
    t32 = *((unsigned int *)t30);
380
    t33 = (t32 >> 8);
381
    *((unsigned int *)t28) = t33;
382
    t34 = *((unsigned int *)t31);
383
    t35 = (t34 >> 8);
384
    *((unsigned int *)t29) = t35;
385
    t36 = *((unsigned int *)t28);
386
    *((unsigned int *)t28) = (t36 & 15U);
387
    t37 = *((unsigned int *)t29);
388
    *((unsigned int *)t29) = (t37 & 15U);
389
    memset(t38, 0, 8);
390
    xsi_vlog_unsigned_minus(t38, 4, t27, 4, t28, 4);
391
    xsi_vlogtype_concat(t3, 12, 12, 3U, t38, 4, t26, 4, t14, 4);
392
    t39 = (t0 + 3736);
393
    t40 = (t39 + 56U);
394
    t41 = *((char **)t40);
395
    t42 = (t41 + 56U);
396
    t43 = *((char **)t42);
397
    memset(t43, 0, 8);
398
    t44 = 4095U;
399
    t45 = t44;
400
    t46 = (t3 + 4);
401
    t47 = *((unsigned int *)t3);
402
    t44 = (t44 & t47);
403
    t48 = *((unsigned int *)t46);
404
    t45 = (t45 & t48);
405
    t49 = (t43 + 4);
406
    t50 = *((unsigned int *)t43);
407
    *((unsigned int *)t43) = (t50 | t44);
408
    t51 = *((unsigned int *)t49);
409
    *((unsigned int *)t49) = (t51 | t45);
410
    xsi_driver_vfirst_trans(t39, 0, 11);
411
    t52 = (t0 + 3528);
412
    *((int *)t52) = 1;
413
 
414
LAB1:    return;
415
}
416
 
417
 
418
extern void work_m_12310458916443855987_1996477019_init()
419
{
420
        static char *pe[] = {(void *)Cont_11_0,(void *)Cont_13_1,(void *)implSig1_execute};
421
        xsi_register_didat("work_m_12310458916443855987_1996477019", "isim/vtach_test_isim_beh.exe.sim/work/m_12310458916443855987_1996477019.didat");
422
        xsi_register_executes(pe);
423
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.