当前位置:网站首页>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。
边栏推荐
- Principe de réalisation de l'agent dynamique
- Solr basic operation 1
- LC: effective Sudoku + rotating image
- LC:有效的数独 + 旋转图像
- How about counting Berry Pie 4? What are the possible ways to play?
- 招商证券靠谱吗?开股票账户安全吗?
- 基于OpenStack的虚拟机在线迁移
- C pointer advanced 1-- > character pointer, array pointer, pointer and array parameter transfer, function pointer
- [译]在软件开发行业工作 6 年后,那些年我曾改过的观念
- MetaQ集群安裝測試
猜你喜欢

AI赋能新零售,「智」胜之道在于生态思维|数智夜话直播精选摘录
![[wechat applet] understand the basic composition of the applet project](/img/71/98894fbb9cda4facfd2b83c8ec8f9a.png)
[wechat applet] understand the basic composition of the applet project
discrete "digital signal"]"/>Speech signal processing (III): speech signal analysis [continuous "analog signal" -- Sampling, quantization, coding -- > discrete "digital signal"]

@Scheduled annotation pit, I stepped on it for you

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

Why is JSX syntax so popular?

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

FPGA开发(1)——串口通信

简单理解B树和B+树

Gracefully transform the SMS business module and start the strategic mode!
随机推荐
I wonder if I can open an account today? In addition, is it safe to open an account online now?
设置安全组、域名备案、申请ssl证书
111. simple chat room 14: chat room client
Head pressing Amway good-looking and practical dispensing machine SolidWorks model material here
Pain points and solutions of M1 notebook home office | community essay solicitation
新钛云服荣膺“2022爱分析 · IT运维厂商全景报告”云管理平台CMP 代表厂商!...
RRDtool 画MRTG Log数据
6.29日刷题题解
Solution to version conflict of flutter plug-in
穿越过后,她说多元宇宙真的存在
SQL question brushing 595 Big country
C指针进阶2-->函数指针数组 回调函数简化计算器代码,基于回调函数模拟实现qsort函数
Jetpack之Room的使用,结合Flow
Start harvesting! Nailing: adjust the maximum number of free users of "nailing team". If the number exceeds 10, it will not work normally
Leetcode(680)——验证回文字符串 Ⅱ
Sword finger offer 38 Arrangement of strings
C指针进阶1-->字符指针,数组指针,指针与数组传参,函数指针
搭建企业级NTP时间服务器
AI empowers new retail, the way to win "wisdom" lies in ecological thinking | selected excerpts from digital intelligence night talk live broadcast
CE second operation