最近一段时间使用modelsim,

一,安装

使用的时候,出现license验证不对。

由于经常换虚拟机,要注意首先MAC地址是否换了,如果换了,license要重新做!

其次/etc/hosts的IP地址要和ifconfig的IP地址一致。

如果仍然不行,就重启linux。

quartus破解在不同的linux操作系统处理不一样,centos是最稳定的操作系统,it can be installed correctly.

however ubuntu,fedora有些不一样,这个花了我不少时间,need to change the file vco in the questa directory. vco is the tcl script ,it will call the vsim

afte 里面设置了LD_LIBRARY_PATH, run vco!

二)仿真工具使用

1)如何查看已经仿真的波形

vsim -view xx.wlf -do wave.do

2)后仿如何将顶层文件和sdf文件关联,见下

vsim -L SmartFusion2 -L postlayout  -t 1ps -novopt -sdfmax /top_0=${PROJECT_DIR}/designer/top/top_ba.sdf postlayout.tb
add wave /tb/*
add log -r /*
vcd file power.vcd
vcd add -r /tb/top_0/*
run 500ns
vcd flush
echo "VCD file power.vcd was successfully exported under the project simulation/ directory"

3)后仿,带优化,但是要保留信号,以及生成database (shannon,但是似乎不成功!!!,只能供参考)

vsim -postsimdataflow -debugDB=test.dbg -wlf test.wlf \
         -L Smartfusion2 -L work -t ns -voptargs=+acc -c -pli ./pslse-master/pslse/afu_driver/src/afu_driver.sl +nowarnTSCALE work.top

add log -r /*

Recall the post-simulation debug database with the following:
dataset open <db_pathname.wlf>

shannon注:

vsim -postsimdataflow -debugdb=<db_pathname> -wlf <db_pathname>  -voptargs=+acc

By default, the Dataflow window is not available for post simulation debug operations.
You must use the -postsimdataflow to make Dataflow window available during post-sim
debug.
Specify the post-simulation database file name with the -debugdb=<db_pathname>
argument to the vsim command. If a database pathname is not specified, ModelSim
creates a database with the file name vsim.dbg in the current working directory. This
database contains dataflow connectivity information.
Specify the dataset that will contain the database with -wlf <db_pathname>. If a dataset
name is not specified, the default name will be vsim.wlf.
The debug database and the dataset that contains it should have the same base name
(db_pathname).
The add log -r /* command instructs ModelSim to save all signal values generated when
the simulation is run.
3. Run the simulation.

3)在modelsim的仿真中,反标的verilog文件中信号名不仅仅是verilog的定义的标识符(有任意字母,数字,$和_),还包括空格(是否因为信号命名是\开头?)。

所以出现仿真中找不到信号名,注意空格,如果修改verilog文件则也应包括空格  .

比如:

信号定义

wire  \wqueue_i/WRITE_QUEUE/mem_mem_0_4/A_ADDR_net[13]空格 ,....空格,

add wave -noupdate {/top/a0/\wqueue_i/WRITE_QUEUE/mem_mem_0_4/A_ADDR_net[13]空格}可以找到信号

add wave -noupdate {/top/a0/\wqueue_i/WRITE_QUEUE/mem_mem_0_4/A_ADDR_net[13]}就不能找到信号

4)在modelsim的object name中找信号(ctrl+F),对于数组的符号[],需要用正则表达\[, \]来表示

比如在反标文件中查找arrayA[1],需要输入arrayA\[1\]

5) 仿真的时候,memory can not show in the wave

6)function of add flow is usefull

三)Q&A

1)每次仿真会在仿真当前目录产生modelsim.ini,里面会调用系统的modelsim.ini.

如果出现如下错误,std库找不到

删除modlesim.ini,让其自动再产生一次

四,样本

modelsim(1) - 安装和使用 心得的更多相关文章

  1. Modelsim SE 安装

    FPGA开发过程中,代码编写完成后,往往是需要通过第三方仿真工具去验证设计功能的正确性.本章介绍最常用的仿真工具--Modelsim SE的安装过程. 1.1.1.Modelsim SE安装 本节主要 ...

  2. 用vmware安装gho文件心得

    在卡饭学到了不少知识,下面是我的一个心得分享,希望大家能用的上. 用vmware安装gho文件心得 方法1:diskgenius+ghostexp用vm新建一个空白硬盘虚拟机, 记住虚拟机文件的存储位 ...

  3. keepalived安装配置实战心得(实现高可用保证网络服务不间断)

    keepalived安装配置实战心得(实现高可用保证网络服务不间断) 一.准备2台虚拟机     安装的系统是:centos-release-7-1.1503.el7.centos.2.8.x86_6 ...

  4. 开源Bug管理系统Redmine安装和使用心得

    最终忍受不了公司使用论坛+Excel来进行bug反馈和管理工作了,于是花了一个上午时间研究了下bug管理系统.这样一个bug管理系统能够轻松的查看bug新增了哪些,攻克了哪些.当前是谁,要在什么时间解 ...

  5. 安装VC6.0安装步骤及心得体会

    一.安装步骤: 1.打开网站https://pan.baidu.com/s/nxee/AD ,输入提取密码:wdhk. 2.登录微信账号,将软件下载到D盘. 3.鼠标右键点击VC6.0快捷方式,选择“ ...

  6. 安装Oracle数据库心得

    学到Oracle数据库了,想在自己电脑上安装个Oracle数据库.在网上下载了一个Oracle18c版 下边是我安装Oracle18c版的数据库失败,后来在卸载过程中遇到的问题: 1.用Univers ...

  7. centos6.8下安装破解quartus prime16.0以及modelsim ae安装

    前言 装逼使用 流程 安装modelsim: 1.modelsim ae在linux下是32位的,对于64位系统需要安装32位库:yum install xulrunner.i686 2.给予权限: ...

  8. Windows10系统的Linux子系统中安装MySQL数据库心得

    后端开发童鞋们, 自己开发机用的是Windows系统电脑(台式机或笔记本), 而开发的程序和使用的数据库等要运行在Linux服务器上, 这种情况有木有? 提前声明: 本文并不讨论操作系统的比较, 以及 ...

  9. 关于QT安装的一些心得(QT551, VS2013)项目开发配置,以及项目结构分析

    推荐QT开发的配置如下: 我的硬件配饰中等,所以推荐一下配置: QT551版本,目前QT最新版8.0,为了稳定选择551版本 VS2013IDE, 因为VS2010与VS2013的编译器相同,但是VS ...

随机推荐

  1. Nice Sequence_线段树***

    Description Let us consider the sequence a1, a2,..., an of non-negative integer numbers. Denote as c ...

  2. LayaAir引擎——(一)

    LayaAir是LayaBox推出的Html5游戏引擎,支持 ActionScript3.TypeScript.JavaScript,开源,并且商用免费.   LayaAir IDE 是一款使用Lay ...

  3. 设置Android studio内容的主题

    下载主题Jar包 http://color-themes.com/?view=theme&id=563a1a6e80b4acf11273ae76 导入主题: File->Import s ...

  4. OC 属性

    1 属性和实例变量 :属性 ==  实例变量声明 + setter 方法+ getter 方法 在老版本的 OC 语言中,我们需要同时声明属性和底层实例变量,那时,属性是 OC 语言的一个新的机制,并 ...

  5. windows下在yii中使用mongodb

    1.编译或下载对应dll动态链接库拓展文件,下载地址:点我,不知道如何编译windows下的dll拓展->点我 2.找到web服务器软件,如apache,nginx等webserver处理浏览器 ...

  6. 【Unity3D技巧】在Unity中使用事件/委托机制(event/delegate)进行GameObject之间的通信 (二) : 引入中间层NotificationCenter

    作者:王选易,出处:http://www.cnblogs.com/neverdie/ 欢迎转载,也请保留这段声明.如果你喜欢这篇文章,请点[推荐].谢谢! 一对多的观察者模式机制有什么缺点? 想要查看 ...

  7. 使用 dynamic 标记解析JSON字符串

    string jsonStr = "{\"data\": {\"ssoToken\": \"70abd3d8a6654ff189c482fc ...

  8. ASP.NET同页面内【用户控件与父页面】以及【用户控件与用户控件】之间方法调用

    在用户控件中,获取父页面的方法 1:方法没有参数(userInfor()) string userInfor = Convert.ToString(this.Page.GetType().GetMet ...

  9. MySQL各逻辑模块工作配合

    在了解了MySQL的各个模块之后(点击查看MySQL各个逻辑模块),我们再看看MySQL各个模块间是如何相互协同工作的.接下来,我们通过启动MySQL,客户端连接,请求query,得到返回结果,到最后 ...

  10. python学习-day12:列表、元祖、字典介绍和内置

    list:列表 >>>----可以被修改.修改成元素,元素可以使单独的数字,也可以是:新的list. 通过:链表..每个元素存储的时候,同时会指向下一个元素. 二.list编辑修改方 ...