VCS常用命令说明
更新时间:2023-12-06 09:20:01 阅读量: 教育文库 文档下载
- vcs常用命令推荐度:
- 相关推荐
VCS常用命令说明
1、VCS仿真环境:
2、VCS常用编译命令:
vcs source_files [source_or_object_files] options eg: vcs top.v toil.v -RI +v2k
source_files The Verilog, OpenVera assertions, or OpenVera testbench source files for your design separated by spaces. source_or_object_files
Optional C files (.c), object files (.o), or archived libraries (.a). These are DirectC or PLI applications that you want VCS to link into the binary executable file along with the object files from your Verilog source files. Options
Compile-time options that control how VCS compiles your Verilog source files.
Details of Options:
+incdir+directory: Specifies the directory or directories that VCS searches for include files used in the `include compiler directive. More than one directory may be specified, separated by +.
-I: Compiles for interactive use.
-line: Enables source-level debugging tasks such as stepping through the code,
displaying the order in which VCS executed lines in your code, and the last statement executed before simulation stopped. Typically you enter this option with a +cli option,
for example: vcs +cli+1 -line
-l filename: Specifies a file where VCS records compilation messages. If you also enter the -R or -RI option, VCS records messages from both compilation and simulation in the same file.
-P pli.tab: Compiles a user-defined PLI definition table file.
-PP: Compiles a VCD file for interactive debugging while minimizing the amount of net data for fast post-processing.
+v2k: Enables new language features in the proposed IEEE 1364-2001 standard. See “Implemented IEEE Std 1364-2001 Language Constructs” on page 2-23.
-v filename: Specifies a Verilog library file. VCS looks in this file for module and UDP definitions for the module and UDP instances that VCS found in your source code when it did not find the corresponding module or UDP definitions in your source code.
+define+macro: Defines a text macro in your source code to a value or character string. You can test for this definition in your Verilog source code using the ?ifdef compiler directive.
-f filename: Specifies a filename that contains a list of absolute pathnames for Verilog source files and compile-time options.
+vc: Enables extern declarations of C/C++ functions and calling these functions in your source code.
-vera: Specifies the standard VERA PLI table file and object library. -comp64: option to compile a design on a 64-bit machine;
3、VCS运行命令
1、Running:
$ simv 2、Save and Restart Example
A simple example of save and restart is given below to demonstrate the basic functionality.
The $save call does not execute a save immediately, but schedules the checkpoint save at the end of the current simulation time just before events scheduled with #0 are processed. Therefore, events delayed with #0 are the first to be processed upon restart. Example:
test.v:
module simple_restart; initial begin #10
$display(\$save(\$display(\
#0 // make the following occur at restart $display(\
#10
$display(\end
endmodule
Now to compile the example Source file: vcs -Mupdate test.v
Now run the simulation: simv
restart the simulation from the state saved in the check file,enter: test.chk
VCS displays the following: Restart of a saved simulation three four
4、System Task to Generate VCD/VCD+ File
VCD+ system tasks are used to capture and save value change data in a binary format so that the data can be viewed in the Waveform Window, Register Window, Source Window, and Logic Browser.
$vcdpluson : begins recording signal value changes of the specified scope(s) or signals to the VCD+ history file. Syntax:
$vcdpluson (level,scope*,signal*);
$vcdplusoff :stops recording the signal value changes for specified scope(s) or signal(s). Syntax:
$vcdplusoff (level,scope*,signal*);
$vcdplusfile: Specifies a VCD+ file name. If not specified, VCD.vpd is default for VHDL and vcdplus.vpd is default for Verilog. Syntax:
$vcdplusfile (\
$vcdplusclose: Terminates all tracing, flushes data to file, closes the current VCD+ file, and resets all default settings.
Syntax:
$vcdplusclose;
5. 参考文件:
1. VCS?/VCSi?User Guide Version X-2005.06 August 2005 2. VirSim User Guide Version 4.4
3、IEEE Standard Hardware Description Language Based on the Verilog Hardware Description Language IEEE Std 1364-1995
正在阅读:
VCS常用命令说明12-06
实验生理科学大纲08-05
小学生圆梦作文06-15
微机原理与接口技术期末总复习要点01-18
项目总工程师手册05-13
《朝花夕拾》知识点附测试练习题答案及高效率听课方法04-05
不理解父母作文4篇02-06
6乘以125MW水电厂电气部分设计11-25
西南政法大学成人教育学院06-05
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 命令
- 常用
- 说明
- VCS