ISE环境下的数字钟


可实现闹钟,整点报数,软件复位,校正时、分信息。 但是由于做得匆忙,注释没有写。慎点。
资源截图
代码片段和文件信息
/**********************************************************************/
/*   ____  ____                                                       */
/*  /   //   /                                                       */
/* /___/    /                                                        */
/*       /                                                       */
/*             Copyright (c) 2003-2009 Xilinx Inc.                */
/*  /   /          All Right Reserved.                                 */
/* /---/   /                                                         */
/*      /                                                        */
/*  \___/\___                                                    */
/***********************************************************************/

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

#define XSI_HIDE_SYMBOL_SPEC true
#include “xsi.h“
#include 
#ifdef __GNUC__
#include 
#else
#include 
#define alloca _alloca
#endif
static const char *ng0 = “H:/Dclock/clock.v“;
static unsigned int ng1[] = {10000U 0U};
static unsigned int ng2[] = {65536U 0U};
static unsigned int ng3[] = {1000U 0U};
static unsigned int ng4[] = {4096U 0U};
static unsigned int ng5[] = {100U 0U};
static unsigned int ng6[] = {256U 0U};
static unsigned int ng7[] = {10U 0U};
static unsigned int ng8[] = {16U 0U};
static unsigned int ng9[] = {1U 0U};
static unsigned int ng10[] = {0U 0U};



static void Always_156_0(char *t0)
{
    char t8[8];
    char t22[8];
    char *t1;
    char *t2;
    char *t3;
    char *t4;
    char *t5;
    char *t6;
    char *t7;
    char *t9;
    char *t10;
    char *t11;
    char *t12;
    unsigned int t13;
    unsigned int t14;
    unsigned int t15;
    unsigned int t16;
    unsigned int t17;
    char *t18;
    char *t19;
    char *t20;
    char *t21;
    char *t23;

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

LAB3:    goto *t2;

LAB2:    xsi_set_current_line(156 ng0);
    t2 = (t0 + 1824);
    *((int *)t2) = 1;
    t3 = (t0 + 1656);
    *((char **)t3) = t2;
    *((char **)t1) = &&LAB4;

LAB1:    return;
LAB4:    xsi_set_current_line(156 ng0);

LAB5:    xsi_set_current_line(157 ng0);
    t4 = (t0 + 1012);
    t5 = (t4 + 36U);
    t6 = *((char **)t5);
    t7 = ((char*)((ng1)));
    memset(t8 0 8);
    t9 = (t6 + 4);
    if (*((unsigned int *)t9) != 0)
        goto LAB7;

LAB6:    t10 = (t7 + 4);
    if (*((unsigned int *)t10) != 0)
        goto LAB7;

LAB10:    if (*((unsigned int *)t6) < *((unsigned int *)t7))
        goto LAB9;

LAB8:    *((unsigned int *)t8) = 1;

LAB9:    t12 = (t8 + 4);
    t13 = *((unsigned int *)t12);
    t14 = (~(t13));
    t15 = *((unsigned int *)t8);
    t16 = (t15 & t14);
    t17 = (t16 != 0);
    if (t17 > 0)
        goto LAB11;

LAB12:    xsi_set_current_line(161 ng0);
  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-28 19:35  Dclock
     文件        8613  2018-03-28 23:43  Dclockclock.v
     目录           0  2018-03-28 19:41  DclockDClock
     文件           6  2018-03-28 19:43  DclockDClock.lso
     文件       16881  2018-03-28 23:59  DclockDClockDClock.gise
     文件       34735  2018-03-28 22:29  DclockDClockDClock.xise
     文件        1247  2018-03-28 21:14  DclockDClockfuse.log
     文件         367  2018-03-28 21:14  DclockDClockfuse.xmsgs
     文件         211  2018-03-28 21:14  DclockDClockfuseRelaunch.cmd
     文件        1477  2018-03-28 23:59  DclockDClockimpact.xsl
     文件         185  2018-03-28 23:59  DclockDClockimpact_impact.xwbt
     目录           0  2018-03-28 19:41  DclockDClockiseconfig
     文件        8298  2018-03-28 23:59  DclockDClockiseconfigDClock.projectmgr
     文件       20320  2018-03-28 22:28  DclockDClockiseconfig op.xreport
     目录           0  2018-03-28 20:23  DclockDClockisim
     文件          44  2018-03-28 21:14  DclockDClockisim.cmd
     文件         546  2018-03-28 22:17  DclockDClockisim.log
     文件        1676  2018-03-28 22:17  DclockDClockisimisim_usage_statistics.html
     文件           6  2018-03-28 21:14  DclockDClockisimpn_info
     目录           0  2018-03-28 20:23  DclockDClockisim emp
     文件        3390  2018-03-28 21:14  DclockDClockisim emp@bin@to@bcd.sdb
     文件        7296  2018-03-28 21:14  DclockDClockisim emp@clock@status.sdb
     文件        2952  2018-03-28 21:14  DclockDClockisim emp@hour@clock.sdb
     文件        1779  2018-03-28 21:14  DclockDClockisim emp@process@alarm.sdb
     文件        8613  2018-03-28 21:14  DclockDClockisim emp@show@data.sdb
     文件        3561  2018-03-28 21:14  DclockDClockisim emp@test@clock.sdb
     文件        4572  2018-03-28 21:14  DclockDClockisim empglbl.sdb
     文件        4514  2018-03-28 21:14  DclockDClockisim emp op.sdb
     目录           0  2018-03-28 21:14  DclockDClockisimTestClock_isim_beh.exe.sim
     文件           0  2018-03-28 21:15  DclockDClockisimTestClock_isim_beh.exe.simisimcrash.log
     文件       13497  2018-03-28 21:15  DclockDClockisimTestClock_isim_beh.exe.simISimEngine-DesignHierarchy.dbg
............此处省略124个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)