To get the stability of startup circuit, you may want to know the stability information through a period of time. To do this:
ad1
Tuesday, November 28, 2017
Use Transient simulation operating point in stb analysis
Try using the Setup->Environment form, and looking at the "Analysis Order". You can enter "tran stb" in this field to tell it what order to do the analyses, which will override the default.
This makes the stability analysis use the final time of previously transient simulation as its operating point in calculating the stability information, as can been verified in spectre.out file.
Alternatively, you can set actimes & acnames in transient analysis:
The generated netlist reflect these changes by:
and the spectre.out shows something like:
Sunday, January 10, 2016
Make spectre netlist file (*.scs) syntaxed in Vim
- Put spectre.vim into ~/.vim/syntax directory
- Add lines in ~/.vim/filetype.vim
augroup filetypedetect
au! BufRead,BufNewFile *.scs,*.SCS setfiletype spectre
augroup END
Wednesday, December 30, 2015
connectRules.il
The connectRules.il file contains the built-in connect rules that are displayed in the Select Connect Rules form.

ADE searches for the connectRules.il file in the following locations. If multiple connectRules.il files are located, their contents are concatenated and displayed in the Select Connect Rules form.
Path specified by the connectRulesPath variable in the .cdsenv file. All Cadence-supplied connect rules are stored in the connectRules.il file in the
You can use the genConnRulesFile command to automatically compile your user-defined connect rules into a custom connectRules.il file.

ADE searches for the connectRules.il file in the following locations. If multiple connectRules.il files are located, their contents are concatenated and displayed in the Select Connect Rules form.
- All libraries defined in the cds.lib file
- Current work directory
- $HOME directory
- $CDS_HIER/share/cdssetup/ams/
Path specified by the connectRulesPath variable in the .cdsenv file. All Cadence-supplied connect rules are stored in the connectRules.il file in the
tools/affirma_ams/etc/connect_lib/connectLibdirectory in your Cadence Incisive Unified Simulator (IUS) installation directory.
You can use the genConnRulesFile command to automatically compile your user-defined connect rules into a custom connectRules.il file.
Tuesday, December 29, 2015
Sunday, December 27, 2015
OCEAN Script Template
;; initialization
(setq designName "./spectre/schematic/netlist/netlist")
(setq resultPath "./spectre/result")
(setq modelName "model.lib")
(setq saveFile "save.scs")
(setq corners list("ss" "ff" "tt"))
;; run script
ocnWaveformTool('wavescan )
simulator('spectre )
design(designName)
analysis(
'tran
?stop "8.814u"
?errpreset "conservative"
)
desVar( "VRP" 1.2 )
desVar( "VRN" 0 )
desVar( "AVDD12" 1.2 )
envOption(
'userCmdLineOption "+aps +parasitics +mt=20"
)
option(
'nthreads "30"
'multithread "on"
'temp "85"
)
saveOption('nestlvl "1")
saveOption('save "selected")
foreach(corner corners
resultsDir(sprintf(nil "%s/%s" resultPath corner))
modelFile(
list(modelName sprintf(nil "%s" corner))
list(modelName sprintf(nil "res_%s" corner))
list(modelName sprintf(nil "mom_%s" corner))
list(saveFile)
)
paramAnalysis(
"temp"
?values '(-40 -20 0 55 85 125)
)
paramRun()
)
winID=newWindow()
clearAll()
graphicsOff()
foreach(
corner corners
openResults(sprintf(nil "%s/%s" resultPath corner))
selectResults('tran)
(setq V VT("OUT"))
plot(V)
)
graphicsOn()
(setq designName "./spectre/schematic/netlist/netlist")
(setq resultPath "./spectre/result")
(setq modelName "model.lib")
(setq saveFile "save.scs")
(setq corners list("ss" "ff" "tt"))
;; run script
ocnWaveformTool('wavescan )
simulator('spectre )
design(designName)
analysis(
'tran
?stop "8.814u"
?errpreset "conservative"
)
desVar( "VRP" 1.2 )
desVar( "VRN" 0 )
desVar( "AVDD12" 1.2 )
envOption(
'userCmdLineOption "+aps +parasitics +mt=20"
)
option(
'nthreads "30"
'multithread "on"
'temp "85"
)
saveOption('nestlvl "1")
saveOption('save "selected")
foreach(corner corners
resultsDir(sprintf(nil "%s/%s" resultPath corner))
modelFile(
list(modelName sprintf(nil "%s" corner))
list(modelName sprintf(nil "res_%s" corner))
list(modelName sprintf(nil "mom_%s" corner))
list(saveFile)
)
paramAnalysis(
"temp"
?values '(-40 -20 0 55 85 125)
)
paramRun()
)
winID=newWindow()
clearAll()
graphicsOff()
foreach(
corner corners
openResults(sprintf(nil "%s/%s" resultPath corner))
selectResults('tran)
(setq V VT("OUT"))
plot(V)
)
graphicsOn()
Saturday, December 26, 2015
Waveform & Waveform Family
Use drIsWaveform & famIsFamily
(defun fcnName (wave_x @rest wl)
(let (a b c)
(cond
((drIsWaveform wave_x)
blah blah
blah blah
) ; is waveform
((famIsFamily wave_x)
(apply 'famMap (constar 'fcnName wave_x wl))
) ; is family
(t
(error "can't handle %L\n" wave_x)
) ; not a waveform and not a family of waveform
) ; cond
) ; let
) ; defun
(defun fcnName (wave_x @rest wl)
(let (a b c)
(cond
((drIsWaveform wave_x)
blah blah
blah blah
) ; is waveform
((famIsFamily wave_x)
(apply 'famMap (constar 'fcnName wave_x wl))
) ; is family
(t
(error "can't handle %L\n" wave_x)
) ; not a waveform and not a family of waveform
) ; cond
) ; let
) ; defun
SKILL Internal system variable
autoReload
debugMode
errsetTrace
fullPrecision
integermode
mergemode
printinfix
writeProtect
stacktraceDump
stacktrace
sourceTracing
traceArgs
debugMode
errsetTrace
fullPrecision
integermode
mergemode
printinfix
writeProtect
stacktraceDump
stacktrace
sourceTracing
traceArgs
status & sstatus
Friday, December 25, 2015
.oceanrc file
$ oceanThis command loads and reads your .cdsinit file first and then loads and reads the .oceanrc file. You can place OCEAN commands in your .oceanrc file, which is similar to the .cdsinit file.
Draw Waveform From Corner Simulation Result
winID=newWindow()
corners = list("ss" "ff" "tt")
resultPath="./opamp_stb_tb/spectre/PVT"
clearAll()
; Note:
; graphicsOff()/graphicsOn() helps eliminates the redraw for each plot.
; When graphicsOn() is called, the completed plot appears.
graphicsOff()
foreach(
var
corners
openResults(sprintf(nil "%s/%s" resultPath var))
selectResults('stb_margin)
plot(getData("phaseMargin"))
)
graphicsOn()
corners = list("ss" "ff" "tt")
resultPath="./opamp_stb_tb/spectre/PVT"
clearAll()
; Note:
; graphicsOff()/graphicsOn() helps eliminates the redraw for each plot.
; When graphicsOn() is called, the completed plot appears.
graphicsOff()
foreach(
var
corners
openResults(sprintf(nil "%s/%s" resultPath var))
selectResults('stb_margin)
plot(getData("phaseMargin"))
)
graphicsOn()
Corner Simulation Using OCEAN
designName="blahblah/spectre/schematic/netlist/netlist"
resultPath="blahblah/spectre/PVT"
modelFileName="blahblah/model.lib"
ocnWaveformTool('wavescan )
simulator('spectre )
design(designName)
analysis(
'stb
?start "1"
?stop "1T"
?dec "100"
?probe "/V0"
)
desVar("AVDD15" 1.5)
foreach(corner '("ss" "ff" "tt")
resultsDir(sprintf(nil "%s/%s" resultPath corner))
modelFile(
list(modelFileName sprintf(nil "%s" corner))
list(modelFileName sprintf(nil "bjt_%s" corner))
list(modelFileName sprintf(nil "dio_%s" corner))
list(modelFileName sprintf(nil "res_%s" corner))
)
paramAnalysis(
"temp"
?values '(-45 -20 60 85 125)
paramAnalysis(
"AVDD15"
?values '(1.35 1.5 1.65)
)
)
paramRun()
)
resultPath="blahblah/spectre/PVT"
modelFileName="blahblah/model.lib"
ocnWaveformTool('wavescan )
simulator('spectre )
design(designName)
analysis(
'stb
?start "1"
?stop "1T"
?dec "100"
?probe "/V0"
)
desVar("AVDD15" 1.5)
foreach(corner '("ss" "ff" "tt")
resultsDir(sprintf(nil "%s/%s" resultPath corner))
modelFile(
list(modelFileName sprintf(nil "%s" corner))
list(modelFileName sprintf(nil "bjt_%s" corner))
list(modelFileName sprintf(nil "dio_%s" corner))
list(modelFileName sprintf(nil "res_%s" corner))
)
paramAnalysis(
"temp"
?values '(-45 -20 60 85 125)
paramAnalysis(
"AVDD15"
?values '(1.35 1.5 1.65)
)
)
paramRun()
)
Generate Netlist Using SKILL
simulator('spectre)
design("libName" "cellName" "schematic")
createNetlist()
design("libName" "cellName" "schematic")
createNetlist()
Fold command in Vim
All folding commands start with "z" -- "z" looks like a folded piece of paper.
zf
Thursday, December 24, 2015
input.scs & netlist
In netlist directory, there are two files called input.scs and netlist respectively, input.scs is used by runSimulation, while the netlist file can be used in ocean script in design command
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design("xxxxxxx/spectre/schematic/netlist/netlist")
resultsDir("../prj/pll_xxxxx/spectre/schematic" )
Subscribe to:
Posts (Atom)










