当前位置:网站首页>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。
边栏推荐
- “微博评论”的高性能高可用计算架构
- Paper writing tool: latex online website
- FPGA开发(2)——IIC通信
- matplotlib matplotlib可视化之柱状图plt.bar()
- Bee common configuration
- Solution to version conflict of flutter plug-in
- Yunhe enmo Guoqiang, identifiez - le, saisissez - le, avant l'ébullition de la base de données nationale
- Software testing interface testing JMeter 5.5 installation tutorial
- Solr basic operation 2
- 基于OpenStack的虚拟机在线迁移
猜你喜欢

Collection! Have you ever used these tools to improve programmer productivity?

Use of jetpack's room in combination with flow

Remember the process of checking online MySQL deadlock. You should not only know curd, but also know the principle of locking

剑指 Offer 14- I. 剪绳子

Head on Amway! Good looking and practical motor SolidWorks model material see here

matplotlib matplotlib可视化之柱状图plt.bar()

6.28 problem solving

6.29 problem solving

收藏!这些提高程序员生产力的工具你用过吗?

數莓派 4怎麼樣?可能的玩法有哪些?
随机推荐
设置安全组、域名备案、申请ssl证书
C指针进阶2-->函数指针数组 回调函数简化计算器代码,基于回调函数模拟实现qsort函数
雲和恩墨蓋國强,識別它、抓住它,在國產數據庫沸騰以前
Incluxdb time series database system
网上开户选哪个证券公司?还有,在线开户安全么?
Procurement intelligence is about to break out, and the "3+2" system of Alipay helps enterprises build core competitive advantages
FPGA开发(2)——IIC通信
Implementation principle of dynamic agent
How about counting Berry Pie 4? What are the possible ways to play?
What is online account opening? In addition, is it safe to open a mobile account?
FPGA开发(1)——串口通信
Principe de réalisation de l'agent dynamique
CE second operation
[译]在软件开发行业工作 6 年后,那些年我曾改过的观念
Golang泛型的巧妙应用,防止变量空指针错误,防止结构体字段空指针错误
关于二叉树
@Scheduled注解的坑,我替你踩了
[leetcode] a number that appears only once [136]
Sword finger offer 38 Arrangement of strings
MetaQ集群安裝測試