📄 m_00000000001690445054_2247709849.c
字号:
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ */
/* \ \ 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 const char *ng0 = "E:/kechengsheji/ha1/wave_gen_ver_s6/clogb2.txt";
static int ng1[] = {1, 0};
static int ng2[] = {0, 0};
static const char *ng3 = "E:/kechengsheji/ha1/wave_gen_ver_s6/resp_gen.v";
static unsigned int ng4[] = {10U, 0U};
static unsigned int ng5[] = {48U, 0U};
static unsigned int ng6[] = {87U, 0U};
static unsigned int ng7[] = {0U, 0U};
static unsigned int ng8[] = {1U, 0U};
static int ng9[] = {45, 0};
static int ng10[] = {79, 0};
static int ng11[] = {2, 0};
static int ng12[] = {75, 0};
static int ng13[] = {3, 0};
static unsigned int ng14[] = {13U, 0U};
static int ng15[] = {69, 0};
static int ng16[] = {82, 0};
static int ng17[] = {4, 0};
static int ng18[] = {5, 0};
static int ng19[] = {32, 0};
static int ng20[] = {6, 0};
static int ng21[] = {7, 0};
static int ng22[] = {8, 0};
static int ng23[] = {9, 0};
static int ng24[] = {10, 0};
static int ng25[] = {11, 0};
static unsigned int ng26[] = {3U, 0U};
static int sp_clogb2(char *t1, char *t2)
{
char t7[8];
char t21[8];
int t0;
char *t3;
char *t4;
char *t5;
char *t6;
char *t8;
char *t9;
char *t10;
char *t11;
unsigned int t12;
unsigned int t13;
unsigned int t14;
unsigned int t15;
unsigned int t16;
char *t17;
char *t18;
char *t19;
char *t20;
char *t22;
LAB0: t0 = 1;
xsi_set_current_line(7, ng0);
LAB2: xsi_set_current_line(8, ng0);
t3 = (t1 + 6800);
t4 = (t3 + 56U);
t5 = *((char **)t4);
t6 = ((char*)((ng1)));
memset(t7, 0, 8);
xsi_vlog_unsigned_minus(t7, 32, t5, 32, t6, 32);
t8 = (t1 + 6960);
xsi_vlogvar_assign_value(t8, t7, 0, 0, 32);
xsi_set_current_line(9, ng0);
xsi_set_current_line(9, ng0);
t3 = ((char*)((ng2)));
t4 = (t1 + 6640);
xsi_vlogvar_assign_value(t4, t3, 0, 0, 32);
LAB3: t3 = (t1 + 6960);
t4 = (t3 + 56U);
t5 = *((char **)t4);
t6 = ((char*)((ng2)));
memset(t7, 0, 8);
t8 = (t5 + 4);
if (*((unsigned int *)t8) != 0)
goto LAB5;
LAB4: t9 = (t6 + 4);
if (*((unsigned int *)t9) != 0)
goto LAB5;
LAB8: if (*((unsigned int *)t5) > *((unsigned int *)t6))
goto LAB6;
LAB7: t11 = (t7 + 4);
t12 = *((unsigned int *)t11);
t13 = (~(t12));
t14 = *((unsigned int *)t7);
t15 = (t14 & t13);
t16 = (t15 != 0);
if (t16 > 0)
goto LAB9;
LAB10: t0 = 0;
LAB1: return t0;
LAB5: t10 = (t7 + 4);
*((unsigned int *)t7) = 1;
*((unsigned int *)t10) = 1;
goto LAB7;
LAB6: *((unsigned int *)t7) = 1;
goto LAB7;
LAB9: xsi_set_current_line(10, ng0);
t17 = (t1 + 6960);
t18 = (t17 + 56U);
t19 = *((char **)t18);
t20 = ((char*)((ng1)));
memset(t21, 0, 8);
xsi_vlog_unsigned_rshift(t21, 32, t19, 32, t20, 32);
t22 = (t1 + 6960);
xsi_vlogvar_assign_value(t22, t21, 0, 0, 32);
xsi_set_current_line(9, ng0);
t3 = (t1 + 6640);
t4 = (t3 + 56U);
t5 = *((char **)t4);
t6 = ((char*)((ng1)));
memset(t7, 0, 8);
xsi_vlog_signed_add(t7, 32, t5, 32, t6, 32);
t8 = (t1 + 6640);
xsi_vlogvar_assign_value(t8, t7, 0, 0, 32);
goto LAB3;
}
static int sp_max(char *t1, char *t2)
{
char t3[8];
char t4[8];
char t11[8];
int t0;
char *t5;
char *t6;
char *t7;
char *t8;
char *t9;
char *t10;
char *t12;
char *t13;
char *t14;
char *t15;
unsigned int t16;
unsigned int t17;
unsigned int t18;
unsigned int t19;
unsigned int t20;
char *t21;
char *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;
char *t33;
char *t34;
char *t35;
char *t36;
LAB0: t0 = 1;
xsi_set_current_line(74, ng3);
LAB2: xsi_set_current_line(75, ng3);
t5 = (t1 + 7280);
t6 = (t5 + 56U);
t7 = *((char **)t6);
t8 = (t1 + 7440);
t9 = (t8 + 56U);
t10 = *((char **)t9);
memset(t11, 0, 8);
t12 = (t7 + 4);
if (*((unsigned int *)t12) != 0)
goto LAB4;
LAB3: t13 = (t10 + 4);
if (*((unsigned int *)t13) != 0)
goto LAB4;
LAB7: if (*((unsigned int *)t7) > *((unsigned int *)t10))
goto LAB5;
LAB6: memset(t4, 0, 8);
t15 = (t11 + 4);
t16 = *((unsigned int *)t15);
t17 = (~(t16));
t18 = *((unsigned int *)t11);
t19 = (t18 & t17);
t20 = (t19 & 1U);
if (t20 != 0)
goto LAB8;
LAB9: if (*((unsigned int *)t15) != 0)
goto LAB10;
LAB11: t22 = (t4 + 4);
t23 = *((unsigned int *)t4);
t24 = *((unsigned int *)t22);
t25 = (t23 || t24);
if (t25 > 0)
goto LAB12;
LAB13: t29 = *((unsigned int *)t4);
t30 = (~(t29));
t31 = *((unsigned int *)t22);
t32 = (t30 || t31);
if (t32 > 0)
goto LAB14;
LAB15: if (*((unsigned int *)t22) > 0)
goto LAB16;
LAB17: if (*((unsigned int *)t4) > 0)
goto LAB18;
LAB19: memcpy(t3, t35, 8);
LAB20: t36 = (t1 + 7120);
xsi_vlogvar_assign_value(t36, t3, 0, 0, 32);
t0 = 0;
LAB1: return t0;
LAB4: t14 = (t11 + 4);
*((unsigned int *)t11) = 1;
*((unsigned int *)t14) = 1;
goto LAB6;
LAB5: *((unsigned int *)t11) = 1;
goto LAB6;
LAB8: *((unsigned int *)t4) = 1;
goto LAB11;
LAB10: t21 = (t4 + 4);
*((unsigned int *)t4) = 1;
*((unsigned int *)t21) = 1;
goto LAB11;
LAB12: t26 = (t1 + 7280);
t27 = (t26 + 56U);
t28 = *((char **)t27);
goto LAB13;
LAB14: t33 = (t1 + 7440);
t34 = (t33 + 56U);
t35 = *((char **)t34);
goto LAB15;
LAB16: xsi_vlog_unsigned_bit_combine(t3, 32, t28, 32, t35, 32);
goto LAB20;
LAB18: memcpy(t3, t28, 8);
goto LAB20;
}
static int sp_to_digit(char *t1, char *t2)
{
char t7[8];
char t21[8];
int t0;
char *t3;
char *t4;
char *t5;
char *t6;
char *t8;
char *t9;
char *t10;
char *t11;
unsigned int t12;
unsigned int t13;
unsigned int t14;
unsigned int t15;
unsigned int t16;
char *t17;
char *t18;
char *t19;
char *t20;
char *t22;
LAB0: t0 = 1;
xsi_set_current_line(81, ng3);
LAB2: xsi_set_current_line(82, ng3);
t3 = (t1 + 7760);
t4 = (t3 + 56U);
t5 = *((char **)t4);
t6 = ((char*)((ng4)));
memset(t7, 0, 8);
t8 = (t5 + 4);
if (*((unsigned int *)t8) != 0)
goto LAB4;
LAB3: t9 = (t6 + 4);
if (*((unsigned int *)t9) != 0)
goto LAB4;
LAB7: if (*((unsigned int *)t5) < *((unsigned int *)t6))
goto LAB5;
LAB6: t11 = (t7 + 4);
t12 = *((unsigned int *)t11);
t13 = (~(t12));
t14 = *((unsigned int *)t7);
t15 = (t14 & t13);
t16 = (t15 != 0);
if (t16 > 0)
goto LAB8;
LAB9: xsi_set_current_line(85, ng3);
t3 = ((char*)((ng6)));
t4 = (t1 + 7760);
t5 = (t4 + 56U);
t6 = *((char **)t5);
memset(t7, 0, 8);
xsi_vlog_unsigned_add(t7, 8, t3, 8, t6, 4);
t8 = (t1 + 7600);
xsi_vlogvar_assign_value(t8, t7, 0, 0, 8);
LAB10: t0 = 0;
LAB1: return t0;
LAB4: t10 = (t7 + 4);
*((unsigned int *)t7) = 1;
*((unsigned int *)t10) = 1;
goto LAB6;
LAB5: *((unsigned int *)t7) = 1;
goto LAB6;
LAB8: xsi_set_current_line(83, ng3);
t17 = ((char*)((ng5)));
t18 = (t1 + 7760);
t19 = (t18 + 56U);
t20 = *((char **)t19);
memset(t21, 0, 8);
xsi_vlog_unsigned_add(t21, 8, t17, 8, t20, 4);
t22 = (t1 + 7600);
xsi_vlogvar_assign_value(t22, t21, 0, 0, 8);
goto LAB10;
}
static void Cont_151_0(char *t0)
{
char t3[8];
char t4[8];
char t6[8];
char t39[8];
char t40[8];
char t42[8];
char *t1;
char *t2;
char *t5;
char *t7;
char *t8;
unsigned int t9;
unsigned int t10;
unsigned int t11;
unsigned int t12;
unsigned int t13;
unsigned int t14;
unsigned int t15;
unsigned int t16;
unsigned int t17;
unsigned int t18;
unsigned int t19;
unsigned int t20;
char *t21;
char *t22;
unsigned int t23;
unsigned int t24;
unsigned int t25;
unsigned int t26;
unsigned int t27;
char *t28;
char *t29;
unsigned int t30;
unsigned int t31;
unsigned int t32;
char *t33;
char *t34;
unsigned int t35;
unsigned int t36;
unsigned int t37;
unsigned int t38;
char *t41;
char *t43;
char *t44;
unsigned int t45;
unsigned int t46;
unsigned int t47;
unsigned int t48;
unsigned int t49;
unsigned int t50;
unsigned int t51;
unsigned int t52;
unsigned int t53;
unsigned int t54;
unsigned int t55;
unsigned int t56;
char *t57;
char *t58;
unsigned int t59;
unsigned int t60;
unsigned int t61;
unsigned int t62;
unsigned int t63;
char *t64;
char *t65;
unsigned int t66;
unsigned int t67;
unsigned int t68;
char *t69;
char *t70;
unsigned int t71;
unsigned int t72;
unsigned int t73;
unsigned int t74;
char *t75;
char *t76;
char *t77;
char *t78;
char *t79;
unsigned int t80;
unsigned int t81;
char *t82;
unsigned int t83;
unsigned int t84;
char *t85;
unsigned int t86;
unsigned int t87;
char *t88;
LAB0: t1 = (t0 + 8680U);
t2 = *((char **)t1);
if (t2 == 0)
goto LAB2;
LAB3: goto *t2;
LAB2: xsi_set_current_line(151, ng3);
t2 = (t0 + 4800U);
t5 = *((char **)t2);
t2 = ((char*)((ng7)));
memset(t6, 0, 8);
t7 = (t5 + 4);
t8 = (t2 + 4);
t9 = *((unsigned int *)t5);
t10 = *((unsigned int *)t2);
t11 = (t9 ^ t10);
t12 = *((unsigned int *)t7);
t13 = *((unsigned int *)t8);
t14 = (t12 ^ t13);
t15 = (t11 | t14);
t16 = *((unsigned int *)t7);
t17 = *((unsigned int *)t8);
t18 = (t16 | t17);
t19 = (~(t18));
t20 = (t15 & t19);
if (t20 != 0)
goto LAB7;
LAB4: if (t18 != 0)
goto LAB6;
LAB5: *((unsigned int *)t6) = 1;
LAB7: memset(t4, 0, 8);
t22 = (t6 + 4);
t23 = *((unsigned int *)t22);
t24 = (~(t23));
t25 = *((unsigned int *)t6);
t26 = (t25 & t24);
t27 = (t26 & 1U);
if (t27 != 0)
goto LAB8;
LAB9: if (*((unsigned int *)t22) != 0)
goto LAB10;
LAB11: t29 = (t4 + 4);
t30 = *((unsigned int *)t4);
t31 = *((unsigned int *)t29);
t32 = (t30 || t31);
if (t32 > 0)
goto LAB12;
LAB13: t35 = *((unsigned int *)t4);
t36 = (~(t35));
t37 = *((unsigned int *)t29);
t38 = (t36 || t37);
if (t38 > 0)
goto LAB14;
LAB15: if (*((unsigned int *)t29) > 0)
goto LAB16;
LAB17: if (*((unsigned int *)t4) > 0)
goto LAB18;
LAB19: memcpy(t3, t39, 8);
LAB20: t69 = (t0 + 10136);
t76 = (t69 + 56U);
t77 = *((char **)t76);
t78 = (t77 + 56U);
t79 = *((char **)t78);
memset(t79, 0, 8);
t80 = 15U;
t81 = t80;
t82 = (t3 + 4);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -