m_00000000002369045462_1094607027.c
来自「32位单精度浮点加法器」· C语言 代码 · 共 1,397 行 · 第 1/3 页
C
1,397 行
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ */
/* \ \ Copyright (c) 2003-2009 Xilinx, Inc. */
/* / / All Right Reserved. */
/* /---/ /\ */
/* \ \ / \ */
/* \___\/\___\ */
/***********************************************************************/
/* This file is designed for use with ISim build 0xa0883be4 */
#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 int ng0[] = {0, 0};
static int ng1[] = {1398361667, 0, 65, 0};
static int ng2[] = {1, 0};
static void NetDecl_35_0(char *t0)
{
char *t1;
char *t2;
char *t3;
char *t4;
char *t5;
char *t6;
char *t7;
char *t8;
char *t9;
unsigned int t10;
unsigned int t11;
char *t12;
unsigned int t13;
unsigned int t14;
char *t15;
unsigned int t16;
unsigned int t17;
char *t18;
LAB0: t1 = (t0 + 4104U);
t2 = *((char **)t1);
if (t2 == 0)
goto LAB2;
LAB3: goto *t2;
LAB2: t2 = (t0 + 9112);
t3 = *((char **)t2);
t4 = ((((char*)(t3))) + 40U);
t5 = *((char **)t4);
t4 = (t0 + 7112);
t6 = (t4 + 56U);
t7 = *((char **)t6);
t8 = (t7 + 56U);
t9 = *((char **)t8);
memset(t9, 0, 8);
t10 = 1U;
t11 = t10;
t12 = (t5 + 4);
t13 = *((unsigned int *)t5);
t10 = (t10 & t13);
t14 = *((unsigned int *)t12);
t11 = (t11 & t14);
t15 = (t9 + 4);
t16 = *((unsigned int *)t9);
*((unsigned int *)t9) = (t16 | t10);
t17 = *((unsigned int *)t15);
*((unsigned int *)t15) = (t17 | t11);
xsi_driver_vfirst_trans(t4, 0, 0U);
t18 = (t0 + 6904);
*((int *)t18) = 1;
LAB1: return;
}
static void Gate_37_1(char *t0)
{
char *t1;
char *t2;
char *t3;
char *t4;
char *t5;
char *t6;
char *t7;
char *t8;
char *t9;
char *t10;
LAB0: t1 = (t0 + 4352U);
t2 = *((char **)t1);
if (t2 == 0)
goto LAB2;
LAB3: goto *t2;
LAB2: t2 = (t0 + 1344U);
t3 = *((char **)t2);
t2 = (t0 + 1824U);
t4 = *((char **)t2);
t2 = (t0 + 7176);
t5 = (t2 + 56U);
t6 = *((char **)t5);
t7 = (t6 + 56U);
t8 = *((char **)t7);
xsi_vlog_bufIf1Gate(t8, t3, t4);
t9 = (t0 + 7176);
xsi_driver_vfirst_trans_bufif(t9, 0, 0);
t10 = (t0 + 6920);
*((int *)t10) = 1;
LAB1: return;
}
static void Gate_38_2(char *t0)
{
char *t1;
char *t2;
char *t3;
char *t4;
char *t5;
char *t6;
char *t7;
char *t8;
char *t9;
char *t10;
LAB0: t1 = (t0 + 4600U);
t2 = *((char **)t1);
if (t2 == 0)
goto LAB2;
LAB3: goto *t2;
LAB2: t2 = (t0 + 1504U);
t3 = *((char **)t2);
t2 = (t0 + 1984U);
t4 = *((char **)t2);
t2 = (t0 + 7240);
t5 = (t2 + 56U);
t6 = *((char **)t5);
t7 = (t6 + 56U);
t8 = *((char **)t7);
xsi_vlog_bufIf1Gate(t8, t3, t4);
t9 = (t0 + 7240);
xsi_driver_vfirst_trans_bufif(t9, 0, 0);
t10 = (t0 + 6936);
*((int *)t10) = 1;
LAB1: return;
}
static void Gate_39_3(char *t0)
{
char *t1;
char *t2;
char *t3;
char *t4;
char *t5;
char *t6;
unsigned int t7;
unsigned int t8;
char *t9;
char *t10;
unsigned int t11;
unsigned int t12;
char *t13;
unsigned int t14;
unsigned int t15;
char *t16;
LAB0: t1 = (t0 + 4848U);
t2 = *((char **)t1);
if (t2 == 0)
goto LAB2;
LAB3: goto *t2;
LAB2: t2 = (t0 + 7304);
t3 = (t2 + 56U);
t4 = *((char **)t3);
t5 = (t4 + 56U);
t6 = *((char **)t5);
memset(t6, 0, 8);
t7 = 1U;
t8 = t7;
t9 = ((((char*)((ng0)))) + 0);
t10 = ((((char*)((ng0)))) + 4);
t11 = *((unsigned int *)t9);
t7 = (t7 & t11);
t12 = *((unsigned int *)t10);
t8 = (t8 & t12);
t13 = (t6 + 4);
t14 = *((unsigned int *)t6);
*((unsigned int *)t6) = (t14 | t7);
t15 = *((unsigned int *)t13);
*((unsigned int *)t13) = (t15 | t8);
t16 = (t0 + 7304);
xsi_driver_vfirst_trans(t16, 0, 0);
LAB1: return;
}
static void Initial_41_4(char *t0)
{
char t1[8];
char t2[8];
char t5[16];
char *t3;
char *t4;
char *t6;
unsigned int t7;
unsigned int t8;
unsigned int t9;
unsigned int t10;
unsigned int t11;
char *t12;
char *t13;
unsigned int t14;
unsigned int t15;
unsigned int t16;
char *t17;
unsigned int t18;
unsigned int t19;
unsigned int t20;
unsigned int t21;
char *t22;
char *t23;
LAB0: t3 = (t0 + 472);
t4 = *((char **)t3);
t3 = ((char*)((ng1)));
xsi_vlog_unsigned_equal(t5, 40, t4, 32, t3, 40);
memset(t2, 0, 8);
t6 = (t5 + 4);
t7 = *((unsigned int *)t6);
t8 = (~(t7));
t9 = *((unsigned int *)t5);
t10 = (t9 & t8);
t11 = (t10 & 1U);
if (t11 != 0)
goto LAB2;
LAB3: if (*((unsigned int *)t6) != 0)
goto LAB4;
LAB5: t13 = (t2 + 4);
t14 = *((unsigned int *)t2);
t15 = *((unsigned int *)t13);
t16 = (t14 || t15);
if (t16 > 0)
goto LAB6;
LAB7: t18 = *((unsigned int *)t2);
t19 = (~(t18));
t20 = *((unsigned int *)t13);
t21 = (t19 || t20);
if (t21 > 0)
goto LAB8;
LAB9: if (*((unsigned int *)t13) > 0)
goto LAB10;
LAB11: if (*((unsigned int *)t2) > 0)
goto LAB12;
LAB13: memcpy(t1, t22, 8);
LAB14: t23 = (t0 + 3184);
xsi_vlogvar_assign_value(t23, t1, 0, 0, 1);
LAB1: return;
LAB2: *((unsigned int *)t2) = 1;
goto LAB5;
LAB4: t12 = (t2 + 4);
*((unsigned int *)t2) = 1;
*((unsigned int *)t12) = 1;
goto LAB5;
LAB6: t17 = ((char*)((ng2)));
goto LAB7;
LAB8: t22 = ((char*)((ng0)));
goto LAB9;
LAB10: xsi_vlog_unsigned_bit_combine(t1, 32, t17, 32, t22, 32);
goto LAB14;
LAB12: memcpy(t1, t17, 8);
goto LAB14;
}
static void Cont_44_5(char *t0)
{
char t3[8];
char t4[8];
char t18[8];
char *t1;
char *t2;
char *t5;
char *t6;
char *t7;
unsigned int t8;
unsigned int t9;
unsigned int t10;
unsigned int t11;
unsigned int t12;
char *t13;
char *t14;
unsigned int t15;
unsigned int t16;
unsigned int t17;
char *t19;
char *t20;
unsigned int t21;
unsigned int t22;
unsigned int t23;
unsigned int t24;
unsigned int t25;
char *t26;
char *t27;
char *t28;
unsigned int t29;
unsigned int t30;
unsigned int t31;
unsigned int t32;
unsigned int t33;
unsigned int t34;
unsigned int t35;
unsigned int t36;
unsigned int t37;
unsigned int t38;
unsigned int t39;
unsigned int t40;
char *t41;
char *t42;
char *t43;
char *t44;
char *t45;
char *t46;
char *t47;
char *t48;
unsigned int t49;
unsigned int t50;
char *t51;
unsigned int t52;
unsigned int t53;
char *t54;
unsigned int t55;
unsigned int t56;
char *t57;
LAB0: t1 = (t0 + 5344U);
t2 = *((char **)t1);
if (t2 == 0)
goto LAB2;
LAB3: goto *t2;
LAB2: t2 = (t0 + 3184);
t5 = (t2 + 56U);
t6 = *((char **)t5);
memset(t4, 0, 8);
t7 = (t6 + 4);
t8 = *((unsigned int *)t7);
t9 = (~(t8));
t10 = *((unsigned int *)t6);
t11 = (t10 & t9);
t12 = (t11 & 1U);
if (t12 != 0)
goto LAB4;
LAB5: if (*((unsigned int *)t7) != 0)
goto LAB6;
LAB7: t14 = (t4 + 4);
t15 = *((unsigned int *)t4);
t16 = *((unsigned int *)t14);
t17 = (t15 || t16);
if (t17 > 0)
goto LAB8;
LAB9: t37 = *((unsigned int *)t4);
t38 = (~(t37));
t39 = *((unsigned int *)t14);
t40 = (t38 || t39);
if (t40 > 0)
goto LAB10;
LAB11: if (*((unsigned int *)t14) > 0)
goto LAB12;
LAB13: if (*((unsigned int *)t4) > 0)
goto LAB14;
LAB15: memcpy(t3, t43, 8);
LAB16: t44 = (t0 + 7368);
t45 = (t44 + 56U);
t46 = *((char **)t45);
t47 = (t46 + 56U);
t48 = *((char **)t47);
memset(t48, 0, 8);
t49 = 1U;
t50 = t49;
t51 = (t3 + 4);
t52 = *((unsigned int *)t3);
t49 = (t49 & t52);
t53 = *((unsigned int *)t51);
t50 = (t50 & t53);
t54 = (t48 + 4);
t55 = *((unsigned int *)t48);
*((unsigned int *)t48) = (t55 | t49);
t56 = *((unsigned int *)t54);
*((unsigned int *)t54) = (t56 | t50);
xsi_driver_vfirst_trans(t44, 0, 0);
t57 = (t0 + 6952);
*((int *)t57) = 1;
LAB1: return;
LAB4: *((unsigned int *)t4) = 1;
goto LAB7;
LAB6: t13 = (t4 + 4);
*((unsigned int *)t4) = 1;
*((unsigned int *)t13) = 1;
goto LAB7;
LAB8: t19 = (t0 + 1664U);
t20 = *((char **)t19);
memset(t18, 0, 8);
t19 = (t20 + 4);
t21 = *((unsigned int *)t19);
t22 = (~(t21));
t23 = *((unsigned int *)t20);
t24 = (t23 & t22);
t25 = (t24 & 1U);
if (t25 != 0)
goto LAB20;
LAB18: if (*((unsigned int *)t19) == 0)
goto LAB17;
LAB19: t26 = (t18 + 4);
*((unsigned int *)t18) = 1;
*((unsigned int *)t26) = 1;
LAB20: t27 = (t18 + 4);
t28 = (t20 + 4);
t29 = *((unsigned int *)t20);
t30 = (~(t29));
*((unsigned int *)t18) = t30;
*((unsigned int *)t27) = 0;
if (*((unsigned int *)t28) != 0)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?