User Guide: DSim Cloud CLI simulator commands
Synopsis
mdc dlib | dvhcom | dvlcom | dsim | dvlencrypt | dvhencrypt -a '[options]' [-v]
Allows you to run DSim simulator commands through the DSim Cloud CLI (mdc).
DSim simulator commands
dlib: Manage design libraries.
dvhcom: Analyze VHDL source code.
dvlcom: Analyze Verilog / SystemVerilog source code.
dsim: Analyze/elaborate/simulate a design.
dvlencrypt: Encrypt Verilog or SystemVerilog code.
dvhencrypt: Encrypt VHDL code.
Options
Refer to DSim Common Options.
Usage
You run DSim simulator commands through mdc by wrapping the command options in single quotes and preceding them with the argument switch -a.
So given a DSim command of the form:
<DSim command> [options]
The equivalent mdc command is:
mdc <DSim command> -a '[options]'
Use the -v switch for verbose output.
mdc will display the status of executing DSim simulator commands, complete with Exit Codes and Operation IDs as shown in the following sample output. These can be used to troubleshoot issues when communicating with Metrics Support.
Submitting: dvlcom my_tb.v -lib my_lib Executing: dvlcom my_tb.v -lib my_lib ... ... ... Execution complete. Exit code: <exit code> Operation ID: <operation>
Examples
DSim command:
dlib ls -lib my_lib
DSim Cloud CLI command:
mdc dlib -a 'ls -lib my_lib'
DSim command:
dvhcom -vhdl93 -lib libA ../file1.vhd ../../file2.vhd
DSim Cloud CLI command:
mdc dvhcom -a '-vhdl93 -lib libA ../file1.vhd ../../file2.vhd'
DSim command:
dvlcom -lib libB +incdir+../../src -F filelist.txt
DSim Cloud CLI command:
mdc dvlcom -a '-lib libB +incdir+../../src -F filelist.txt'
DSim command:
dsim -genimage image -top work.my_module -timescale 1ns/1ps +acc+b
DSim Cloud CLI command:
mdc dsim -a '-genimage image -top work.my_module -timescale 1ns/1ps +acc+b'
DSim command:
dsim -image image -run-until 10us -waves file.vcd
DSim Cloud CLI command:
mdc dsim -a '-image image -run-until 10us -waves file.vcd'
DSim command:
dvlencrypt input_plain.sv -i default_encryption -o output_encrypted.sv
DSim Cloud CLI command:
mdc dvlencrypt -a 'input_plain.sv -i default_encryption -o output_encrypted.sv'
DSim command:
dvhencrypt input_plain.vhd -i default_encryption -o output_encrypted.vhd
DSim Cloud CLI command:
mdc dvhencrypt -a 'input_plain.vhd -i default_encryption -o output_encrypted.vhd'