365 lines
7.8 KiB
C
365 lines
7.8 KiB
C
/**********************************************************************/
|
|
/* ____ ____ */
|
|
/* / /\/ / */
|
|
/* /___/ \ / */
|
|
/* \ \ \/ */
|
|
/* \ \ Copyright (c) 2003-2009 Xilinx, Inc. */
|
|
/* / / All Right Reserved. */
|
|
/* /---/ /\ */
|
|
/* \ \ / \ */
|
|
/* \___\/\___\ */
|
|
/***********************************************************************/
|
|
|
|
/* This file is designed for use with ISim build 0xfbc00daa */
|
|
|
|
#define XSI_HIDE_SYMBOL_SPEC true
|
|
#include "xsi.h"
|
|
#include <memory.h>
|
|
#ifdef __GNUC__
|
|
#include <stdlib.h>
|
|
#else
|
|
#include <malloc.h>
|
|
#define alloca _alloca
|
|
#endif
|
|
static const char *ng0 = "/home/ise/gianni/IEEE754Adder/TwoComplementTest.vhd";
|
|
|
|
|
|
|
|
static void work_a_2858062612_2372691052_p_0(char *t0)
|
|
{
|
|
char *t1;
|
|
char *t2;
|
|
char *t3;
|
|
char *t4;
|
|
char *t5;
|
|
char *t6;
|
|
int64 t7;
|
|
int64 t8;
|
|
|
|
LAB0: t1 = (t0 + 2624U);
|
|
t2 = *((char **)t1);
|
|
if (t2 == 0)
|
|
goto LAB2;
|
|
|
|
LAB3: goto *t2;
|
|
|
|
LAB2: xsi_set_current_line(45, ng0);
|
|
t2 = (t0 + 3504);
|
|
t3 = (t2 + 56U);
|
|
t4 = *((char **)t3);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
*((unsigned char *)t6) = (unsigned char)2;
|
|
xsi_driver_first_trans_fast(t2);
|
|
xsi_set_current_line(46, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t7 = *((int64 *)t3);
|
|
t8 = (t7 / 2);
|
|
t2 = (t0 + 2432);
|
|
xsi_process_wait(t2, t8);
|
|
|
|
LAB6: *((char **)t1) = &&LAB7;
|
|
|
|
LAB1: return;
|
|
LAB4: xsi_set_current_line(47, ng0);
|
|
t2 = (t0 + 3504);
|
|
t3 = (t2 + 56U);
|
|
t4 = *((char **)t3);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
*((unsigned char *)t6) = (unsigned char)3;
|
|
xsi_driver_first_trans_fast(t2);
|
|
xsi_set_current_line(48, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t7 = *((int64 *)t3);
|
|
t8 = (t7 / 2);
|
|
t2 = (t0 + 2432);
|
|
xsi_process_wait(t2, t8);
|
|
|
|
LAB10: *((char **)t1) = &&LAB11;
|
|
goto LAB1;
|
|
|
|
LAB5: goto LAB4;
|
|
|
|
LAB7: goto LAB5;
|
|
|
|
LAB8: goto LAB2;
|
|
|
|
LAB9: goto LAB8;
|
|
|
|
LAB11: goto LAB9;
|
|
|
|
}
|
|
|
|
static void work_a_2858062612_2372691052_p_1(char *t0)
|
|
{
|
|
char *t1;
|
|
char *t2;
|
|
int64 t3;
|
|
char *t4;
|
|
int64 t5;
|
|
|
|
LAB0: t1 = (t0 + 2872U);
|
|
t2 = *((char **)t1);
|
|
if (t2 == 0)
|
|
goto LAB2;
|
|
|
|
LAB3: goto *t2;
|
|
|
|
LAB2: xsi_set_current_line(56, ng0);
|
|
t3 = (100 * 1000LL);
|
|
t2 = (t0 + 2680);
|
|
xsi_process_wait(t2, t3);
|
|
|
|
LAB6: *((char **)t1) = &&LAB7;
|
|
|
|
LAB1: return;
|
|
LAB4: xsi_set_current_line(58, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t4 = *((char **)t2);
|
|
t3 = *((int64 *)t4);
|
|
t5 = (t3 * 10);
|
|
t2 = (t0 + 2680);
|
|
xsi_process_wait(t2, t5);
|
|
|
|
LAB10: *((char **)t1) = &&LAB11;
|
|
goto LAB1;
|
|
|
|
LAB5: goto LAB4;
|
|
|
|
LAB7: goto LAB5;
|
|
|
|
LAB8: xsi_set_current_line(62, ng0);
|
|
|
|
LAB14: *((char **)t1) = &&LAB15;
|
|
goto LAB1;
|
|
|
|
LAB9: goto LAB8;
|
|
|
|
LAB11: goto LAB9;
|
|
|
|
LAB12: goto LAB2;
|
|
|
|
LAB13: goto LAB12;
|
|
|
|
LAB15: goto LAB13;
|
|
|
|
}
|
|
|
|
static void work_a_2858062612_2372691052_p_2(char *t0)
|
|
{
|
|
char *t1;
|
|
char *t2;
|
|
char *t3;
|
|
char *t4;
|
|
char *t5;
|
|
char *t6;
|
|
char *t7;
|
|
char *t8;
|
|
int64 t9;
|
|
|
|
LAB0: t1 = (t0 + 3120U);
|
|
t2 = *((char **)t1);
|
|
if (t2 == 0)
|
|
goto LAB2;
|
|
|
|
LAB3: goto *t2;
|
|
|
|
LAB2: xsi_set_current_line(67, ng0);
|
|
t2 = (t0 + 5616);
|
|
t4 = (t0 + 3568);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
t7 = (t6 + 56U);
|
|
t8 = *((char **)t7);
|
|
memcpy(t8, t2, 8U);
|
|
xsi_driver_first_trans_fast(t4);
|
|
xsi_set_current_line(68, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t9 = *((int64 *)t3);
|
|
t2 = (t0 + 2928);
|
|
xsi_process_wait(t2, t9);
|
|
|
|
LAB6: *((char **)t1) = &&LAB7;
|
|
|
|
LAB1: return;
|
|
LAB4: xsi_set_current_line(69, ng0);
|
|
t2 = (t0 + 5624);
|
|
t4 = (t0 + 3568);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
t7 = (t6 + 56U);
|
|
t8 = *((char **)t7);
|
|
memcpy(t8, t2, 8U);
|
|
xsi_driver_first_trans_fast(t4);
|
|
xsi_set_current_line(70, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t9 = *((int64 *)t3);
|
|
t2 = (t0 + 2928);
|
|
xsi_process_wait(t2, t9);
|
|
|
|
LAB10: *((char **)t1) = &&LAB11;
|
|
goto LAB1;
|
|
|
|
LAB5: goto LAB4;
|
|
|
|
LAB7: goto LAB5;
|
|
|
|
LAB8: xsi_set_current_line(71, ng0);
|
|
t2 = (t0 + 5632);
|
|
t4 = (t0 + 3568);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
t7 = (t6 + 56U);
|
|
t8 = *((char **)t7);
|
|
memcpy(t8, t2, 8U);
|
|
xsi_driver_first_trans_fast(t4);
|
|
xsi_set_current_line(72, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t9 = *((int64 *)t3);
|
|
t2 = (t0 + 2928);
|
|
xsi_process_wait(t2, t9);
|
|
|
|
LAB14: *((char **)t1) = &&LAB15;
|
|
goto LAB1;
|
|
|
|
LAB9: goto LAB8;
|
|
|
|
LAB11: goto LAB9;
|
|
|
|
LAB12: xsi_set_current_line(73, ng0);
|
|
t2 = (t0 + 5640);
|
|
t4 = (t0 + 3568);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
t7 = (t6 + 56U);
|
|
t8 = *((char **)t7);
|
|
memcpy(t8, t2, 8U);
|
|
xsi_driver_first_trans_fast(t4);
|
|
xsi_set_current_line(74, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t9 = *((int64 *)t3);
|
|
t2 = (t0 + 2928);
|
|
xsi_process_wait(t2, t9);
|
|
|
|
LAB18: *((char **)t1) = &&LAB19;
|
|
goto LAB1;
|
|
|
|
LAB13: goto LAB12;
|
|
|
|
LAB15: goto LAB13;
|
|
|
|
LAB16: xsi_set_current_line(75, ng0);
|
|
t2 = (t0 + 5648);
|
|
t4 = (t0 + 3568);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
t7 = (t6 + 56U);
|
|
t8 = *((char **)t7);
|
|
memcpy(t8, t2, 8U);
|
|
xsi_driver_first_trans_fast(t4);
|
|
xsi_set_current_line(76, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t9 = *((int64 *)t3);
|
|
t2 = (t0 + 2928);
|
|
xsi_process_wait(t2, t9);
|
|
|
|
LAB22: *((char **)t1) = &&LAB23;
|
|
goto LAB1;
|
|
|
|
LAB17: goto LAB16;
|
|
|
|
LAB19: goto LAB17;
|
|
|
|
LAB20: xsi_set_current_line(77, ng0);
|
|
t2 = (t0 + 5656);
|
|
t4 = (t0 + 3568);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
t7 = (t6 + 56U);
|
|
t8 = *((char **)t7);
|
|
memcpy(t8, t2, 8U);
|
|
xsi_driver_first_trans_fast(t4);
|
|
xsi_set_current_line(78, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t9 = *((int64 *)t3);
|
|
t2 = (t0 + 2928);
|
|
xsi_process_wait(t2, t9);
|
|
|
|
LAB26: *((char **)t1) = &&LAB27;
|
|
goto LAB1;
|
|
|
|
LAB21: goto LAB20;
|
|
|
|
LAB23: goto LAB21;
|
|
|
|
LAB24: xsi_set_current_line(79, ng0);
|
|
t2 = (t0 + 5664);
|
|
t4 = (t0 + 3568);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
t7 = (t6 + 56U);
|
|
t8 = *((char **)t7);
|
|
memcpy(t8, t2, 8U);
|
|
xsi_driver_first_trans_fast(t4);
|
|
xsi_set_current_line(80, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t9 = *((int64 *)t3);
|
|
t2 = (t0 + 2928);
|
|
xsi_process_wait(t2, t9);
|
|
|
|
LAB30: *((char **)t1) = &&LAB31;
|
|
goto LAB1;
|
|
|
|
LAB25: goto LAB24;
|
|
|
|
LAB27: goto LAB25;
|
|
|
|
LAB28: xsi_set_current_line(81, ng0);
|
|
t2 = (t0 + 5672);
|
|
t4 = (t0 + 3568);
|
|
t5 = (t4 + 56U);
|
|
t6 = *((char **)t5);
|
|
t7 = (t6 + 56U);
|
|
t8 = *((char **)t7);
|
|
memcpy(t8, t2, 8U);
|
|
xsi_driver_first_trans_fast(t4);
|
|
xsi_set_current_line(82, ng0);
|
|
t2 = (t0 + 1648U);
|
|
t3 = *((char **)t2);
|
|
t9 = *((int64 *)t3);
|
|
t2 = (t0 + 2928);
|
|
xsi_process_wait(t2, t9);
|
|
|
|
LAB34: *((char **)t1) = &&LAB35;
|
|
goto LAB1;
|
|
|
|
LAB29: goto LAB28;
|
|
|
|
LAB31: goto LAB29;
|
|
|
|
LAB32: goto LAB2;
|
|
|
|
LAB33: goto LAB32;
|
|
|
|
LAB35: goto LAB33;
|
|
|
|
}
|
|
|
|
|
|
extern void work_a_2858062612_2372691052_init()
|
|
{
|
|
static char *pe[] = {(void *)work_a_2858062612_2372691052_p_0,(void *)work_a_2858062612_2372691052_p_1,(void *)work_a_2858062612_2372691052_p_2};
|
|
xsi_register_didat("work_a_2858062612_2372691052", "isim/TwoComplementTest_isim_beh.exe.sim/work/a_2858062612_2372691052.didat");
|
|
xsi_register_executes(pe);
|
|
}
|