📄 m_00000000001981614866_0042791995.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 int ng0[] = {1, 0};
static int ng1[] = {0, 0};
static int ng2[] = {2, 0};
static int ng3[] = {3, 0};
static unsigned int ng4[] = {0U, 0U};
static unsigned int ng5[] = {1U, 0U};
static unsigned int ng6[] = {2U, 0U};
static unsigned int ng7[] = {3U, 0U};
static const char *ng8 = "WARNING: Behavioral models for independent clock FIFO configurations do not model synchronization delays. The behavioral models are functionally correct, and will represent the behavior of the configured FIFO. See the FIFO Generator User Guide for more information.";
static int ng9[] = {4, 0};
static const char *ng10 = "FAILURE : Behavioral models for Virtex-4, Virtex-5 and Virtex-6 built-in FIFO configurations is currently not supported. Please select the structural simulation model option in CORE Generator. You can enable this in CORE Generator by selecting Project -> Project Options -> Generation tab -> Structural Simulation. See the FIFO Generator User Guide for more information.";
static const char *ng11 = "FAILURE : C_WR_PNTR_WIDTH is not log2 of C_WR_DEPTH.";
static const char *ng12 = "FAILURE : C_RD_PNTR_WIDTH is not log2 of C_RD_DEPTH.";
static int sp_find_log2(char *t1, char *t2)
{
char t9[8];
char t20[8];
int t0;
char *t3;
char *t4;
char *t5;
char *t6;
char *t7;
char *t8;
char *t10;
unsigned int t11;
unsigned int t12;
unsigned int t13;
unsigned int t14;
unsigned int t15;
char *t16;
char *t17;
char *t18;
char *t19;
char *t21;
LAB0: t0 = 1;
LAB2: t3 = ((char*)((ng0)));
t4 = (t1 + 26744);
xsi_vlogvar_assign_value(t4, t3, 0, 0, 32);
t3 = ((char*)((ng1)));
t4 = (t1 + 26904);
xsi_vlogvar_assign_value(t4, t3, 0, 0, 32);
t3 = ((char*)((ng0)));
t4 = (t1 + 26744);
xsi_vlogvar_assign_value(t4, t3, 0, 0, 32);
LAB3: t3 = (t1 + 26744);
t4 = (t3 + 56U);
t5 = *((char **)t4);
t6 = (t1 + 26584);
t7 = (t6 + 56U);
t8 = *((char **)t7);
memset(t9, 0, 8);
xsi_vlog_signed_less(t9, 32, t5, 32, t8, 32);
t10 = (t9 + 4);
t11 = *((unsigned int *)t10);
t12 = (~(t11));
t13 = *((unsigned int *)t9);
t14 = (t13 & t12);
t15 = (t14 != 0);
if (t15 > 0)
goto LAB4;
LAB5: t3 = (t1 + 26904);
t4 = (t3 + 56U);
t5 = *((char **)t4);
t6 = (t1 + 26424);
xsi_vlogvar_assign_value(t6, t5, 0, 0, 32);
t0 = 0;
LAB1: return t0;
LAB4:
LAB6: t16 = (t1 + 26904);
t17 = (t16 + 56U);
t18 = *((char **)t17);
t19 = ((char*)((ng0)));
memset(t20, 0, 8);
xsi_vlog_signed_add(t20, 32, t18, 32, t19, 32);
t21 = (t1 + 26904);
xsi_vlogvar_assign_value(t21, t20, 0, 0, 32);
t3 = (t1 + 26744);
t4 = (t3 + 56U);
t5 = *((char **)t4);
t6 = ((char*)((ng2)));
memset(t9, 0, 8);
xsi_vlog_signed_multiply(t9, 32, t5, 32, t6, 32);
t7 = (t1 + 26744);
xsi_vlogvar_assign_value(t7, t9, 0, 0, 32);
goto LAB3;
}
static void Cont_2400_0(char *t0)
{
char t3[8];
char t4[8];
char t6[8];
char t7[8];
char t22[8];
char t23[8];
char t31[8];
char t72[8];
char *t1;
char *t2;
char *t5;
char *t8;
unsigned int t9;
unsigned int t10;
unsigned int t11;
unsigned int t12;
unsigned int t13;
char *t14;
char *t15;
unsigned int t16;
unsigned int t17;
unsigned int t18;
unsigned int t19;
char *t20;
char *t21;
char *t24;
unsigned int t25;
unsigned int t26;
unsigned int t27;
unsigned int t28;
unsigned int t29;
char *t30;
unsigned int t32;
unsigned int t33;
unsigned int t34;
char *t35;
char *t36;
char *t37;
unsigned int t38;
unsigned int t39;
unsigned int t40;
unsigned int t41;
unsigned int t42;
unsigned int t43;
unsigned int t44;
char *t45;
char *t46;
unsigned int t47;
unsigned int t48;
unsigned int t49;
int t50;
unsigned int t51;
unsigned int t52;
unsigned int t53;
int t54;
unsigned int t55;
unsigned int t56;
unsigned int t57;
unsigned int t58;
char *t59;
unsigned int t60;
unsigned int t61;
unsigned int t62;
unsigned int t63;
unsigned int t64;
char *t65;
char *t66;
unsigned int t67;
unsigned int t68;
unsigned int t69;
char *t70;
char *t71;
unsigned int t73;
unsigned int t74;
unsigned int t75;
unsigned int t76;
char *t77;
char *t78;
char *t79;
char *t80;
char *t81;
unsigned int t82;
unsigned int t83;
char *t84;
unsigned int t85;
unsigned int t86;
char *t87;
unsigned int t88;
unsigned int t89;
char *t90;
LAB0: t1 = (t0 + 27824U);
t2 = *((char **)t1);
if (t2 == 0)
goto LAB2;
LAB3: goto *t2;
LAB2: t2 = (t0 + 8632);
t5 = *((char **)t2);
t2 = ((char*)((ng0)));
memset(t6, 0, 8);
xsi_vlog_signed_equal(t6, 32, t5, 32, t2, 32);
memset(t7, 0, 8);
t8 = (t6 + 4);
t9 = *((unsigned int *)t8);
t10 = (~(t9));
t11 = *((unsigned int *)t6);
t12 = (t11 & t10);
t13 = (t12 & 1U);
if (t13 != 0)
goto LAB4;
LAB5: if (*((unsigned int *)t8) != 0)
goto LAB6;
LAB7: t15 = (t7 + 4);
t16 = *((unsigned int *)t7);
t17 = (!(t16));
t18 = *((unsigned int *)t15);
t19 = (t17 || t18);
if (t19 > 0)
goto LAB8;
LAB9: memcpy(t31, t7, 8);
LAB10: memset(t4, 0, 8);
t59 = (t31 + 4);
t60 = *((unsigned int *)t59);
t61 = (~(t60));
t62 = *((unsigned int *)t31);
t63 = (t62 & t61);
t64 = (t63 & 1U);
if (t64 != 0)
goto LAB18;
LAB19: if (*((unsigned int *)t59) != 0)
goto LAB20;
LAB21: t66 = (t4 + 4);
t67 = *((unsigned int *)t4);
t68 = *((unsigned int *)t66);
t69 = (t67 || t68);
if (t69 > 0)
goto LAB22;
LAB23: t73 = *((unsigned int *)t4);
t74 = (~(t73));
t75 = *((unsigned int *)t66);
t76 = (t74 || t75);
if (t76 > 0)
goto LAB24;
LAB25: if (*((unsigned int *)t66) > 0)
goto LAB26;
LAB27: if (*((unsigned int *)t4) > 0)
goto LAB28;
LAB29: memcpy(t3, t70, 8);
LAB30: t77 = (t0 + 39280);
t78 = (t77 + 56U);
t79 = *((char **)t78);
t80 = (t79 + 56U);
t81 = *((char **)t80);
memset(t81, 0, 8);
t82 = 1U;
t83 = t82;
t84 = (t3 + 4);
t85 = *((unsigned int *)t3);
t82 = (t82 & t85);
t86 = *((unsigned int *)t84);
t83 = (t83 & t86);
t87 = (t81 + 4);
t88 = *((unsigned int *)t81);
*((unsigned int *)t81) = (t88 | t82);
t89 = *((unsigned int *)t87);
*((unsigned int *)t87) = (t89 | t83);
xsi_driver_vfirst_trans(t77, 0, 0);
t90 = (t0 + 38560);
*((int *)t90) = 1;
LAB1: return;
LAB4: *((unsigned int *)t7) = 1;
goto LAB7;
LAB6: t14 = (t7 + 4);
*((unsigned int *)t7) = 1;
*((unsigned int *)t14) = 1;
goto LAB7;
LAB8: t20 = (t0 + 8632);
t21 = *((char **)t20);
t20 = ((char*)((ng3)));
memset(t22, 0, 8);
xsi_vlog_signed_equal(t22, 32, t21, 32, t20, 32);
memset(t23, 0, 8);
t24 = (t22 + 4);
t25 = *((unsigned int *)t24);
t26 = (~(t25));
t27 = *((unsigned int *)t22);
t28 = (t27 & t26);
t29 = (t28 & 1U);
if (t29 != 0)
goto LAB11;
LAB12: if (*((unsigned int *)t24) != 0)
goto LAB13;
LAB14: t32 = *((unsigned int *)t7);
t33 = *((unsigned int *)t23);
t34 = (t32 | t33);
*((unsigned int *)t31) = t34;
t35 = (t7 + 4);
t36 = (t23 + 4);
t37 = (t31 + 4);
t38 = *((unsigned int *)t35);
t39 = *((unsigned int *)t36);
t40 = (t38 | t39);
*((unsigned int *)t37) = t40;
t41 = *((unsigned int *)t37);
t42 = (t41 != 0);
if (t42 == 1)
goto LAB15;
LAB16:
LAB17: goto LAB10;
LAB11: *((unsigned int *)t23) = 1;
goto LAB14;
LAB13: t30 = (t23 + 4);
*((unsigned int *)t23) = 1;
*((unsigned int *)t30) = 1;
goto LAB14;
LAB15: t43 = *((unsigned int *)t31);
t44 = *((unsigned int *)t37);
*((unsigned int *)t31) = (t43 | t44);
t45 = (t7 + 4);
t46 = (t23 + 4);
t47 = *((unsigned int *)t45);
t48 = (~(t47));
t49 = *((unsigned int *)t7);
t50 = (t49 & t48);
t51 = *((unsigned int *)t46);
t52 = (~(t51));
t53 = *((unsigned int *)t23);
t54 = (t53 & t52);
t55 = (~(t50));
t56 = (~(t54));
t57 = *((unsigned int *)t37);
*((unsigned int *)t37) = (t57 & t55);
t58 = *((unsigned int *)t37);
*((unsigned int *)t37) = (t58 & t56);
goto LAB17;
LAB18: *((unsigned int *)t4) = 1;
goto LAB21;
LAB20: t65 = (t4 + 4);
*((unsigned int *)t4) = 1;
*((unsigned int *)t65) = 1;
goto LAB21;
LAB22: t70 = (t0 + 13384U);
t71 = *((char **)t70);
memcpy(t72, t71, 8);
goto LAB23;
LAB24: t70 = ((char*)((ng1)));
goto LAB25;
LAB26: xsi_vlog_unsigned_bit_combine(t3, 32, t72, 32, t70, 32);
goto LAB30;
LAB28: memcpy(t3, t72, 8);
goto LAB30;
}
static void Cont_2402_1(char *t0)
{
char t3[8];
char t4[8];
char t6[8];
char t7[8];
char t22[8];
char t23[8];
char t31[8];
char t72[8];
char *t1;
char *t2;
char *t5;
char *t8;
unsigned int t9;
unsigned int t10;
unsigned int t11;
unsigned int t12;
unsigned int t13;
char *t14;
char *t15;
unsigned int t16;
unsigned int t17;
unsigned int t18;
unsigned int t19;
char *t20;
char *t21;
char *t24;
unsigned int t25;
unsigned int t26;
unsigned int t27;
unsigned int t28;
unsigned int t29;
char *t30;
unsigned int t32;
unsigned int t33;
unsigned int t34;
char *t35;
char *t36;
char *t37;
unsigned int t38;
unsigned int t39;
unsigned int t40;
unsigned int t41;
unsigned int t42;
unsigned int t43;
unsigned int t44;
char *t45;
char *t46;
unsigned int t47;
unsigned int t48;
unsigned int t49;
int t50;
unsigned int t51;
unsigned int t52;
unsigned int t53;
int t54;
unsigned int t55;
unsigned int t56;
unsigned int t57;
unsigned int t58;
char *t59;
unsigned int t60;
unsigned int t61;
unsigned int t62;
unsigned int t63;
unsigned int t64;
char *t65;
char *t66;
unsigned int t67;
unsigned int t68;
unsigned int t69;
char *t70;
char *t71;
unsigned int t73;
unsigned int t74;
unsigned int t75;
unsigned int t76;
char *t77;
char *t78;
char *t79;
char *t80;
char *t81;
unsigned int t82;
unsigned int t83;
char *t84;
unsigned int t85;
unsigned int t86;
char *t87;
unsigned int t88;
unsigned int t89;
char *t90;
LAB0: t1 = (t0 + 28072U);
t2 = *((char **)t1);
if (t2 == 0)
goto LAB2;
LAB3: goto *t2;
LAB2: t2 = (t0 + 8632);
t5 = *((char **)t2);
t2 = ((char*)((ng2)));
memset(t6, 0, 8);
xsi_vlog_signed_equal(t6, 32, t5, 32, t2, 32);
memset(t7, 0, 8);
t8 = (t6 + 4);
t9 = *((unsigned int *)t8);
t10 = (~(t9));
t11 = *((unsigned int *)t6);
t12 = (t11 & t10);
t13 = (t12 & 1U);
if (t13 != 0)
goto LAB4;
LAB5: if (*((unsigned int *)t8) != 0)
goto LAB6;
LAB7: t15 = (t7 + 4);
t16 = *((unsigned int *)t7);
t17 = (!(t16));
t18 = *((unsigned int *)t15);
t19 = (t17 || t18);
if (t19 > 0)
goto LAB8;
LAB9: memcpy(t31, t7, 8);
LAB10: memset(t4, 0, 8);
t59 = (t31 + 4);
t60 = *((unsigned int *)t59);
t61 = (~(t60));
t62 = *((unsigned int *)t31);
t63 = (t62 & t61);
t64 = (t63 & 1U);
if (t64 != 0)
goto LAB18;
LAB19: if (*((unsigned int *)t59) != 0)
goto LAB20;
LAB21: t66 = (t4 + 4);
t67 = *((unsigned int *)t4);
t68 = *((unsigned int *)t66);
t69 = (t67 || t68);
if (t69 > 0)
goto LAB22;
LAB23: t73 = *((unsigned int *)t4);
t74 = (~(t73));
t75 = *((unsigned int *)t66);
t76 = (t74 || t75);
if (t76 > 0)
goto LAB24;
LAB25: if (*((unsigned int *)t66) > 0)
goto LAB26;
LAB27: if (*((unsigned int *)t4) > 0)
goto LAB28;
LAB29: memcpy(t3, t70, 8);
LAB30: t77 = (t0 + 39344);
t78 = (t77 + 56U);
t79 = *((char **)t78);
t80 = (t79 + 56U);
t81 = *((char **)t80);
memset(t81, 0, 8);
t82 = 1U;
t83 = t82;
t84 = (t3 + 4);
t85 = *((unsigned int *)t3);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -