Synopsys VCS Commands For Verilogn Compilation
Synopsys VCS Commands For Verilogn Compilation
binarypirates.wordpress.com/2013/01/26/vcs-commands-for-verilog/
1/26/2013
Included Options
-cm coverage-type: specifies the type of coverage information to collect. The line, tgl,
1/3
cond, fsm and path options enable statement (line), toggle, condition, FSM, and path
coverage respectively. Any combination of coverage can be enabled simultaneously
using the + sign e.g. -cm cond+line enables conditional and line coverage.
-cm_line contassign: monitor continuous assignments for line coverage
-cm_cond allops+anywidth+event: monitor non-logical operators, of any width, and
always block sensitivity expressions for condition coverage
-cm_noconst: try to automatically ignore constant expressions and unreachable
statements
for line and condition coverage
+lint=all: turns on all verilog warnings
+v2k: tells VCS to handle Verilog-2001 features, include this option if you are using
those features
-PP: turns on support for using the VPD trace output format
-debug_all option allows to run the interactive DVE tool and use steps to debug the
design
-l file_name: logs the compiler messages to given file name
-f file_name: tells VCS to read source files from the given file
During compilation a subdirectory named csrc is created to store the files generated by
compilation. This directory includes:
Incremental Compilation
The source files are compiled on module-by-module basis. Incremental compilation means
that if we run the vcs command again, only the modules that have changed after the last
compilation are recompiled. VCS compares the modules in the source file to the descriptor
information in the generated files from the last compilation, if a modules contents are
different from what VCS recorded in the last compilation, VCS recompiles the module.
Compile time options that affect incremental compilation all begin with -M.
2/3
Running the Simulation
For text based output use:
./simv
./simv -gui
To generate code coverage report in text form add the extra options as
A directory named urgReport will be created in current directory. This directory contains all
the generated reports.
References
Successful Mixed language code coverage with VCS
VCS Quickstart
VCS User Guide
3/3