IC-工具篇--VCS使用教程-卷二(202004013)

本文介绍使用VCS和DVE进行Verilog代码调试的方法,包括基础理论、UCLI调试器的使用、以及DVE图形界面的基本操作技巧。涵盖调试可见性、停止仿真、仿真刺激和参考等关键概念。

引言

本文在上一讲逐渐熟悉了VCS的开关选项后,下面继续介绍VCS的使用,我始终关注于熟悉工具的使用,在本系列中,对Verilog的语法不作深入研究,这样可以加快前进的步伐。也为了加快从FPGA中转变到IC领域来。在本文中将介绍VCS 调试基础。

1、基础理论讲义

—Afer completing this unit ,you should be able to:

  1. Describe three methods of debugging Verilog code using VCS
  2. Invoke UCLI debugger
  3. Debug Verilog designs using UCLI

–VCS Debugging Suport
4. Trance and locate causes of errors
5. Three general debugging methods:

  1. Verilog SystemVerilog System Task calls
    VCS UCLI
    VCS DVE(GUI)

  2. Four factors to consider:
    simulation speed
    signal visibility
    sgnal tractability
    usability


Verilog System Task For Debugging 利用verilog的系统函数

  1. Debug visibility:
  • $ display prints formatted message to console
  • $ strobe Like$dispaly except printing is delayed until all events in the current time step have executed
  • $ monitor Monitor signals listed and prints formatted message whenever one of the listed signals changes
  • $ time returns current simulation time as a 64bits integer
  1. Stopping simulations:
    $stop halts simulation lie a breakpoint
    $finish halts simulation and terminated the simulation session

  2. Simulation stimulus and reference:

  • r e a d m e m h R e a d s A S C I I d a t a f r o m a d i s k f i l e , e a c h d i g i t i s h e x a d e c i m a l − readmemh Reads ASCII data from a disk file,each digit is hexadecimal - rea
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值