OpenCores
URL https://opencores.org/ocsvn/vtach/vtach/trunk

Subversion Repositories vtach

[/] [vtach/] [trunk/] [isim/] [vtach_test_isim_beh.exe.sim/] [unisims_ver/] [m_04163921743207846394_3100994011.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 wd5gnr
/**********************************************************************/
2
/*   ____  ____                                                       */
3
/*  /   /\/   /                                                       */
4
/* /___/  \  /                                                        */
5
/* \   \   \/                                                       */
6
/*  \   \        Copyright (c) 2003-2009 Xilinx, Inc.                */
7
/*  /   /          All Right Reserved.                                 */
8
/* /---/   /\                                                         */
9
/* \   \  /  \                                                      */
10
/*  \___\/\___\                                                    */
11
/***********************************************************************/
12
 
13
/* This file is designed for use with ISim build 0xb4d1ced7 */
14
 
15
#define XSI_HIDE_SYMBOL_SPEC true
16
#include "xsi.h"
17
#include <memory.h>
18
#ifdef __GNUC__
19
#include <stdlib.h>
20
#else
21
#include <malloc.h>
22
#define alloca _alloca
23
#endif
24
static int ng0[] = {0, 0, 0, 0};
25
static const char *ng1 = " Warning : Input clock period of, %1.3f ns, on the %s port of instance %m exceeds allotted value of %1.3f ns at simulation time %1.3f ns.";
26
 
27
 
28
 
29
static void Initial_1388_0(char *t0)
30
{
31
    char *t1;
32
    char *t2;
33
 
34
LAB0:
35
LAB2:    t1 = ((char*)((ng0)));
36
    t2 = (t0 + 1720);
37
    xsi_vlogvar_assign_value(t2, t1, 0, 0, 64);
38
    t1 = ((char*)((ng0)));
39
    t2 = (t0 + 1880);
40
    xsi_vlogvar_assign_value(t2, t1, 0, 0, 64);
41
 
42
LAB1:    return;
43
}
44
 
45
static void Always_1393_1(char *t0)
46
{
47
    char t4[16];
48
    char t7[16];
49
    char t19[8];
50
    char t25[8];
51
    char t28[8];
52
    char *t1;
53
    char *t2;
54
    char *t3;
55
    char *t5;
56
    char *t6;
57
    char *t8;
58
    unsigned int t9;
59
    unsigned int t10;
60
    unsigned int t11;
61
    unsigned int t12;
62
    unsigned int t13;
63
    char *t14;
64
    char *t15;
65
    char *t16;
66
    double t17;
67
    double t18;
68
    char *t20;
69
    char *t21;
70
    char *t22;
71
    double t23;
72
    double t24;
73
    double t26;
74
    double t27;
75
 
76
LAB0:    t1 = (t0 + 3040U);
77
    t2 = *((char **)t1);
78
    if (t2 == 0)
79
        goto LAB2;
80
 
81
LAB3:    goto *t2;
82
 
83
LAB2:    t2 = (t0 + 3360);
84
    *((int *)t2) = 1;
85
    t3 = (t0 + 3072);
86
    *((char **)t3) = t2;
87
    *((char **)t1) = &&LAB4;
88
 
89
LAB1:    return;
90
LAB4:
91
LAB5:    t5 = xsi_vlog_time(t4, 1.0000000000000000, 1.0000000000000000);
92
    t6 = (t0 + 1720);
93
    xsi_vlogvar_wait_assign_value(t6, t4, 0, 0, 64, 0LL);
94
    t2 = xsi_vlog_time(t4, 1.0000000000000000, 1.0000000000000000);
95
    t3 = (t0 + 1720);
96
    t5 = (t3 + 56U);
97
    t6 = *((char **)t5);
98
    xsi_vlog_unsigned_minus(t7, 64, t4, 64, t6, 64);
99
    t8 = (t0 + 1880);
100
    xsi_vlogvar_wait_assign_value(t8, t7, 0, 0, 64, 0LL);
101
    t2 = (t0 + 1880);
102
    t3 = (t2 + 56U);
103
    t5 = *((char **)t3);
104
    t6 = (t0 + 608);
105
    t8 = *((char **)t6);
106
    xsi_vlog_unsigned_greater(t4, 64, t5, 64, t8, 32);
107
    t6 = (t4 + 4);
108
    t9 = *((unsigned int *)t6);
109
    t10 = (~(t9));
110
    t11 = *((unsigned int *)t4);
111
    t12 = (t11 & t10);
112
    t13 = (t12 != 0);
113
    if (t13 > 0)
114
        goto LAB6;
115
 
116
LAB7:
117
LAB8:    goto LAB2;
118
 
119
LAB6:
120
LAB9:    t14 = (t0 + 1880);
121
    t15 = (t14 + 56U);
122
    t16 = *((char **)t15);
123
    t17 = xsi_vlog_convert_to_real(t16, 64, 2);
124
    t18 = (t17 / 1000.0000000000000);
125
    *((double *)t19) = t18;
126
    t20 = (t0 + 472);
127
    t21 = *((char **)t20);
128
    t20 = (t0 + 608);
129
    t22 = *((char **)t20);
130
    t23 = xsi_vlog_convert_to_real(t22, 32, 1);
131
    t24 = (t23 / 1000.0000000000000);
132
    *((double *)t25) = t24;
133
    t20 = xsi_vlog_time(t7, 1.0000000000000000, 1.0000000000000000);
134
    t26 = xsi_vlog_convert_to_real(t7, 64, 2);
135
    t27 = (t26 / 1000.0000000000000);
136
    *((double *)t28) = t27;
137
    xsi_vlogfile_write(1, 0, 0, ng1, 5, t0, (char)114, t19, 64, (char)118, t21, 40, (char)114, t25, 64, (char)114, t28, 64);
138
    goto LAB8;
139
 
140
}
141
 
142
 
143
extern void unisims_ver_m_04163921743207846394_3100994011_init()
144
{
145
        static char *pe[] = {(void *)Initial_1388_0,(void *)Always_1393_1};
146
        xsi_register_didat("unisims_ver_m_04163921743207846394_3100994011", "isim/vtach_test_isim_beh.exe.sim/unisims_ver/m_04163921743207846394_3100994011.didat");
147
        xsi_register_executes(pe);
148
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.