当前位置:网站首页>modelsim的TCL脚本的define incdir命令解析
modelsim的TCL脚本的define incdir命令解析
2022-06-29 23:48:00 【黄埔数据分析】
(1) +incdir+:
如:vlog +incdir+YOUR_SOURCE_PATH foo.v
+incdir+YOUR_SOURCE_PATH 选项是指在verilog文件中出现`include “xxx.v” 时,包含文件的搜索路径。
缺省是搜索当前路径,然后是 YOUR_SOURCE_PATH 指定的路径。
(1) + define + :
+define+<macro_name>[=<macro_text>]
允许用户在命令行中定义宏定义,等效于编译器指令:define <macro_name> <macro_text> 用户可以指定多个宏定义,如下: vlog +define+one=r1 +two=r2 +three=r3 test.v 命令行的宏定义会覆盖在源文件中用define定义的相同名字的宏定义
如:vsim -c -l vsim.log -do ./YourDo.do -L ./work work.foo
开始仿真:
-c 选项让vsim工作在commandline模式;
-l 选项是输出log文件到vsim.log;
-do 选项是开始仿真后运行tcl脚本文件;
-L 选项是指定工作逻辑库;
work.foo是仿真的top level module。
边栏推荐
- MetaQ集群安裝測試
- Shell positional parameter variables and predefined variables
- label問題排查:打不開標注好的圖像
- 動態代理的實現原理
- Gradle连载7-配置签名
- Halcon实用:焊点检出设计思路
- Which securities company should I choose to open an account online? Also, is it safe to open an account online?
- Solr基础操作
- 我想知道今天还可以开户么?另外想问,现在在线开户安全么?
- 按头安利 好看又实用的点胶机 SolidWorks模型素材看这里
猜你喜欢

Speech signal processing (II): phonation physiology, auditory physiology and auditory psychology

Head pressing Amway good-looking and practical dispensing machine SolidWorks model material here

C pointer advanced 2-- > function pointer array callback function simplifies calculator code, and implements qsort function based on callback function simulation

6.29日刷题题解

采购数智化爆发在即,支出宝“3+2“体系助力企业打造核心竞争优势

“微博评论”的高性能高可用计算架构

为什么 JSX 语法这么香?

剑指 Offer 14- I. 剪绳子

Halcon实用:焊点检出设计思路

【微信小程序】认识小程序项目的基本组成结构
随机推荐
What is online account opening? In addition, is it safe to open a mobile account?
Head on Amway! Good looking and practical motor SolidWorks model material see here
Gracefully transform the SMS business module and start the strategic mode!
Top ten securities companies: "bulldozer market" reappearance
111. simple chat room 14: chat room client
Yunhe enmo Guoqiang, identifiez - le, saisissez - le, avant l'ébullition de la base de données nationale
FPGA开发(1)——串口通信
Label Troubleshooting: unable to open the marked image
Construction of module 5 of actual combat Battalion
大厂试水 HPE推出Arm CPU通用服务器产品
Software testing interface testing JMeter 5.5 installation tutorial
采购数智化爆发在即,支出宝“3+2“体系助力企业打造核心竞争优势
Is it safe to open a stock account? Shanghai stock account opening.
Sword finger offer 38 Arrangement of strings
Gradle连载7-配置签名
架构实战营模块5作业
Is China Merchants Securities reliable? Is it safe to open a stock account?
AI赋能新零售,「智」胜之道在于生态思维|数智夜话直播精选摘录
[译]在软件开发行业工作 6 年后,那些年我曾改过的观念
On binary tree