m_00000000001864443149_3649235597.c

来自「verilog code for 3 bit sequence detector」· C语言 代码 · 共 259 行

C
259
字号
/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                         */
/*  \   \        Copyright (c) 2003-2007 Xilinx, Inc.                 */
/*  /   /        All Right Reserved.                                  */
/* /---/   /\                                                         */
/* \   \  /  \                                                        */
/*  \___\/\___\                                                       */
/**********************************************************************/

/* This file is designed for use with ISim build 0xef153c89 */

#include "xsi.h"
#include <memory.h>
#ifdef __GNUC__
#include <stdlib.h>
#else
#include <malloc.h>
#define alloca _alloca
#endif
static const char *ng0 = "D:/Projects/verilog/New Folder/sequencedetector/seqdet.v";
static int ng1[] = {0, 0};
static unsigned int ng2[] = {5U, 0U};
static int ng3[] = {1, 0};

static void NR76_2(char *);


static void I31_0(char *t0)
{
    char t10[8];
    char t31[8];
    char *t1;
    char *t2;
    unsigned int t3;
    unsigned int t4;
    unsigned int t5;
    unsigned int t6;
    unsigned int t7;
    char *t8;
    char *t9;
    unsigned int t11;
    char *t12;
    char *t13;
    char *t14;
    unsigned int t15;
    unsigned int t16;
    unsigned int t17;
    unsigned int t18;
    unsigned int t19;
    unsigned int t20;
    char *t21;
    unsigned int t22;
    unsigned int t23;
    unsigned int t24;
    unsigned int t25;
    unsigned int t26;
    char *t27;
    char *t28;
    char *t29;
    char *t30;
    char *t32;

LAB0:    xsi_set_current_line(32, ng0);

LAB2:    xsi_set_current_line(33, ng0);
    t1 = (t0 + 652U);
    t2 = *((char **)t1);
    t1 = (t2 + 4U);
    t3 = *((unsigned int *)t1);
    t4 = (~(t3));
    t5 = *((unsigned int *)t2);
    t6 = (t5 & t4);
    t7 = (t6 != 0);
    if (t7 > 0)
        goto LAB3;

LAB4:    xsi_set_current_line(52, ng0);

LAB7:    xsi_set_current_line(69, ng0);
    t1 = (t0 + 564U);
    t2 = *((char **)t1);
    memset(t10, 0, 8);
    t1 = (t10 + 4U);
    t8 = (t2 + 4U);
    t3 = *((unsigned int *)t2);
    t4 = (t3 >> 0);
    *((unsigned int *)t10) = t4;
    t5 = *((unsigned int *)t8);
    t6 = (t5 >> 0);
    *((unsigned int *)t1) = t6;
    t7 = *((unsigned int *)t10);
    *((unsigned int *)t10) = (t7 & 7U);
    t11 = *((unsigned int *)t1);
    *((unsigned int *)t1) = (t11 & 7U);
    t9 = (t0 + 1056);
    xsi_vlogvar_assign_value(t9, t10, 0, 0, 3);
    xsi_set_current_line(70, ng0);
    t1 = (t0 + 1056);
    t2 = (t1 + 32U);
    t8 = *((char **)t2);
    t9 = ((char*)((ng2)));
    memset(t10, 0, 8);
    t12 = (t10 + 4U);
    t13 = (t8 + 4U);
    t14 = (t9 + 4U);
    t3 = *((unsigned int *)t8);
    t4 = *((unsigned int *)t9);
    t5 = (t3 ^ t4);
    t6 = *((unsigned int *)t13);
    t7 = *((unsigned int *)t14);
    t11 = (t6 ^ t7);
    t15 = (t5 | t11);
    t16 = *((unsigned int *)t13);
    t17 = *((unsigned int *)t14);
    t18 = (t16 | t17);
    t19 = (~(t18));
    t20 = (t15 & t19);
    if (t20 != 0)
        goto LAB11;

LAB8:    if (t18 != 0)
        goto LAB10;

LAB9:    *((unsigned int *)t10) = 1;

LAB11:    t21 = (t10 + 4U);
    t22 = *((unsigned int *)t21);
    t23 = (~(t22));
    t24 = *((unsigned int *)t10);
    t25 = (t24 & t23);
    t26 = (t25 != 0);
    if (t26 > 0)
        goto LAB12;

LAB13:
LAB14:
LAB5:
LAB1:    return;
LAB3:    xsi_set_current_line(34, ng0);

LAB6:    xsi_set_current_line(35, ng0);
    t8 = ((char*)((ng1)));
    t9 = (t0 + 1056);
    xsi_vlogvar_assign_value(t9, t8, 0, 0, 3);
    xsi_set_current_line(36, ng0);
    t1 = ((char*)((ng1)));
    t2 = (t0 + 1148);
    xsi_vlogvar_assign_value(t2, t1, 0, 0, 1);
    goto LAB5;

LAB10:    *((unsigned int *)t10) = 1;
    *((unsigned int *)t12) = 1;
    goto LAB11;

LAB12:    xsi_set_current_line(71, ng0);
    t27 = (t0 + 1148);
    t28 = (t27 + 32U);
    t29 = *((char **)t28);
    t30 = ((char*)((ng3)));
    memset(t31, 0, 8);
    xsi_vlog_unsigned_add(t31, 32, t29, 1, t30, 32);
    t32 = (t0 + 1148);
    xsi_vlogvar_assign_value(t32, t31, 0, 0, 1);
    goto LAB14;

}

static void A75_1(char *t0)
{
    char *t1;
    char *t2;
    char *t3;
    char *t4;
    char *t5;

LAB0:    t1 = (t0 + 1752U);
    t2 = *((char **)t1);
    if (t2 == 0)
        goto LAB2;

LAB3:    goto *t2;

LAB2:    xsi_set_current_line(75, ng0);
    t2 = (t0 + 2060);
    *((int *)t2) = 1;
    t3 = (t0 + 1780);
    *((char **)t3) = t2;
    *((char **)t1) = &&LAB4;

LAB1:    return;
LAB4:    xsi_set_current_line(76, ng0);
    t4 = (t0 + 964);
    xsi_set_assignedflag(t4);
    t5 = (t0 + 3152);
    *((int *)t5) = 1;
    NR76_2(t0);
    goto LAB2;

}

static void NR76_2(char *t0)
{
    char t6[8];
    char *t1;
    char *t2;
    unsigned int t3;
    char *t4;
    char *t5;
    char *t7;
    char *t8;
    char *t9;
    char *t10;

LAB0:    t1 = (t0 + 1880U);
    t2 = *((char **)t1);
    if (t2 == 0)
        goto LAB2;

LAB3:    goto *t2;

LAB2:    t3 = 0;
    t2 = (t0 + 1148);
    t4 = (t2 + 32U);
    t5 = *((char **)t4);
    memcpy(t6, t5, 8);
    t7 = (t0 + 3152);
    if (*((int *)t7) > 0)
        goto LAB4;

LAB5:    if (t3 > 0)
        goto LAB6;

LAB7:    t10 = (t0 + 2068);
    *((int *)t10) = 0;

LAB8:
LAB1:    return;
LAB4:    t8 = (t0 + 964);
    xsi_vlogvar_assignassignvalue(t8, t6, 0, 0, 0, 8, ((int*)(t7)));
    t3 = 1;
    goto LAB5;

LAB6:    t9 = (t0 + 2068);
    *((int *)t9) = 1;
    goto LAB8;

}


extern void work_m_00000000001864443149_3649235597_init()
{
	static char *pe[] = {(void *)I31_0,(void *)A75_1,(void *)NR76_2};
	xsi_register_didat("work_m_00000000001864443149_3649235597", "isim/_tmp/work/m_00000000001864443149_3649235597.didat");
	xsi_register_executes(pe);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?