VCS仿真查看coverage
Design compiler & simulate
#!/bin/csh -f
setenv NOVAS_HOME /EDASynopsys/verdi3-I-201403-SP1
setenv NOVAS_PLI ${NOVAS_HOME}/share/PLI/VCS/LINUX64
setenv LD_LIBRARY_PATH $NOVAS_PLI
setenv NOVAS "${NOVAS_HOME}/share/PLI/VCS/LINUX64"
#用于fsdb波形文件dump
setenv novas_args "-P $NOVAS/verdi.tab $NOVAS/pli.a "
vcs +v2k -sverilog +vcs+lic+wait -full64 -debug_pp \
+warn=noCDNYI,noIPDW,noILLGO,noTMR,noPHNE,noIRIID-W \
-Mupdate +notimingcheck +nospecify \
${novas_args}\
-f file.f \
-cm cond+fsm+line \ #VCS creates the simv.vdb directory (the coverage metrics database)
./simv -cm cond+fsm+line #simulate
查看coverage(三种方法)
urg -full64 -dir simv.vdb
verdi -cov -covdir simv.vdb
dve -covdir simv.vdb
参考资料
[1]. CoverageTut.pdf (verdi手册目录下)
[2]. cov_ref.pdf (vcs手册目录下)
[3]. cov_ug.pdf (vcs手册目录下)