📄 m_00000000003556918713_3092992871.c
字号:
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ */
/* \ \ Copyright (c) 2003-2007 Xilinx, Inc. */
/* / / All Right Reserved. */
/* /---/ /\ */
/* \ \ / \ */
/* \___\/\___\ */
/**********************************************************************/
/* This file is designed for use with ISim build 0x734844ce */
#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 unsigned int ng1[] = {0U, 0U};
static int ng2[] = {0, 0};
static unsigned int ng3[] = {1U, 1U};
static unsigned int ng4[] = {1U, 0U};
static unsigned int ng5[] = {48U, 0U};
static unsigned int ng6[] = {49U, 0U};
static unsigned int ng7[] = {50U, 0U};
static unsigned int ng8[] = {2U, 0U};
static unsigned int ng9[] = {51U, 0U};
static unsigned int ng10[] = {3U, 0U};
static unsigned int ng11[] = {52U, 0U};
static unsigned int ng12[] = {4U, 0U};
static unsigned int ng13[] = {53U, 0U};
static unsigned int ng14[] = {5U, 0U};
static unsigned int ng15[] = {54U, 0U};
static unsigned int ng16[] = {6U, 0U};
static unsigned int ng17[] = {55U, 0U};
static unsigned int ng18[] = {7U, 0U};
static unsigned int ng19[] = {56U, 0U};
static unsigned int ng20[] = {8U, 0U};
static unsigned int ng21[] = {57U, 0U};
static unsigned int ng22[] = {9U, 0U};
static unsigned int ng23[] = {65U, 0U};
static unsigned int ng24[] = {10U, 0U};
static unsigned int ng25[] = {66U, 0U};
static unsigned int ng26[] = {11U, 0U};
static unsigned int ng27[] = {67U, 0U};
static unsigned int ng28[] = {12U, 0U};
static unsigned int ng29[] = {68U, 0U};
static unsigned int ng30[] = {13U, 0U};
static unsigned int ng31[] = {69U, 0U};
static unsigned int ng32[] = {14U, 0U};
static unsigned int ng33[] = {70U, 0U};
static unsigned int ng34[] = {15U, 0U};
static unsigned int ng35[] = {97U, 0U};
static unsigned int ng36[] = {98U, 0U};
static unsigned int ng37[] = {99U, 0U};
static unsigned int ng38[] = {100U, 0U};
static unsigned int ng39[] = {101U, 0U};
static unsigned int ng40[] = {102U, 0U};
static const char *ng41 = "ERROR in %m at time %t: NOT A HEX CHARACTER";
static unsigned int ng42[] = {15U, 15U};
static int ng43[] = {4, 0};
static int ng44[] = {8, 0};
static int ng45[] = {808464432, 0, 0, 0, 0, 0, 0, 0};
static int ng46[] = {778922342, 0, 1599229773, 0, 1414678855, 0, 1112294751, 0, 1398756417, 0, 1229865807, 0, 1685282643, 0, 100, 0};
static const char *ng47 = "Invalid Address Warning #1: Warning in %m at time %t: Port A address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static unsigned int ng48[] = {32767U, 32767U};
static const char *ng49 = "Invalid Address Warning #2: Warning in %m at time %t: Port A address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng50 = "Invalid Address Warning #3: Warning in %m at time %t: Port B address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng51 = "Invalid Address Warning #4: Warning in %m at time %t: Port A address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng52 = "Invalid Address Warning #5: Warning in %m at time %t: Port B address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng53 = "Invalid Address Warning #6: Warning in %m at time %t: Port A address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng54 = "Invalid Address Warning #7: Warning in %m at time %t: Port B address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static int ng55[] = {2, 0};
static const char *ng56 = "Error in %m at time %t: c_write_modea = %s is not WRITE_FIRST, READ_FIRST or NO_CHANGE.";
static const char *ng57 = "Error in %m at time %t: c_write_modeb = %s is not WRITE_FIRST, READ_FIRST or NO_CHANGE.";
static const char *ng58 = "Invalid Address Warning #8: Warning in %m at time %t: Port A address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng59 = "Invalid Address Warning #9: Warning in %m at time %t: Port A address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng60 = "Invalid Address Warning #10: Warning in %m at time %t: Port A address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng61 = "Invalid Address Warning #11: Warning in %m at time %t: Port A address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng62 = "Invalid Address Warning #12: Warning in %m at time %t: Port A address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng63 = "Invalid Address Warning #13: Warning in %m at time %t: Port B address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng64 = "Invalid Address Warning #14: Warning in %m at time %t: Port B address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng65 = "Invalid Address Warning #15: Warning in %m at time %t: Port B address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng66 = "Invalid Address Warning #16: Warning in %m at time %t: Port B address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static const char *ng67 = "Invalid Address Warning #17: Warning in %m at time %t: Port B address %d (%b) of block memory invalid. Valid depth configured as 0 to %d";
static int sp_defval(char *t1, char *t2)
{
char t7[8];
char t33[8];
int t0;
char *t3;
char *t4;
char *t5;
char *t6;
char *t8;
char *t9;
char *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;
unsigned int t21;
unsigned int t22;
char *t23;
unsigned int t24;
unsigned int t25;
unsigned int t26;
unsigned int t27;
unsigned int t28;
char *t29;
char *t30;
char *t31;
char *t32;
char *t34;
char *t35;
char *t36;
unsigned int t37;
unsigned int t38;
unsigned int t39;
unsigned int t40;
unsigned int t41;
unsigned int t42;
unsigned int t43;
unsigned int t44;
unsigned int t45;
unsigned int t46;
unsigned int t47;
unsigned int t48;
char *t49;
unsigned int t50;
unsigned int t51;
unsigned int t52;
unsigned int t53;
unsigned int t54;
char *t55;
char *t56;
char *t57;
char *t58;
LAB0: t0 = 1;
LAB2: t3 = (t1 + 19548);
t4 = (t3 + 32U);
t5 = *((char **)t4);
t6 = ((char*)((ng0)));
memset(t7, 0, 8);
t8 = (t7 + 4U);
t9 = (t5 + 4U);
t10 = (t6 + 4U);
t11 = *((unsigned int *)t5);
t12 = *((unsigned int *)t6);
t13 = (t11 ^ t12);
t14 = *((unsigned int *)t9);
t15 = *((unsigned int *)t10);
t16 = (t14 ^ t15);
t17 = (t13 | t16);
t18 = *((unsigned int *)t9);
t19 = *((unsigned int *)t10);
t20 = (t18 | t19);
t21 = (~(t20));
t22 = (t17 & t21);
if (t22 != 0)
goto LAB6;
LAB3: if (t20 != 0)
goto LAB5;
LAB4: *((unsigned int *)t7) = 1;
LAB6: t23 = (t7 + 4U);
t24 = *((unsigned int *)t23);
t25 = (~(t24));
t26 = *((unsigned int *)t7);
t27 = (t26 & t25);
t28 = (t27 != 0);
if (t28 > 0)
goto LAB7;
LAB8: t3 = (t1 + 19640);
t4 = (t3 + 32U);
t5 = *((char **)t4);
t6 = (t1 + 19364);
xsi_vlogvar_assign_value(t6, t5, 0, 0, 1);
LAB9: t0 = 0;
LAB1: return t0;
LAB5: *((unsigned int *)t7) = 1;
*((unsigned int *)t8) = 1;
goto LAB6;
LAB7:
LAB10: t29 = (t1 + 19732);
t30 = (t29 + 32U);
t31 = *((char **)t30);
t32 = ((char*)((ng0)));
memset(t33, 0, 8);
t34 = (t33 + 4U);
t35 = (t31 + 4U);
t36 = (t32 + 4U);
t37 = *((unsigned int *)t31);
t38 = *((unsigned int *)t32);
t39 = (t37 ^ t38);
t40 = *((unsigned int *)t35);
t41 = *((unsigned int *)t36);
t42 = (t40 ^ t41);
t43 = (t39 | t42);
t44 = *((unsigned int *)t35);
t45 = *((unsigned int *)t36);
t46 = (t44 | t45);
t47 = (~(t46));
t48 = (t43 & t47);
if (t48 != 0)
goto LAB14;
LAB11: if (t46 != 0)
goto LAB13;
LAB12: *((unsigned int *)t33) = 1;
LAB14: t49 = (t33 + 4U);
t50 = *((unsigned int *)t49);
t51 = (~(t50));
t52 = *((unsigned int *)t33);
t53 = (t52 & t51);
t54 = (t53 != 0);
if (t54 > 0)
goto LAB15;
LAB16: t3 = (t1 + 19456);
t4 = (t3 + 32U);
t5 = *((char **)t4);
memset(t7, 0, 8);
t6 = (t7 + 4U);
t8 = (t5 + 4U);
t11 = *((unsigned int *)t5);
t12 = (~(t11));
*((unsigned int *)t7) = t12;
*((unsigned int *)t6) = 0;
if (*((unsigned int *)t8) != 0)
goto LAB19;
LAB18: t17 = *((unsigned int *)t7);
*((unsigned int *)t7) = (t17 & 1U);
t18 = *((unsigned int *)t6);
*((unsigned int *)t6) = (t18 & 1U);
t9 = (t1 + 19364);
xsi_vlogvar_assign_value(t9, t7, 0, 0, 1);
LAB17: goto LAB9;
LAB13: *((unsigned int *)t33) = 1;
*((unsigned int *)t34) = 1;
goto LAB14;
LAB15: t55 = (t1 + 19456);
t56 = (t55 + 32U);
t57 = *((char **)t56);
t58 = (t1 + 19364);
xsi_vlogvar_assign_value(t58, t57, 0, 0, 1);
goto LAB17;
LAB19: t13 = *((unsigned int *)t7);
t14 = *((unsigned int *)t8);
*((unsigned int *)t7) = (t13 | t14);
t15 = *((unsigned int *)t6);
t16 = *((unsigned int *)t8);
*((unsigned int *)t6) = (t15 | t16);
goto LAB18;
}
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;
char *t16;
unsigned int t17;
unsigned int t18;
unsigned int t19;
unsigned int t20;
unsigned int 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;
LAB2: t5 = (t1 + 19916);
t6 = (t5 + 32U);
t7 = *((char **)t6);
t8 = (t1 + 20008);
t9 = (t8 + 32U);
t10 = *((char **)t9);
memset(t11, 0, 8);
t12 = (t11 + 4U);
t13 = (t7 + 4U);
t14 = (t10 + 4U);
if (*((unsigned int *)t13) != 0)
goto LAB4;
LAB3: if (*((unsigned int *)t14) != 0)
goto LAB4;
LAB7: if (*((unsigned int *)t7) > *((unsigned int *)t10))
goto LAB5;
LAB6: memset(t4, 0, 8);
t15 = (t4 + 4U);
t16 = (t11 + 4U);
t17 = *((unsigned int *)t16);
t18 = (~(t17));
t19 = *((unsigned int *)t11);
t20 = (t19 & t18);
t21 = (t20 & 1U);
if (t21 != 0)
goto LAB8;
LAB9: if (*((unsigned int *)t16) != 0)
goto LAB10;
LAB11: t22 = (t4 + 4U);
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 + 19824);
xsi_vlogvar_assign_value(t36, t3, 0, 0, 1);
t0 = 0;
LAB1: return t0;
LAB4: *((unsigned int *)t11) = 1;
*((unsigned int *)t12) = 1;
goto LAB6;
LAB5: *((unsigned int *)t11) = 1;
goto LAB6;
LAB8: *((unsigned int *)t4) = 1;
goto LAB11;
LAB10: *((unsigned int *)t4) = 1;
*((unsigned int *)t15) = 1;
goto LAB11;
LAB12: t26 = (t1 + 19916);
t27 = (t26 + 32U);
t28 = *((char **)t27);
goto LAB13;
LAB14: t33 = (t1 + 20008);
t34 = (t33 + 32U);
t35 = *((char **)t34);
goto LAB15;
LAB16: xsi_vlog_unsigned_bit_combine(t3, 1, t28, 1, t35, 1);
goto LAB20;
LAB18: memcpy(t3, t28, 8);
goto LAB20;
}
static int sp_a_is_X(char *t1, char *t2)
{
char t8[8];
char t17[8];
char t25[8];
int t0;
char *t3;
char *t4;
char *t5;
char *t6;
char *t7;
unsigned int t9;
unsigned int t10;
unsigned int t11;
unsigned int t12;
unsigned int t13;
char *t14;
char *t15;
char *t16;
char *t18;
char *t19;
char *t20;
char *t21;
char *t22;
char *t23;
char *t24;
char *t26;
char *t27;
char *t28;
unsigned int t29;
unsigned int t30;
unsigned int t31;
unsigned int t32;
unsigned int t33;
char *t34;
char *t35;
LAB0: t0 = 1;
LAB2: t3 = ((char*)((ng1)));
t4 = (t1 + 20100);
xsi_vlogvar_assign_value(t4, t3, 0, 0, 1);
t3 = ((char*)((ng2)));
t4 = (t1 + 20284);
xsi_vlogvar_assign_value(t4, t3, 0, 0, 32);
LAB3: t3 = (t1 + 20284);
t4 = (t3 + 32U);
t5 = *((char **)t4);
t6 = (t1 + 2680);
t7 = *((char **)t6);
memset(t8, 0, 8);
xsi_vlog_signed_less(t8, 32, t5, 32, t7, 32);
t6 = (t8 + 4U);
t9 = *((unsigned int *)t6);
t10 = (~(t9));
t11 = *((unsigned int *)t8);
t12 = (t11 & t10);
t13 = (t12 != 0);
if (t13 > 0)
goto LAB4;
LAB5: t0 = 0;
LAB1: return t0;
LAB4:
LAB6: t14 = (t1 + 20192);
t15 = (t14 + 32U);
t16 = *((char **)t15);
t18 = (t1 + 20192);
t19 = (t18 + 40U);
t20 = *((char **)t19);
t21 = (t1 + 20284);
t22 = (t21 + 32U);
t23 = *((char **)t22);
xsi_vlog_generic_get_index_select_value(t17, 1, t16, t20, 2, t23, 32, 1);
t24 = ((char*)((ng3)));
memset(t25, 0, 8);
t26 = (t17 + 4U);
t27 = (t24 + 4U);
if (*((unsigned int *)t17) != *((unsigned int *)t24))
goto LAB9;
LAB7: if (*((unsigned int *)t26) != *((unsigned int *)t27))
goto LAB9;
LAB8: *((unsigned int *)t25) = 1;
LAB9: t28 = (t25 + 4U);
t29 = *((unsigned int *)t28);
t30 = (~(t29));
t31 = *((unsigned int *)t25);
t32 = (t31 & t30);
t33 = (t32 != 0);
if (t33 > 0)
goto LAB10;
LAB11:
LAB12: t3 = (t1 + 20284);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -