IC-工具篇--VCS使用教程-卷一(20200328)

本文详细介绍VCS(Verilog Compiled Simulator)的基础操作与高级技巧,包括编译与仿真Verilog/SV设计、增量编译、日志文件输出、自定义可执行文件名、头文件编译及宏定义等。并通过实例演示加法器的编译与仿真过程。

0.引言

在安装好VCS后,现在开始开启VCS的使用熟悉。在逐步熟练使用VCS中,将FPGA中掌握的知识转行到IC设计中来。
参考资料:启芯

1.知识要求

you should hae experience in the following areas:
understanding of digital IC design
Familiarity with a Linux or Unix OS
Familiarity with a Linux - based text editor(VI)

综上所述:需要掌握数字电路基础、Verilog、Linux系统、编辑器VI

measurable Ohectives:(任务目标)
by the end of this workshop you should be able to:

  1. Simulate Verilog/SV designs using VCS
  2. Debug Verilog/SV designs using VCS
  3. Run fast RTL-lvel regession tests for your design
  4. run fast Gate-level regression tests for your design
  5. Acquire the skills and knowledge to successfully implement coverage driven vertification methodology using VCS

2.VCS simulation basics (基础操作)

this unit when you complated, you should be able to :

  • Compile a Verilog/sSV design using VCS
  • Simulate a Verilog/SV design

介绍:VCS
(Verilog Compiled Simulator)
Digital function simulator
支持多种抽象层次的仿真
1、行为级描述
2、RTL(寄存器传输级)
3、Gate-level(门级),与具体工艺库相关(TSMC(台积电)、SMIC(中芯国际)、CSMC(华润微电子有限公司))

VCS compilation command Format (VCS的编译命令格式)

$ VCS source_file [compile_time_options]

  • source file(源代码)
    All Verilog/SV source file of the DUT
    Sepatated multiple source files by spaces
    Top module should contain testbench for DUT

  • compile_time_options(可选项)
    control how VCS compiles the soyrce files
    Critical for optimizaition for visibility and performace
    each unit of this workshop will describle how best to these compile_tiom_option

  • Generate simulation binary excutable simv(bnary executable file)(最后生成一个二进制文件simv)

3、Compile-time option exambles(VCS可选项的介绍)

- VCS -help
list compile option, run-time options, environment variables

  • Command line option(commonly used):
    -Mupdate 增量编译
    Incremental compilation(only changed files are compiled)
    当代码量非常大,而只修改了很少的一部分时,如果全部重新编译,非常浪费时间,为了节约时间,可以做增量编译,从而与原来的代码做链接。
    -R自动执行simv
    自动执行编译后的可执行文件.simv
    -gui启动DVE界面
    starts the DVE GUI at runrime
    **-I < filename > **
    set log filename
    编译的时候会产生一些信息文件,可以写到filename中
    -sverilog
    enable SystemVerilog language support
    支持SV语言
    +v2k
    compile with support for Verilog 2001 extensions
    编译支持verilog2001的标准
    -v lib_file
    search for unresolved module refe
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值