vcs有三种调试模式:CLI调试模式、VirSim交互调试模式、VirSim后处理模式。
启动VirSim交互调试模式有两种方法:
1、vcs source.v -RI -line +vcsd +cfgfile+filename
或者:
2、vcs source.v -I -line +vcsd
vcs source.v -RIG +cfgfile+filename
交互式模式调试步骤:
1.
Now we are going to simulate the design again but in interactive mode. First let's
exit VirSim if you have not already done so. Recompile your source code with the
following command line:
vcs -RI -Mupdate -f main_count.f
The -Mupdate is a compile-time option that tells vcs to compile incrementally.
When you use this option, it will create a sub-directory called csrc. This directory
will contain a Makefile and object files for each module that is compiled. When
you compile incrementally, only the modules that change between compilations
will need to be reco