/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ */ /* \ \ 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 #ifdef __GNUC__ #include #else #include #define alloca _alloca #endif static const char *ng0 = "D:/Xilinux/Lab3/Lab3_1/dp_memory.v"; static const char *ng1 = "./sw/test.rom"; static int ng2[] = {0, 0}; static void Initial_23_0(char *t0) { char *t1; LAB0: xsi_set_current_line(23, ng0); LAB2: xsi_set_current_line(24, ng0); t1 = (t0 + 2728); xsi_vlogfile_readmemh(ng1, 0, t1, 0, 0, 0, 0); LAB1: return; } static void Always_28_1(char *t0) { char t13[8]; char t14[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 *t15; char *t16; char *t17; char *t18; char *t19; char *t20; char *t21; char *t22; unsigned int t23; int t24; char *t25; unsigned int t26; int t27; int t28; unsigned int t29; unsigned int t30; int t31; int t32; LAB0: t1 = (t0 + 3896U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(28, ng0); t2 = (t0 + 4712); *((int *)t2) = 1; t3 = (t0 + 3928); *((char **)t3) = t2; *((char **)t1) = &&LAB4; LAB1: return; LAB4: xsi_set_current_line(28, ng0); LAB5: xsi_set_current_line(29, ng0); t4 = (t0 + 1848U); 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: goto LAB2; LAB6: xsi_set_current_line(30, ng0); t11 = (t0 + 2168U); t12 = *((char **)t11); t11 = (t0 + 2728); t15 = (t0 + 2728); t16 = (t15 + 72U); t17 = *((char **)t16); t18 = (t0 + 2728); t19 = (t18 + 64U); t20 = *((char **)t19); t21 = (t0 + 2008U); t22 = *((char **)t21); xsi_vlog_generic_convert_array_indices(t13, t14, t17, t20, 2, 1, t22, 32, 2); t21 = (t13 + 4); t23 = *((unsigned int *)t21); t24 = (!(t23)); t25 = (t14 + 4); t26 = *((unsigned int *)t25); t27 = (!(t26)); t28 = (t24 && t27); if (t28 == 1) goto LAB9; LAB10: goto LAB8; LAB9: t29 = *((unsigned int *)t13); t30 = *((unsigned int *)t14); t31 = (t29 - t30); t32 = (t31 + 1); xsi_vlogvar_wait_assign_value(t11, t12, 0, *((unsigned int *)t14), t32, 0LL); goto LAB10; } static void Cont_33_2(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; unsigned int t28; unsigned int t29; unsigned int t30; unsigned int t31; char *t32; char *t33; char *t34; char *t35; char *t36; char *t37; LAB0: t1 = (t0 + 4144U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(33, ng0); t2 = (t0 + 1208U); 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: t28 = *((unsigned int *)t4); t29 = (~(t28)); t30 = *((unsigned int *)t12); t31 = (t29 || t30); if (t31 > 0) goto LAB10; LAB11: if (*((unsigned int *)t12) > 0) goto LAB12; LAB13: if (*((unsigned int *)t4) > 0) goto LAB14; LAB15: memcpy(t3, t26, 8); LAB16: t32 = (t0 + 4824); t33 = (t32 + 56U); t34 = *((char **)t33); t35 = (t34 + 56U); t36 = *((char **)t35); memcpy(t36, t3, 8); xsi_driver_vfirst_trans(t32, 0, 31); t37 = (t0 + 4728); *((int *)t37) = 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 + 2728); t17 = (t16 + 56U); t18 = *((char **)t17); t20 = (t0 + 2728); t21 = (t20 + 72U); t22 = *((char **)t21); t23 = (t0 + 2728); t24 = (t23 + 64U); t25 = *((char **)t24); t26 = (t0 + 1368U); t27 = *((char **)t26); xsi_vlog_generic_get_array_select_value(t19, 32, t18, t22, t25, 2, 1, t27, 32, 2); goto LAB9; LAB10: t26 = ((char*)((ng2))); goto LAB11; LAB12: xsi_vlog_unsigned_bit_combine(t3, 32, t19, 32, t26, 32); goto LAB16; LAB14: memcpy(t3, t19, 8); goto LAB16; } static void Cont_34_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; unsigned int t28; unsigned int t29; unsigned int t30; unsigned int t31; char *t32; char *t33; char *t34; char *t35; char *t36; char *t37; LAB0: t1 = (t0 + 4392U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(34, ng0); t2 = (t0 + 1688U); 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: t28 = *((unsigned int *)t4); t29 = (~(t28)); t30 = *((unsigned int *)t12); t31 = (t29 || t30); if (t31 > 0) goto LAB10; LAB11: if (*((unsigned int *)t12) > 0) goto LAB12; LAB13: if (*((unsigned int *)t4) > 0) goto LAB14; LAB15: memcpy(t3, t26, 8); LAB16: t32 = (t0 + 4888); t33 = (t32 + 56U); t34 = *((char **)t33); t35 = (t34 + 56U); t36 = *((char **)t35); memcpy(t36, t3, 8); xsi_driver_vfirst_trans(t32, 0, 31); t37 = (t0 + 4744); *((int *)t37) = 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 + 2728); t17 = (t16 + 56U); t18 = *((char **)t17); t20 = (t0 + 2728); t21 = (t20 + 72U); t22 = *((char **)t21); t23 = (t0 + 2728); t24 = (t23 + 64U); t25 = *((char **)t24); t26 = (t0 + 2008U); t27 = *((char **)t26); xsi_vlog_generic_get_array_select_value(t19, 32, t18, t22, t25, 2, 1, t27, 32, 2); goto LAB9; LAB10: t26 = ((char*)((ng2))); goto LAB11; LAB12: xsi_vlog_unsigned_bit_combine(t3, 32, t19, 32, t26, 32); goto LAB16; LAB14: memcpy(t3, t19, 8); goto LAB16; } extern void work_m_00000000004275010940_2404318123_init() { static char *pe[] = {(void *)Initial_23_0,(void *)Always_28_1,(void *)Cont_33_2,(void *)Cont_34_3}; xsi_register_didat("work_m_00000000004275010940_2404318123", "isim/testbench_isim_beh.exe.sim/work/m_00000000004275010940_2404318123.didat"); xsi_register_executes(pe); }