When creating an xrun run script for design verification, you need to specify the following items on the xrun command line:
|
Item/Option |
Example | |
|---|---|---|
|
Digital design inputs |
|
|
|
AMS control file |
|
|
|
Analog solver control file |
|
|
|
Timescale for undefined Verilog modules |
|
|
|
Tcl probe on behavioral nodes |
|
|
Some things to note:
- You can specify the AMS and analog control file on the command line, just like any other input file.
-
You do not need to specify any connect rules (
-amsconnrules) when you have an ie statement in anamsdblock.If you do use a connect rules file, you can specify it as a regular input file, directly on the command line.
- The model files must be included in the AMS control file.
For example:
include "./models/resistor.scs" section=res
include "./models/diode.scs" section=dio
include "./models/pmos1.scs" section=nom
include "./models/nmos1.scs" section=nom
Tcl File Creation to Probe Behavioral Nodes
To probe behavioral nodes and save that information to a database file called waves.shm, you might create a Tcl file (probe.tcl) containing commands such as the following:
database -open waves -into waves.shm -defaultprobe -create -database waves -all -depth allprobe -create -database waves testbench.refclkprobe -create -database waves testbench.clk_p0_1xprobe -create -database waves testbench.clk_p0_4xprobe -create -database waves testbench.p0
run) in a Tcl file.