3
Running MDL in Batch Mode
This chapter describes the syntax and options for the spectre =mdl commandthat you can use to run the Measurement Description Language (MDL) tool. Youcan use this command for design files written in both Spectre and SPICE languages.
spectre =mdl
Runs MDL on design files written in the Spectre language.
In the following syntax, the vertical bar ( | ) separates alternatives.
Syntax
spectre [spectre_options] =mdlMDL_file-netlistnetlist_file |-h function_name
options :: =spectre_options|-measure output_file|-mt0 |-nosort |-tab |-prec ’ format’ |-rmrawfiles |-eng numdigits
Arguments
Examples
The following command creates a .measure file called amp.measure in the directory where you run the command,
spectre =mdl amp.mdl -netlist amp.scs
You can simplify the above command because the MDL control file and the design file have the same basename. The equivalent simpler command is
spectre =mdl amp.mdl
You need the options when the MDL control file and the design file have different base names or when the design file has a suffix other than .scs or .ckt.
spectre =mdl control.mdl -netlist topnetlist.scs
spectre =mdl control.mdl -netlist netlist.sp
The following command creates a measurement result file called mdlresults in your home directory.
spectre =mdl amp.mdl -measure $HOME/mdlresults
The following command presents data in a tabular format.
spectremdl foreach.mdl -design dflip.scs -tab
results in the following .measure file (called foreach.measure)
Exported variables from PSF results directory: dflip.raw date : 9:54:01 AM, Tue May 10, 2005 design : * DFF simulator : spectre Swept Measurements : Measurement Name : findqcross Analysis Type : tran temp vdd clk_q_delay 25 1.5 1.91866e-10 25 1.8 1.61376e-10 25 2 1.5053e-10 50 1.5 1.96657e-10 50 1.8 1.66472e-10 50 2 1.55428e-10 75 1.5 2.01521e-10 75 1.8 1.71556e-1 75 2 1.60476e-10 100 1.5 2.0633e-10 100 1.8 1.76775e-10 100 2 1.65437e-10
Without the -tab option, the same command results in the following .measure file
Exported variables from PSF results directory: dflip.raw date : 10:20:35 AM, Tue May 10, 2005 design : * DFF simulator : spectre Swept Measurements : Measurement Name : findqcross Analysis Type : tran clk_q_delay temp @ 25 vdd @ 1.5 = 1.91866e-10
clk_q_delay temp @ 25 vdd @ 1.8 = 1.61376e-10
clk_q_delay temp @ 25 vdd @ 2 = 1.5053e-10
clk_q_delay temp @ 50 vdd @ 1.5 = 1.96657e-10
clk_q_delay temp @ 50 vdd @ 1.8 = 1.66472e-10
clk_q_delay temp @ 50 vdd @ 2 = 1.55428e-10
clk_q_delay temp @ 75 vdd @ 1.5 = 2.01521e-10
clk_q_delay temp @ 75 vdd @ 1.8 = 1.71556e-10
clk_q_delay temp @ 75 vdd @ 2 = 1.60476e-10
clk_q_delay temp @ 100 vdd @ 1.5 = 2.0633e-10
clk_q_delay temp @ 100 vdd @ 1.8 = 1.76775e-10
clk_q_delay temp @ 100 vdd @ 2 = 1.65437e-10
Return to top