URL
https://opencores.org/ocsvn/fluid_core_2/fluid_core_2/trunk
Subversion Repositories fluid_core_2
[/] [fluid_core_2/] [trunk/] [xilinx14.5 project/] [isim/] [tb_Test_Bed_isim_beh.exe.sim/] [work/] [m_00000000002117167501_3908322909.c] - Rev 4
Compare with Previous | Blame | View Log
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ */ /* \ \ Copyright (c) 2003-2009 Xilinx, Inc. */ /* / / All Right Reserved. */ /* /---/ /\ */ /* \ \ / \ */ /* \___\/\___\ */ /***********************************************************************/ /* This file is designed for use with ISim build 0x7708f090 */ #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 = "C:/Users/Azmath/Documents/M Tech Project/FC2/interrupt_unit.v"; static int ng1[] = {1, 0}; static int ng2[] = {0, 0}; static int ng3[] = {3, 0}; static unsigned int ng4[] = {0U, 4294967295U}; static int sp_log2(char *t1, char *t2) { char t7[8]; char t18[8]; int t0; char *t3; char *t4; char *t5; char *t6; char *t8; unsigned int t9; unsigned int t10; unsigned int t11; unsigned int t12; unsigned int t13; char *t14; char *t15; char *t16; char *t17; char *t19; LAB0: t0 = 1; xsi_set_current_line(48, ng0); LAB2: xsi_set_current_line(49, ng0); t3 = (t1 + 3960); t4 = (t3 + 56U); t5 = *((char **)t4); t6 = ((char*)((ng1))); memset(t7, 0, 8); xsi_vlog_signed_minus(t7, 32, t5, 32, t6, 32); t8 = (t1 + 3960); xsi_vlogvar_assign_value(t8, t7, 0, 0, 32); xsi_set_current_line(50, ng0); xsi_set_current_line(50, ng0); t3 = ((char*)((ng2))); t4 = (t1 + 3800); xsi_vlogvar_assign_value(t4, t3, 0, 0, 32); LAB3: t3 = (t1 + 3960); t4 = (t3 + 56U); t5 = *((char **)t4); t6 = ((char*)((ng2))); memset(t7, 0, 8); xsi_vlog_signed_greater(t7, 32, t5, 32, t6, 32); t8 = (t7 + 4); t9 = *((unsigned int *)t8); t10 = (~(t9)); t11 = *((unsigned int *)t7); t12 = (t11 & t10); t13 = (t12 != 0); if (t13 > 0) goto LAB4; LAB5: t0 = 0; LAB1: return t0; LAB4: xsi_set_current_line(51, ng0); t14 = (t1 + 3960); t15 = (t14 + 56U); t16 = *((char **)t15); t17 = ((char*)((ng1))); memset(t18, 0, 8); xsi_vlog_signed_rshift(t18, 32, t16, 32, t17, 32); t19 = (t1 + 3960); xsi_vlogvar_assign_value(t19, t18, 0, 0, 32); xsi_set_current_line(50, ng0); t3 = (t1 + 3800); 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 + 3800); xsi_vlogvar_assign_value(t8, t7, 0, 0, 32); goto LAB3; } static void Always_20_0(char *t0) { char t6[8]; char t15[8]; char t22[8]; char *t1; char *t2; char *t3; char *t4; char *t5; char *t7; unsigned int t8; unsigned int t9; unsigned int t10; unsigned int t11; unsigned int t12; char *t13; char *t14; char *t16; char *t17; char *t18; char *t19; char *t20; char *t21; 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; unsigned int t33; unsigned int t34; unsigned int t35; unsigned int t36; char *t37; char *t38; unsigned int t39; unsigned int t40; unsigned int t41; unsigned int t42; unsigned int t43; char *t44; char *t45; char *t46; char *t47; LAB0: t1 = (t0 + 4880U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(20, ng0); t2 = (t0 + 6192); *((int *)t2) = 1; t3 = (t0 + 4912); *((char **)t3) = t2; *((char **)t1) = &&LAB4; LAB1: return; LAB4: xsi_set_current_line(20, ng0); LAB5: xsi_set_current_line(21, ng0); xsi_set_current_line(21, ng0); t4 = ((char*)((ng3))); t5 = (t0 + 3640); xsi_vlogvar_assign_value(t5, t4, 0, 0, 32); LAB6: t2 = (t0 + 3640); t3 = (t2 + 56U); t4 = *((char **)t3); t5 = ((char*)((ng2))); memset(t6, 0, 8); xsi_vlog_signed_greatereq(t6, 32, t4, 32, t5, 32); t7 = (t6 + 4); t8 = *((unsigned int *)t7); t9 = (~(t8)); t10 = *((unsigned int *)t6); t11 = (t10 & t9); t12 = (t11 != 0); if (t12 > 0) goto LAB7; LAB8: goto LAB2; LAB7: xsi_set_current_line(21, ng0); LAB9: xsi_set_current_line(22, ng0); t13 = (t0 + 1640U); t14 = *((char **)t13); t13 = (t0 + 1600U); t16 = (t13 + 72U); t17 = *((char **)t16); t18 = (t0 + 3640); t19 = (t18 + 56U); t20 = *((char **)t19); xsi_vlog_generic_get_index_select_value(t15, 32, t14, t17, 2, t20, 32, 1); t21 = ((char*)((ng1))); memset(t22, 0, 8); t23 = (t15 + 4); t24 = (t21 + 4); t25 = *((unsigned int *)t15); t26 = *((unsigned int *)t21); t27 = (t25 ^ t26); t28 = *((unsigned int *)t23); t29 = *((unsigned int *)t24); t30 = (t28 ^ t29); t31 = (t27 | t30); t32 = *((unsigned int *)t23); t33 = *((unsigned int *)t24); t34 = (t32 | t33); t35 = (~(t34)); t36 = (t31 & t35); if (t36 != 0) goto LAB13; LAB10: if (t34 != 0) goto LAB12; LAB11: *((unsigned int *)t22) = 1; LAB13: t38 = (t22 + 4); t39 = *((unsigned int *)t38); t40 = (~(t39)); t41 = *((unsigned int *)t22); t42 = (t41 & t40); t43 = (t42 != 0); if (t43 > 0) goto LAB14; LAB15: LAB16: xsi_set_current_line(21, ng0); t2 = (t0 + 3640); t3 = (t2 + 56U); t4 = *((char **)t3); t5 = ((char*)((ng1))); memset(t6, 0, 8); xsi_vlog_signed_minus(t6, 32, t4, 32, t5, 32); t7 = (t0 + 3640); xsi_vlogvar_assign_value(t7, t6, 0, 0, 32); goto LAB6; LAB12: t37 = (t22 + 4); *((unsigned int *)t22) = 1; *((unsigned int *)t37) = 1; goto LAB13; LAB14: xsi_set_current_line(22, ng0); LAB17: xsi_set_current_line(23, ng0); t44 = (t0 + 3640); t45 = (t44 + 56U); t46 = *((char **)t45); t47 = (t0 + 3480); xsi_vlogvar_wait_assign_value(t47, t46, 0, 0, 2, 0LL); goto LAB16; } static void Initial_27_1(char *t0) { char *t1; char *t2; LAB0: xsi_set_current_line(27, ng0); LAB2: xsi_set_current_line(28, ng0); t1 = ((char*)((ng1))); t2 = (t0 + 3320); xsi_vlogvar_wait_assign_value(t2, t1, 0, 0, 1, 0LL); LAB1: return; } static void Cont_30_2(char *t0) { char t3[8]; char t8[8]; char t49[8]; char *t1; char *t2; char *t4; char *t5; char *t6; char *t7; unsigned int t9; unsigned int t10; unsigned int t11; char *t12; char *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; unsigned int t28; unsigned int t29; unsigned int t30; int t31; int t32; unsigned int t33; unsigned int t34; unsigned int t35; unsigned int t36; unsigned int t37; unsigned int t38; char *t39; unsigned int t40; unsigned int t41; unsigned int t42; unsigned int t43; unsigned int t44; char *t45; char *t46; char *t47; char *t48; unsigned int t50; unsigned int t51; unsigned int t52; char *t53; char *t54; char *t55; unsigned int t56; unsigned int t57; unsigned int t58; unsigned int t59; unsigned int t60; unsigned int t61; unsigned int t62; char *t63; char *t64; unsigned int t65; unsigned int t66; unsigned int t67; unsigned int t68; unsigned int t69; unsigned int t70; unsigned int t71; unsigned int t72; int t73; int t74; unsigned int t75; unsigned int t76; unsigned int t77; unsigned int t78; unsigned int t79; unsigned int t80; char *t81; char *t82; char *t83; char *t84; char *t85; unsigned int t86; unsigned int t87; char *t88; unsigned int t89; unsigned int t90; char *t91; unsigned int t92; unsigned int t93; char *t94; LAB0: t1 = (t0 + 5376U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(30, ng0); t2 = (t0 + 3160); t4 = (t2 + 56U); t5 = *((char **)t4); t6 = (t0 + 1640U); t7 = *((char **)t6); t9 = *((unsigned int *)t5); t10 = *((unsigned int *)t7); t11 = (t9 & t10); *((unsigned int *)t8) = t11; t6 = (t5 + 4); t12 = (t7 + 4); t13 = (t8 + 4); t14 = *((unsigned int *)t6); t15 = *((unsigned int *)t12); t16 = (t14 | t15); *((unsigned int *)t13) = t16; t17 = *((unsigned int *)t13); t18 = (t17 != 0); if (t18 == 1) goto LAB4; LAB5: LAB6: memset(t3, 0, 8); t39 = (t8 + 4); t40 = *((unsigned int *)t39); t41 = (~(t40)); t42 = *((unsigned int *)t8); t43 = (t42 & t41); t44 = (t43 & 15U); if (t44 != 0) goto LAB7; LAB8: if (*((unsigned int *)t39) != 0) goto LAB9; LAB10: t46 = (t0 + 3320); t47 = (t46 + 56U); t48 = *((char **)t47); t50 = *((unsigned int *)t3); t51 = *((unsigned int *)t48); t52 = (t50 & t51); *((unsigned int *)t49) = t52; t53 = (t3 + 4); t54 = (t48 + 4); t55 = (t49 + 4); t56 = *((unsigned int *)t53); t57 = *((unsigned int *)t54); t58 = (t56 | t57); *((unsigned int *)t55) = t58; t59 = *((unsigned int *)t55); t60 = (t59 != 0); if (t60 == 1) goto LAB11; LAB12: LAB13: t81 = (t0 + 6320); t82 = (t81 + 56U); t83 = *((char **)t82); t84 = (t83 + 56U); t85 = *((char **)t84); memset(t85, 0, 8); t86 = 1U; t87 = t86; t88 = (t49 + 4); t89 = *((unsigned int *)t49); t86 = (t86 & t89); t90 = *((unsigned int *)t88); t87 = (t87 & t90); t91 = (t85 + 4); t92 = *((unsigned int *)t85); *((unsigned int *)t85) = (t92 | t86); t93 = *((unsigned int *)t91); *((unsigned int *)t91) = (t93 | t87); xsi_driver_vfirst_trans(t81, 0, 0); t94 = (t0 + 6208); *((int *)t94) = 1; LAB1: return; LAB4: t19 = *((unsigned int *)t8); t20 = *((unsigned int *)t13); *((unsigned int *)t8) = (t19 | t20); t21 = (t5 + 4); t22 = (t7 + 4); t23 = *((unsigned int *)t5); t24 = (~(t23)); t25 = *((unsigned int *)t21); t26 = (~(t25)); t27 = *((unsigned int *)t7); t28 = (~(t27)); t29 = *((unsigned int *)t22); t30 = (~(t29)); t31 = (t24 & t26); t32 = (t28 & t30); t33 = (~(t31)); t34 = (~(t32)); t35 = *((unsigned int *)t13); *((unsigned int *)t13) = (t35 & t33); t36 = *((unsigned int *)t13); *((unsigned int *)t13) = (t36 & t34); t37 = *((unsigned int *)t8); *((unsigned int *)t8) = (t37 & t33); t38 = *((unsigned int *)t8); *((unsigned int *)t8) = (t38 & t34); goto LAB6; LAB7: *((unsigned int *)t3) = 1; goto LAB10; LAB9: t45 = (t3 + 4); *((unsigned int *)t3) = 1; *((unsigned int *)t45) = 1; goto LAB10; LAB11: t61 = *((unsigned int *)t49); t62 = *((unsigned int *)t55); *((unsigned int *)t49) = (t61 | t62); t63 = (t3 + 4); t64 = (t48 + 4); t65 = *((unsigned int *)t3); t66 = (~(t65)); t67 = *((unsigned int *)t63); t68 = (~(t67)); t69 = *((unsigned int *)t48); t70 = (~(t69)); t71 = *((unsigned int *)t64); t72 = (~(t71)); t73 = (t66 & t68); t74 = (t70 & t72); t75 = (~(t73)); t76 = (~(t74)); t77 = *((unsigned int *)t55); *((unsigned int *)t55) = (t77 & t75); t78 = *((unsigned int *)t55); *((unsigned int *)t55) = (t78 & t76); t79 = *((unsigned int *)t49); *((unsigned int *)t49) = (t79 & t75); t80 = *((unsigned int *)t49); *((unsigned int *)t49) = (t80 & t76); goto LAB13; } static void Cont_31_3(char *t0) { char t3[8]; char t4[8]; char t19[8]; char *t1; char *t2; char *t5; unsigned int t6; unsigned int t7; unsigned int t8; unsigned int t9; unsigned int t10; char *t11; char *t12; unsigned int t13; unsigned int t14; unsigned int t15; char *t16; char *t17; char *t18; char *t20; char *t21; char *t22; char *t23; char *t24; char *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; char *t37; char *t38; unsigned int t39; unsigned int t40; char *t41; unsigned int t42; unsigned int t43; char *t44; unsigned int t45; unsigned int t46; char *t47; LAB0: t1 = (t0 + 5624U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(31, ng0); t2 = (t0 + 2440U); t5 = *((char **)t2); memset(t4, 0, 8); t2 = (t5 + 4); t6 = *((unsigned int *)t2); t7 = (~(t6)); t8 = *((unsigned int *)t5); t9 = (t8 & t7); t10 = (t9 & 1U); if (t10 != 0) goto LAB4; LAB5: if (*((unsigned int *)t2) != 0) goto LAB6; LAB7: t12 = (t4 + 4); t13 = *((unsigned int *)t4); t14 = *((unsigned int *)t12); t15 = (t13 || t14); if (t15 > 0) goto LAB8; LAB9: t29 = *((unsigned int *)t4); t30 = (~(t29)); t31 = *((unsigned int *)t12); t32 = (t30 || t31); if (t32 > 0) goto LAB10; LAB11: if (*((unsigned int *)t12) > 0) goto LAB12; LAB13: if (*((unsigned int *)t4) > 0) goto LAB14; LAB15: memcpy(t3, t33, 8); LAB16: t34 = (t0 + 6384); t35 = (t34 + 56U); t36 = *((char **)t35); t37 = (t36 + 56U); t38 = *((char **)t37); memset(t38, 0, 8); t39 = 63U; t40 = t39; t41 = (t3 + 4); t42 = *((unsigned int *)t3); t39 = (t39 & t42); t43 = *((unsigned int *)t41); t40 = (t40 & t43); t44 = (t38 + 4); t45 = *((unsigned int *)t38); *((unsigned int *)t38) = (t45 | t39); t46 = *((unsigned int *)t44); *((unsigned int *)t44) = (t46 | t40); xsi_driver_vfirst_trans(t34, 0, 5); t47 = (t0 + 6224); *((int *)t47) = 1; LAB1: return; LAB4: *((unsigned int *)t4) = 1; goto LAB7; LAB6: t11 = (t4 + 4); *((unsigned int *)t4) = 1; *((unsigned int *)t11) = 1; goto LAB7; LAB8: t16 = (t0 + 3000); t17 = (t16 + 56U); t18 = *((char **)t17); t20 = (t0 + 3000); t21 = (t20 + 72U); t22 = *((char **)t21); t23 = (t0 + 3000); t24 = (t23 + 64U); t25 = *((char **)t24); t26 = (t0 + 3480); t27 = (t26 + 56U); t28 = *((char **)t27); xsi_vlog_generic_get_array_select_value(t19, 32, t18, t22, t25, 2, 1, t28, 2, 2); goto LAB9; LAB10: t33 = ((char*)((ng4))); goto LAB11; LAB12: xsi_vlog_unsigned_bit_combine(t3, 32, t19, 32, t33, 32); goto LAB16; LAB14: memcpy(t3, t19, 8); goto LAB16; } static void Always_33_4(char *t0) { char t13[8]; char t37[8]; char *t1; char *t2; char *t3; char *t4; char *t5; unsigned int t6; unsigned int t7; unsigned int t8; unsigned int t9; unsigned int t10; char *t11; char *t12; 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; 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; unsigned int t33; unsigned int t34; char *t35; char *t36; int t38; int t39; int t40; int t41; int t42; LAB0: t1 = (t0 + 5872U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(33, ng0); t2 = (t0 + 6240); *((int *)t2) = 1; t3 = (t0 + 5904); *((char **)t3) = t2; *((char **)t1) = &&LAB4; LAB1: return; LAB4: xsi_set_current_line(33, ng0); LAB5: xsi_set_current_line(34, ng0); t4 = (t0 + 2120U); t5 = *((char **)t4); t4 = (t5 + 4); t6 = *((unsigned int *)t4); t7 = (~(t6)); t8 = *((unsigned int *)t5); t9 = (t8 & t7); t10 = (t9 != 0); if (t10 > 0) goto LAB6; LAB7: LAB8: xsi_set_current_line(40, ng0); t2 = (t0 + 2440U); t3 = *((char **)t2); t2 = (t3 + 4); t6 = *((unsigned int *)t2); t7 = (~(t6)); t8 = *((unsigned int *)t3); t9 = (t8 & t7); t10 = (t9 != 0); if (t10 > 0) goto LAB20; LAB21: xsi_set_current_line(41, ng0); t2 = (t0 + 2280U); t3 = *((char **)t2); t2 = (t3 + 4); t6 = *((unsigned int *)t2); t7 = (~(t6)); t8 = *((unsigned int *)t3); t9 = (t8 & t7); t10 = (t9 != 0); if (t10 > 0) goto LAB23; LAB24: LAB25: LAB22: goto LAB2; LAB6: xsi_set_current_line(34, ng0); LAB9: xsi_set_current_line(35, ng0); t11 = (t0 + 1800U); t12 = *((char **)t11); t11 = ((char*)((ng2))); memset(t13, 0, 8); t14 = (t12 + 4); t15 = (t11 + 4); t16 = *((unsigned int *)t12); t17 = *((unsigned int *)t11); t18 = (t16 ^ t17); t19 = *((unsigned int *)t14); t20 = *((unsigned int *)t15); t21 = (t19 ^ t20); t22 = (t18 | t21); t23 = *((unsigned int *)t14); t24 = *((unsigned int *)t15); t25 = (t23 | t24); t26 = (~(t25)); t27 = (t22 & t26); if (t27 != 0) goto LAB13; LAB10: if (t25 != 0) goto LAB12; LAB11: *((unsigned int *)t13) = 1; LAB13: t29 = (t13 + 4); t30 = *((unsigned int *)t29); t31 = (~(t30)); t32 = *((unsigned int *)t13); t33 = (t32 & t31); t34 = (t33 != 0); if (t34 > 0) goto LAB14; LAB15: xsi_set_current_line(36, ng0); LAB17: xsi_set_current_line(37, ng0); t2 = (t0 + 1960U); t3 = *((char **)t2); t2 = (t0 + 3000); t4 = (t0 + 3000); t5 = (t4 + 72U); t11 = *((char **)t5); t12 = (t0 + 3000); t14 = (t12 + 64U); t15 = *((char **)t14); t28 = (t0 + 1800U); t29 = *((char **)t28); xsi_vlog_generic_convert_array_indices(t13, t37, t11, t15, 2, 1, t29, 3, 2); t28 = (t13 + 4); t6 = *((unsigned int *)t28); t38 = (!(t6)); t35 = (t37 + 4); t7 = *((unsigned int *)t35); t39 = (!(t7)); t40 = (t38 && t39); if (t40 == 1) goto LAB18; LAB19: LAB16: goto LAB8; LAB12: t28 = (t13 + 4); *((unsigned int *)t13) = 1; *((unsigned int *)t28) = 1; goto LAB13; LAB14: xsi_set_current_line(35, ng0); t35 = (t0 + 1960U); t36 = *((char **)t35); t35 = (t0 + 3160); xsi_vlogvar_wait_assign_value(t35, t36, 0, 0, 4, 0LL); goto LAB16; LAB18: t8 = *((unsigned int *)t13); t9 = *((unsigned int *)t37); t41 = (t8 - t9); t42 = (t41 + 1); xsi_vlogvar_wait_assign_value(t2, t3, 0, *((unsigned int *)t37), t42, 0LL); goto LAB19; LAB20: xsi_set_current_line(40, ng0); t4 = ((char*)((ng2))); t5 = (t0 + 3320); xsi_vlogvar_wait_assign_value(t5, t4, 0, 0, 1, 0LL); goto LAB22; LAB23: xsi_set_current_line(41, ng0); t4 = ((char*)((ng1))); t5 = (t0 + 3320); xsi_vlogvar_wait_assign_value(t5, t4, 0, 0, 1, 0LL); goto LAB25; } extern void work_m_00000000002117167501_3908322909_init() { static char *pe[] = {(void *)Always_20_0,(void *)Initial_27_1,(void *)Cont_30_2,(void *)Cont_31_3,(void *)Always_33_4}; static char *se[] = {(void *)sp_log2}; xsi_register_didat("work_m_00000000002117167501_3908322909", "isim/tb_Test_Bed_isim_beh.exe.sim/work/m_00000000002117167501_3908322909.didat"); xsi_register_executes(pe); xsi_register_subprogram_executes(se); }