/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ */ /* \ \ 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 #ifdef __GNUC__ #include #else #include #define alloca _alloca #endif static const char *ng0 = "/home/maar/Code/Git/Verilog/MIPS-UART-module/src/hdl/alu.v"; static int ng1[] = {0, 0}; static int ng2[] = {1, 0}; static int ng3[] = {2, 0}; static int ng4[] = {6, 0}; static int ng5[] = {7, 0}; static int ng6[] = {8, 0}; static int ng7[] = {9, 0}; static void Cont_11_0(char *t0) { char t6[8]; char *t1; char *t2; char *t3; char *t4; 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; char *t23; char *t24; char *t25; char *t26; unsigned int t27; unsigned int t28; char *t29; unsigned int t30; unsigned int t31; char *t32; unsigned int t33; unsigned int t34; char *t35; LAB0: t1 = (t0 + 2840U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(11, ng0); t2 = (t0 + 1928); t3 = (t2 + 56U); t4 = *((char **)t3); t5 = ((char*)((ng1))); memset(t6, 0, 8); t7 = (t4 + 4); t8 = (t5 + 4); t9 = *((unsigned int *)t4); t10 = *((unsigned int *)t5); 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: t22 = (t0 + 3504); t23 = (t22 + 56U); t24 = *((char **)t23); t25 = (t24 + 56U); t26 = *((char **)t25); memset(t26, 0, 8); t27 = 1U; t28 = t27; t29 = (t6 + 4); t30 = *((unsigned int *)t6); t27 = (t27 & t30); t31 = *((unsigned int *)t29); t28 = (t28 & t31); t32 = (t26 + 4); t33 = *((unsigned int *)t26); *((unsigned int *)t26) = (t33 | t27); t34 = *((unsigned int *)t32); *((unsigned int *)t32) = (t34 | t28); xsi_driver_vfirst_trans(t22, 0, 0); t35 = (t0 + 3408); *((int *)t35) = 1; LAB1: return; LAB6: t21 = (t6 + 4); *((unsigned int *)t6) = 1; *((unsigned int *)t21) = 1; goto LAB7; } static void Always_13_1(char *t0) { char t10[8]; char t42[8]; char t43[8]; char *t1; char *t2; char *t3; char *t4; char *t5; int t6; char *t7; char *t8; char *t9; 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; unsigned int t20; unsigned int t21; unsigned int t22; char *t23; char *t24; unsigned int t25; unsigned int t26; unsigned int t27; unsigned int t28; unsigned int t29; unsigned int t30; unsigned int t31; unsigned int t32; int t33; int t34; unsigned int t35; unsigned int t36; unsigned int t37; unsigned int t38; unsigned int t39; unsigned int t40; char *t41; char *t44; unsigned int t45; unsigned int t46; unsigned int t47; unsigned int t48; LAB0: t1 = (t0 + 3088U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(13, ng0); t2 = (t0 + 3424); *((int *)t2) = 1; t3 = (t0 + 3120); *((char **)t3) = t2; *((char **)t1) = &&LAB4; LAB1: return; LAB4: xsi_set_current_line(13, ng0); LAB5: xsi_set_current_line(14, ng0); t4 = (t0 + 1048U); t5 = *((char **)t4); LAB6: t4 = ((char*)((ng1))); t6 = xsi_vlog_unsigned_case_compare(t5, 5, t4, 32); if (t6 == 1) goto LAB7; LAB8: t2 = ((char*)((ng2))); t6 = xsi_vlog_unsigned_case_compare(t5, 5, t2, 32); if (t6 == 1) goto LAB9; LAB10: t2 = ((char*)((ng3))); t6 = xsi_vlog_unsigned_case_compare(t5, 5, t2, 32); if (t6 == 1) goto LAB11; LAB12: t2 = ((char*)((ng4))); t6 = xsi_vlog_unsigned_case_compare(t5, 5, t2, 32); if (t6 == 1) goto LAB13; LAB14: t2 = ((char*)((ng5))); t6 = xsi_vlog_unsigned_case_compare(t5, 5, t2, 32); if (t6 == 1) goto LAB15; LAB16: t2 = ((char*)((ng6))); t6 = xsi_vlog_unsigned_case_compare(t5, 5, t2, 32); if (t6 == 1) goto LAB17; LAB18: t2 = ((char*)((ng7))); t6 = xsi_vlog_unsigned_case_compare(t5, 5, t2, 32); if (t6 == 1) goto LAB19; LAB20: LAB22: LAB21: xsi_set_current_line(22, ng0); t2 = ((char*)((ng1))); t3 = (t0 + 1928); xsi_vlogvar_assign_value(t3, t2, 0, 0, 32); LAB23: goto LAB2; LAB7: xsi_set_current_line(15, ng0); t7 = (t0 + 1208U); t8 = *((char **)t7); t7 = (t0 + 1368U); t9 = *((char **)t7); t11 = *((unsigned int *)t8); t12 = *((unsigned int *)t9); t13 = (t11 & t12); *((unsigned int *)t10) = t13; t7 = (t8 + 4); t14 = (t9 + 4); t15 = (t10 + 4); t16 = *((unsigned int *)t7); t17 = *((unsigned int *)t14); t18 = (t16 | t17); *((unsigned int *)t15) = t18; t19 = *((unsigned int *)t15); t20 = (t19 != 0); if (t20 == 1) goto LAB24; LAB25: LAB26: t41 = (t0 + 1928); xsi_vlogvar_assign_value(t41, t10, 0, 0, 32); goto LAB23; LAB9: xsi_set_current_line(16, ng0); t3 = (t0 + 1208U); t4 = *((char **)t3); t3 = (t0 + 1368U); t7 = *((char **)t3); t11 = *((unsigned int *)t4); t12 = *((unsigned int *)t7); t13 = (t11 | t12); *((unsigned int *)t10) = t13; t3 = (t4 + 4); t8 = (t7 + 4); t9 = (t10 + 4); t16 = *((unsigned int *)t3); t17 = *((unsigned int *)t8); t18 = (t16 | t17); *((unsigned int *)t9) = t18; t19 = *((unsigned int *)t9); t20 = (t19 != 0); if (t20 == 1) goto LAB27; LAB28: LAB29: t23 = (t0 + 1928); xsi_vlogvar_assign_value(t23, t10, 0, 0, 32); goto LAB23; LAB11: xsi_set_current_line(17, ng0); t3 = (t0 + 1208U); t4 = *((char **)t3); t3 = (t0 + 1368U); t7 = *((char **)t3); memset(t10, 0, 8); xsi_vlog_unsigned_add(t10, 32, t4, 32, t7, 32); t3 = (t0 + 1928); xsi_vlogvar_assign_value(t3, t10, 0, 0, 32); goto LAB23; LAB13: xsi_set_current_line(18, ng0); t3 = (t0 + 1208U); t4 = *((char **)t3); t3 = (t0 + 1368U); t7 = *((char **)t3); memset(t10, 0, 8); xsi_vlog_unsigned_minus(t10, 32, t4, 32, t7, 32); t3 = (t0 + 1928); xsi_vlogvar_assign_value(t3, t10, 0, 0, 32); goto LAB23; LAB15: xsi_set_current_line(19, ng0); t3 = (t0 + 1208U); t4 = *((char **)t3); t3 = (t0 + 1368U); t7 = *((char **)t3); memset(t43, 0, 8); t3 = (t4 + 4); if (*((unsigned int *)t3) != 0) goto LAB31; LAB30: t8 = (t7 + 4); if (*((unsigned int *)t8) != 0) goto LAB31; LAB34: if (*((unsigned int *)t4) < *((unsigned int *)t7)) goto LAB32; LAB33: memset(t42, 0, 8); t14 = (t43 + 4); t11 = *((unsigned int *)t14); t12 = (~(t11)); t13 = *((unsigned int *)t43); t16 = (t13 & t12); t17 = (t16 & 1U); if (t17 != 0) goto LAB35; LAB36: if (*((unsigned int *)t14) != 0) goto LAB37; LAB38: t23 = (t42 + 4); t18 = *((unsigned int *)t42); t19 = *((unsigned int *)t23); t20 = (t18 || t19); if (t20 > 0) goto LAB39; LAB40: t21 = *((unsigned int *)t42); t22 = (~(t21)); t25 = *((unsigned int *)t23); t26 = (t22 || t25); if (t26 > 0) goto LAB41; LAB42: if (*((unsigned int *)t23) > 0) goto LAB43; LAB44: if (*((unsigned int *)t42) > 0) goto LAB45; LAB46: memcpy(t10, t41, 8); LAB47: t44 = (t0 + 1928); xsi_vlogvar_assign_value(t44, t10, 0, 0, 32); goto LAB23; LAB17: xsi_set_current_line(20, ng0); t3 = (t0 + 1208U); t4 = *((char **)t3); t3 = (t0 + 1368U); t7 = *((char **)t3); t11 = *((unsigned int *)t4); t12 = *((unsigned int *)t7); t13 = (t11 | t12); *((unsigned int *)t42) = t13; t3 = (t4 + 4); t8 = (t7 + 4); t9 = (t42 + 4); t16 = *((unsigned int *)t3); t17 = *((unsigned int *)t8); t18 = (t16 | t17); *((unsigned int *)t9) = t18; t19 = *((unsigned int *)t9); t20 = (t19 != 0); if (t20 == 1) goto LAB48; LAB49: LAB50: memset(t10, 0, 8); t23 = (t10 + 4); t24 = (t42 + 4); t37 = *((unsigned int *)t42); t38 = (~(t37)); *((unsigned int *)t10) = t38; *((unsigned int *)t23) = 0; if (*((unsigned int *)t24) != 0) goto LAB52; LAB51: t47 = *((unsigned int *)t10); *((unsigned int *)t10) = (t47 & 4294967295U); t48 = *((unsigned int *)t23); *((unsigned int *)t23) = (t48 & 4294967295U); t41 = (t0 + 1928); xsi_vlogvar_assign_value(t41, t10, 0, 0, 32); goto LAB23; LAB19: xsi_set_current_line(21, ng0); t3 = (t0 + 1208U); t4 = *((char **)t3); t3 = (t0 + 1368U); t7 = *((char **)t3); t11 = *((unsigned int *)t4); t12 = *((unsigned int *)t7); t13 = (t11 ^ t12); *((unsigned int *)t10) = t13; t3 = (t4 + 4); t8 = (t7 + 4); t9 = (t10 + 4); t16 = *((unsigned int *)t3); t17 = *((unsigned int *)t8); t18 = (t16 | t17); *((unsigned int *)t9) = t18; t19 = *((unsigned int *)t9); t20 = (t19 != 0); if (t20 == 1) goto LAB53; LAB54: LAB55: t14 = (t0 + 1928); xsi_vlogvar_assign_value(t14, t10, 0, 0, 32); goto LAB23; LAB24: t21 = *((unsigned int *)t10); t22 = *((unsigned int *)t15); *((unsigned int *)t10) = (t21 | t22); t23 = (t8 + 4); t24 = (t9 + 4); t25 = *((unsigned int *)t8); t26 = (~(t25)); t27 = *((unsigned int *)t23); t28 = (~(t27)); t29 = *((unsigned int *)t9); t30 = (~(t29)); t31 = *((unsigned int *)t24); t32 = (~(t31)); t33 = (t26 & t28); t34 = (t30 & t32); t35 = (~(t33)); t36 = (~(t34)); t37 = *((unsigned int *)t15); *((unsigned int *)t15) = (t37 & t35); t38 = *((unsigned int *)t15); *((unsigned int *)t15) = (t38 & t36); t39 = *((unsigned int *)t10); *((unsigned int *)t10) = (t39 & t35); t40 = *((unsigned int *)t10); *((unsigned int *)t10) = (t40 & t36); goto LAB26; LAB27: t21 = *((unsigned int *)t10); t22 = *((unsigned int *)t9); *((unsigned int *)t10) = (t21 | t22); t14 = (t4 + 4); t15 = (t7 + 4); t25 = *((unsigned int *)t14); t26 = (~(t25)); t27 = *((unsigned int *)t4); t33 = (t27 & t26); t28 = *((unsigned int *)t15); t29 = (~(t28)); t30 = *((unsigned int *)t7); t34 = (t30 & t29); t31 = (~(t33)); t32 = (~(t34)); t35 = *((unsigned int *)t9); *((unsigned int *)t9) = (t35 & t31); t36 = *((unsigned int *)t9); *((unsigned int *)t9) = (t36 & t32); goto LAB29; LAB31: t9 = (t43 + 4); *((unsigned int *)t43) = 1; *((unsigned int *)t9) = 1; goto LAB33; LAB32: *((unsigned int *)t43) = 1; goto LAB33; LAB35: *((unsigned int *)t42) = 1; goto LAB38; LAB37: t15 = (t42 + 4); *((unsigned int *)t42) = 1; *((unsigned int *)t15) = 1; goto LAB38; LAB39: t24 = ((char*)((ng2))); goto LAB40; LAB41: t41 = ((char*)((ng1))); goto LAB42; LAB43: xsi_vlog_unsigned_bit_combine(t10, 32, t24, 32, t41, 32); goto LAB47; LAB45: memcpy(t10, t24, 8); goto LAB47; LAB48: t21 = *((unsigned int *)t42); t22 = *((unsigned int *)t9); *((unsigned int *)t42) = (t21 | t22); t14 = (t4 + 4); t15 = (t7 + 4); t25 = *((unsigned int *)t14); t26 = (~(t25)); t27 = *((unsigned int *)t4); t33 = (t27 & t26); t28 = *((unsigned int *)t15); t29 = (~(t28)); t30 = *((unsigned int *)t7); t34 = (t30 & t29); t31 = (~(t33)); t32 = (~(t34)); t35 = *((unsigned int *)t9); *((unsigned int *)t9) = (t35 & t31); t36 = *((unsigned int *)t9); *((unsigned int *)t9) = (t36 & t32); goto LAB50; LAB52: t39 = *((unsigned int *)t10); t40 = *((unsigned int *)t24); *((unsigned int *)t10) = (t39 | t40); t45 = *((unsigned int *)t23); t46 = *((unsigned int *)t24); *((unsigned int *)t23) = (t45 | t46); goto LAB51; LAB53: t21 = *((unsigned int *)t10); t22 = *((unsigned int *)t9); *((unsigned int *)t10) = (t21 | t22); goto LAB55; } extern void work_m_05774762672483521687_2725559894_init() { static char *pe[] = {(void *)Cont_11_0,(void *)Always_13_1}; xsi_register_didat("work_m_05774762672483521687_2725559894", "isim/testbench_isim_beh.exe.sim/work/m_05774762672483521687_2725559894.didat"); xsi_register_executes(pe); }