Brief Introduction to VCS Options
Introduction to Key VCS Options
VCS is a widely used HDL simulator from Synopsys. It supports compiling and simulating Verilog and SystemVerilog designs. VCS provides many compilation and simulation options to control and customize the simulation. This post introduces some of the commonly used VCS options.
VCS Compilation Options
VCS compilation options control how the source code is compiled into an executable simulation executable. Some key compilation options include:
Option | Description |
---|---|
-cm | Enables code coverage metrics |
-debug | Enables UCLI debug commands |
-l | Logs compilation messages to file |
-ntb | Enables Native Testbench |
-o | Simulation executable name |
-v | Verilog library file |
-y | Verilog library directory |
-f | File containing list of source files |
-file | Similar to -f , but can contain options for controlling compilation, PLI options and object files. |
+incdir+<directory> | Adds directory to include path |
+libext+<extension> | Searches for library files with extension; use with -y |
+define+ | Defines macro for ifdef |
+protect | Encrypts source code |
+cli | Enables CLI debugging |
VCS Simulation Options
VCS simulation options control the simulation execution. Some key options are:
Option | Description |
---|---|
-sverilog | Supports SystemVerilog |
-ucli | Enables UCLI debug commands |
-vcd | Dumps VCD file |
-i <filename> | Runs CLI commands from file |
-k <filename> | Logs UCLI and Virsim commands |
VCS Debug Options
Some options useful for interactive debugging include:
Option | Description |
---|---|
-RI | Compiles and starts Virsim for debugging |
-RIG | Starts Virsim with existing executable |
+sim+ | Specifies executable for -RIG |
-RPP | Starts Virsim for post-processing with VCD+ |
+cfgfile+<filename> | Specifies scenario configuration file |
+vslogfile+<filename> | Saves Virsim command log |
This post is licensed under CC BY 4.0 by the author.