• 大小: 2.89MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-07
  • 语言: 其他
  • 标签: verilog/fpga  

资源简介

VERILOG入门实验二 点阵显示, FPGA初学者必学讲义

资源截图

代码片段和文件信息

#include “isim/work/dottest/dottest.h“
#include “isim/work/glbl/glbl.h“
static const char * HSimCopyRightNotice = “Copyright 2004-2005 Xilinx Inc. All rights reserved.“;


#include “work/dottest/dottest.h“
static HSim__s6* IF0(HSim__s6 *Archconst char* labelint nGenerics 
va_list vap)
{
    HSim__s6 *blk = new workMdottest(label); 
    return blk;
}


#include “work/dot/dot.h“
static HSim__s6* IF1(HSim__s6 *Archconst char* labelint nGenerics 
va_list vap)
{
    HSim__s6 *blk = new workMdot(label); 
    return blk;
}


#include “work/glbl/glbl.h“
static HSim__s6* IF2(HSim__s6 *Archconst char* labelint nGenerics 
va_list vap)
{
    HSim__s6 *blk = new workMglbl(label); 
    return blk;
}

class _top : public HSim__s6 {
public:
    _top() : HSim__s6(false “_top“ “_top“ 0 0 HSim::VerilogModule) {}
    HSimConfigDecl * topModuleInstantiate() {
        HSimConfigDecl * cfgvh = 0;
        cfgvh = new HSimConfigDecl(“default“);
        (*cfgvh).addVlogModule(“dottest“ (HSimInstFactoryPtr)IF0);
        (*cfgvh).addVlogModule(“dot“ (HSimInstFactoryPtr)IF1);
        (*cfgvh).addVlogModule(“glbl“ (HSimInstFactoryPtr)IF2);
        HSim__s5 * topvl = 0;
        topvl = new workMdottest(“dottest“);
        topvl->moduleInstantiate(cfgvh);
        addChild(topvl);
        topvl = new workMglbl(“glbl“);
        topvl->moduleInstantiate(cfgvh);
        addChild(topvl);
        return cfgvh;
}
};

main(int argc char **argv) {
  HSimDesign::initDesign();
  globalKernel->getOptions(argcargv);
  HSim__s6 * _top_i = 0;
  try {
    HSimConfigDecl *cfg;
 _top_i = new _top();
  cfg =  _top_i->topModuleInstantiate();
    return globalKernel->runTcl(cfg _top_i “_top“ argc argv);
  }
  catch (HSimError& msg){
    try {
      globalKernel->error(msg.ErrMsg);
      return 1;
    }
    catch(...) {}
      return 1;
  }
  catch (...){
    globalKernel->fatalError();
    return 1;
  }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-03-31 16:30  实验二 点阵显示\
     目录           0  2015-03-31 16:30  实验二 点阵显示\dot\
     文件        5766  2012-09-13 22:37  实验二 点阵显示\dot 双模式 .txt
     文件        4053  2012-09-11 15:54  实验二 点阵显示\dot.txt
     目录           0  2015-03-31 16:30  实验二 点阵显示\dot1\
     文件        7083  2012-09-13 14:24  实验二 点阵显示\dot1\dot.bgn
     文件     1448809  2012-09-13 14:24  实验二 点阵显示\dot1\dot.bit
     文件         776  2012-09-13 14:24  实验二 点阵显示\dot1\dot.bld
     文件           0  2012-09-13 13:39  实验二 点阵显示\dot1\dot.cel
     文件        8253  2012-09-13 14:24  实验二 点阵显示\dot1\dot.cmd_log
     文件          38  2012-09-13 14:24  实验二 点阵显示\dot1\dot.drc
     文件         127  2012-09-11 15:27  实验二 点阵显示\dot1\dot.lfp
     文件           6  2012-09-10 16:50  实验二 点阵显示\dot1\dot.lso
     文件       27670  2012-09-13 14:24  实验二 点阵显示\dot1\dot.ncd
     文件       27696  2012-09-13 14:24  实验二 点阵显示\dot1\dot.ngc
     文件       46840  2012-09-13 14:24  实验二 点阵显示\dot1\dot.ngd
     文件       46593  2012-09-13 14:24  实验二 点阵显示\dot1\dot.ngr
     文件       36099  2012-09-13 14:24  实验二 点阵显示\dot1\dot.pad
     文件        6590  2012-09-13 14:24  实验二 点阵显示\dot1\dot.par
     文件        2256  2012-09-13 14:24  实验二 点阵显示\dot1\dot.pcf
     文件          22  2012-09-13 14:24  实验二 点阵显示\dot1\dot.prj
     文件           0  2012-09-13 14:24  实验二 点阵显示\dot1\dot.stx
     文件       21887  2012-09-13 14:24  实验二 点阵显示\dot1\dot.syr
     文件        2131  2012-09-13 14:24  实验二 点阵显示\dot1\dot.twr
     文件       15400  2012-09-13 14:24  实验二 点阵显示\dot1\dot.twx
     文件        2718  2012-09-11 15:30  实验二 点阵显示\dot1\dot.ucf
     文件         146  2012-09-13 14:24  实验二 点阵显示\dot1\dot.unroutes
     文件         589  2012-09-13 14:24  实验二 点阵显示\dot1\dot.ut
     文件        5510  2012-09-13 14:24  实验二 点阵显示\dot1\dot.v
     文件          46  2012-09-13 14:24  实验二 点阵显示\dot1\dot.xpi
     文件        1062  2012-09-13 14:24  实验二 点阵显示\dot1\dot.xst
............此处省略184个文件信息

评论

共有 条评论

相关资源