Hspice Command Ref
Hspice Command Ref
Reference
Release U-2003.09-RA, September 2003
Comments?
E-mail your comments about Synopsys
documentation to [email protected]
Copyright Notice and Proprietary Information
Copyright 2003 Synopsys, Inc. All rights reserved. This software and documentation contain confidential and proprietary
information that is the property of Synopsys, Inc. The software and documentation are furnished under a license agreement and
may be used or copied only in accordance with the terms of the license agreement. No part of the software and documentation may
be reproduced, transmitted, or translated, in any form or by any means, electronic, mechanical, manual, optical, or otherwise,
without prior written permission of Synopsys, Inc., or as expressly provided by the license agreement.
Right to Copy Documentation
The license agreement with Synopsys permits licensee to make copies of the documentation for its internal use only.
Each copy shall include all copyrights, trademarks, service marks, and proprietary rights notices, if any. Licensee must
assign sequential numbers to all copies. These copies shall contain the following legend on the cover page:
“This document is duplicated with the permission of Synopsys, Inc., for the exclusive use of
__________________________________________ and its employees. This is copy number __________.”
SystemC is a trademark of the Open SystemC Initiative and is used under license.
AMBA is a trademark of ARM Limited. ARM is a registered trademark of ARM Limited.
All other product or company names may be trademarks of their respective owners.
iii
Subcircuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
.AC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
.ALIAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
.ALTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12
.BIASCHK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14
.CONNECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17
.DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-19
.DC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-28
.DCVOLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-34
.DEL LIB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-36
.DISTO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-40
.DOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-43
.EBD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-45
.ELSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-47
.ELSEIF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-48
.END . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-50
.ENDDATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-52
.ENDIF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-53
.ENDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-54
.ENDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-55
.EOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-56
.FFT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-57
.FOUR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-60
.FSOPTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-62
.GLOBAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-64
iv
.GRAPH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-65
.IBIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-67
.IC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-68
.IF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-70
.INCLUDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-72
.LAYERSTACK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-73
.LIB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-75
.LIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-79
.LOAD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-81
.MACRO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-84
.MALIAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-87
.MATERIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-89
.MEASURE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-91
.MEASURE (Rise, Fall, and Delay Measurements) . . . . . . . . . . 2-92
.MEASURE (Average, RMS, and Peak Measurements) . . . . . . 2-96
.MEASURE (FIND and WHEN) . . . . . . . . . . . . . . . . . . . . . . . . . 2-98
.MEASURE (Equation Evaluation/ Arithmetic Expression) . . . . 2-103
.MEASURE (Average, RMS, MIN, MAX, INTEG, and PP) . . . . 2-105
.MEASURE (Integral Function) . . . . . . . . . . . . . . . . . . . . . . . . . 2-108
.MEASURE (Derivative Function) . . . . . . . . . . . . . . . . . . . . . . . 2-109
.MEASURE (Error Function) . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-112
.MODEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-114
.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-120
.NODESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-122
.NOISE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-123
.OP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-124
v
.OPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-126
.PARAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-127
.PKG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-132
.PLOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-134
.PRINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-136
.PROBE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-141
.PROTECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-142
.PZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-143
.SAMPLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-145
.SAVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-146
.SENS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-148
.SHAPE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-150
.SHAPE (Defining Rectangles) . . . . . . . . . . . . . . . . . . . . . . . . . 2-151
.SHAPE (Defining Circles) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-152
.SHAPE (Defining Polygons) . . . . . . . . . . . . . . . . . . . . . . . . . . 2-153
.SHAPE (Defining Strip Polygons) . . . . . . . . . . . . . . . . . . . . . . 2-155
.STIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-156
.SUBCKT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-162
.TEMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-165
.TF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-167
.TITLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-169
.TRAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-170
.UNPROTECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-175
.VEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-176
.WIDTH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-177
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-178
vi
3. Options in HSPICE Netlists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
.OPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
General Control Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
vii
.BIASCHK Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11
Transient Control Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11
Transient Control Method Options . . . . . . . . . . . . . . . . . . . . . . . 3-11
Transient Control Tolerance Options . . . . . . . . . . . . . . . . . . . . . 3-12
Transient Control Limit Options . . . . . . . . . . . . . . . . . . . . . . . . . 3-12
Transient Control Matrix Options . . . . . . . . . . . . . . . . . . . . . . . . 3-12
Iteration Count Dynamic Timestep Options . . . . . . . . . . . . . . . . 3-13
viii
.OPTION BEEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30
.OPTION BIASFILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-31
.OPTION BIAWARN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32
.OPTION BINPRINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33
.OPTION BKPSIZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-34
.OPTION BRIEF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-35
.OPTION BYPASS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-36
.OPTION BYTOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37
.OPTION CAPTAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-38
.OPTION CDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-39
.OPTION CHGTOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-40
.OPTION CO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41
.OPTION CONVERGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-42
.OPTION CPTIME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-43
.OPTION CSDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-44
.OPTION CSHDC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-45
.OPTION CSHUNT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46
.OPTION CVTOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-47
.OPTION D_IBIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-48
.OPTION DCAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-49
.OPTION DCCAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-50
.OPTION DCFOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-51
.OPTION DCHOLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-52
.OPTION DCON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-53
.OPTION DCSTEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-54
.OPTION DCTRAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-55
ix
.OPTION DEFAD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-56
.OPTION DEFAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-57
.OPTION DEFL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-58
.OPTION DEFNRD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-59
.OPTION DEFNRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60
.OPTION DEFPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-61
.OPTION DEFPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-62
.OPTION DEFW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-63
.OPTION DELMAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-64
.OPTION DI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-65
.OPTION DIAGNOSTIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-66
.OPTION DLENCSDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-67
.OPTION DV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-68
.OPTION DVDT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-69
.OPTION DVTR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-70
.OPTION EPSMIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-71
.OPTION EXPLI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-72
.OPTION EXPMAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-73
.OPTION FAST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-74
.OPTION FFTOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-75
.OPTION FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-76
.OPTION FT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-77
.OPTION GENK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-78
.OPTION GMAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-79
.OPTION GMIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-80
.OPTION GMINDC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-81
x
.OPTION GRAMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-82
.OPTION GSHUNT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-83
.OPTION H9007 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-84
.OPTION HIER_SCALE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-85
.OPTION ICSWEEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-86
.OPTION IMAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-87
.OPTION IMIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-88
.OPTION INGOLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-89
.OPTION INTERP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-90
.OPTION ITL1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-91
.OPTION ITL2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-92
.OPTION ITL3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-93
.OPTION ITL4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-94
.OPTION ITL5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-95
.OPTION ITLPTRAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-96
.OPTION ITLPZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-97
.OPTION ITRPRT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-98
.OPTION KCLTEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-99
.OPTION KLIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-100
.OPTION LENNAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-101
.OPTION LIMPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-102
.OPTION LIMTIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-103
.OPTION LIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-104
.OPTION LVLTIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-105
.OPTION MAXAMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-106
.OPTION MAXORD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-107
xi
.OPTION MBYPASS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-108
.OPTION MEASDGT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-109
.OPTION MEASFAIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-110
.OPTION MEASSORT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-111
.OPTION MEASOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-112
.OPTION MENTOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-113
.OPTION METHOD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-114
.OPTION MODMONTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-116
.OPTION MODSRH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-117
.OPTION MONTECON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-118
.OPTION MU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-119
.OPTION NEWTOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-120
.OPTION NODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-121
.OPTION NOELCK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-122
.OPTION NOMOD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-123
.OPTION NOPAGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-124
.OPTION NOPIV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-125
.OPTION NOTOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-126
.OPTION NOWARN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-127
.OPTION NUMDGT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-128
.OPTION NXX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-129
.OPTION OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-130
.OPTION OPTLST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-131
.OPTION OPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-132
.OPTION PARHIER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-133
.OPTION PATHNUM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-134
xii
.OPTION PIVOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-135
.OPTION PIVREF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-137
.OPTION PIVREL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-138
.OPTION PIVTOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-139
.OPTION PLIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-140
.OPTION POST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-141
.OPTION POST_VERSION . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-142
.OPTION PROBE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-143
.OPTION PSF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-144
.OPTION PURETP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-145
.OPTION PUTMEAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-146
.OPTION RELH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-147
.OPTION RELI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-148
.OPTION RELMOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-149
.OPTION RELQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-150
.OPTION RELTOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-151
.OPTION RELV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-152
.OPTION RELVAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-153
.OPTION RELVDC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-154
.OPTION RESMIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-155
.OPTION RISETIME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-156
.OPTION RMAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-157
.OPTION RMIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-158
.OPTION SCALE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-159
.OPTION SCALM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-160
.OPTION SDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-161
xiii
.OPTION SEARCH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-162
.OPTION SEED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-163
.OPTION SLOPETOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-164
.OPTION SPARSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-165
.OPTION SPICE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-166
.OPTION STATFL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-168
.OPTION TIMERES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-169
.OPTION TNOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-170
.OPTION TRCON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-171
.OPTION TRTOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-173
.OPTION UNWRAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-174
.OPTION VERIFY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-175
.OPTION VFLOOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-176
.OPTION VNTOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-177
.OPTION WARNLIMIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-178
.OPTION WL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-179
.OPTION XDTEMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-180
.OPTION ZUKEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-182
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IN-1
xiv
Preface FIX ME!
xvii
About this Manual
The HSPICE Command Reference describes how to use HSPICE to
maintain signal integrity in your chip design.
Audience
This manual is for circuit designers and engineers who use
Synopsys HSPICE for circuit simulation and analysis.
Related Publications
For additional information about the HSPICE Command Reference,
see
What’s New
This manual is only available online.
New Features
See the Release Notes for information about new features and last-
minute changes.
Conventions
This manual uses certain style conventions to indicate functions,
node/port names (in C code), examples, and file names.
command_name[argument(s)]
Symbol Definition
| A pipe symbol ( | ) represents the word “or” and separates
choices between two or more arguments.
... An ellipsis (...) indicates that more than one argument can
be specified. Ellipses are used only for multiple arguments
with tags.
[] Open and closed square brackets indicate that the
enclosed argument is optional.
() Open and closed parenthesis indicate that there is a
choice between the enclosed arguments (two or more).
These are used only when a command has several groups
of argument choices; multiple pipe symbols ( | ), in this
case, would result in an ambiguous syntax.
Preface Conventions
xx
SYNTAX:
For this command, a[vg], r[ms], p[eak], and h[ist] are keywords–
choose one of these. The node_name(s) are user-determined.
EXAMPLE 1:
SYNTAX:
For this command, a[ll] and q[uoted] are optional keywords. The tag
for= is part of an optional argument for which you can choose the
keyword epic or spice. The time(s) are user-determined and, in this
case, optional.
EXAMPLE 2:
Preface Conventions
xxi
EXAMPLE 1:
File names are shown in the same font as the surrounding text, but
in italics.
EXAMPLE 2:
EXAMPLE 3:
Functions
SYNTAX:
For this command, int is the data type of the function and delay,
port_id, w, and l are user-determined parameters.
Preface Conventions
xxii
DESCRIPTION:
Each function description includes a table that provides the data type
and description for each function parameter.
EXAMPLE 1:
fmDisablePort("out");
For each example there is a corresponding explanation. Anything
shown in the example that appears in the explanation is shown in the
same courier font used in the example.
EXAMPLE 2:
fmDisablePortById(out_id);
This example disables the port with ID previously defined as out_id
for the current model.
Preface Conventions
xxiii
Customer Support
Customer support is available through SolvNet online customer
support and through contacting the Synopsys Technical Support
Center.
Accessing SolvNet
SolvNet includes an electronic knowledge base of technical articles
and answers to frequently asked questions about Synopsys tools.
SolvNet also gives you access to a wide range of Synopsys online
services including software downloads, documentation on the Web,
and “Enter a Call With the Support Center.”
To access SolvNet:
Alter Blocks
Use these commands in your HSPICE netlist to run alternative
simulations of your netlist, using different data.
.ALIAS .TEMP
.ALTER
.DEL LIB
1-1
Analysis
Use these commands in your HSPICE netlist to start different types
of HSPICE analysis, to save the simulation results into a file, and to
load the results of a previous simulation into a new simulation.
.AC .PZ
.DC .SAMPLE
.DISTO .SENS
.ENDDATA .TEMP
.FFT .TF
.FOUR .TRAN
.LIN
.NET
.NOISE
.OP
Conditional Block
Use these commands in your HSPICE netlist to setup a conditional
block. HSPICE does not execute the commands in the conditional
block, unless the specified conditions are true.
.ELSE .ENDIF
.ELSEIF .IF
Encryption
Use these commands in your HSPICE netlist to mark the start and
end of an encrypted section of a netlist.
.PROTECT .UNPROTECT
Command Categories:
1-2
Field Solver
Use these commands in your HSPICE netlist to define a field solver.
.FSOPTIONS .MATERIAL
.LAYERSTACK .SHAPE
Library Management
Use these commands in your HSPICE netlist to manage libraries of
circuit designs, and to call other files when simulating your netlist.
.DEL LIB .UNPROTECT
.ENDL .VEC
.INCLUDE
.LIB
.PROTECT
Model Definition
Use these commands in your HSPICE netlist to define models.
.MALIAS .MODEL
Command Categories:
1-3
Node Naming
Use these commands in your HSPICE netlist to name nodes in
circuit designs.
.CONNECT .GLOBAL
Output Porting
Use these commands in your HSPICE netlist to specify the output of
a simulation, to a printer, plotter, or graph. You can also define the
parameters to measure, and to report in the simulation output.
.BIASCHK .PLOT
.DOUT .PRINT
.GRAPH .PROBE
.MEASURE .STIM
.WIDTH
Setup
Use these commands in your HSPICE netlist to setup your netlist for
simulation.
.DATA .OPTION
.DCVOLT .PARAM
.GLOBAL .SAVE
.IC .TITLE
.LOAD .VEC
.NODESET
Command Categories:
1-4
Simulation Runs
Use these commands in your HSPICE netlist to mark the start and
end of individual simulation runs, and conditions that apply
throughout an individual simulation run.
.END .TITLE
.TEMP
Subcircuits
Use these commands in your HSPICE netlist to define subcircuits,
and to add instances of subcircuits to your netlist.
.ENDS .MACRO
.EOM .MODEL
.INCLUDE .SUBCKT
Command Categories:
1-5
Command Categories:
1-6
2
Commands in HSPICE Netlists 2
This chapter contains an alphabetical listing of all commands that
you can use in an HSPICE netlist. For a list of commands grouped
according to tasks that use each command, see Chapter 1,
“Command Categories.”
• .AC
• .ALIAS
• .ALTER
• .BIASCHK
• .CONNECT
• .DATA
• .DC
• .DCVOLT
2-1
• .DEL LIB
• .DISTO
• .DOUT
• .EBD
• .ELSE
• .ELSEIF
• .END
• .ENDDATA
• .ENDIF
• .ENDL
• .ENDS
• .EOM
• .FFT
• .FOUR
• .FSOPTIONS
• .GLOBAL
• .GRAPH
• .IBIS
• .IC
• .IF
• .INCLUDE
• .LIB
• .LIN
• .LOAD
• .MACRO
• .MALIAS
• .MATERIAL
• .MEASURE
• .MODEL
• .NET
• .NODESET
• .NOISE
• .OP
• .OPTION
• .PARAM
• .PKG
• .PLOT
• .PRINT
• .PROBE
• .PROTECT
• .PZ
• .SAMPLE
• .STIM
• .SUBCKT
• .TEMP
• .TF
• .TITLE
• .TRAN
• .UNPROTECT
• .VEC
• .WIDTH
SYNTAX:
Single/Double Sweep
.AC type np fstart fstop
.AC type np fstart fstop <SWEEP var <START=>start
+ <STOP=>stop <STEP=>incr>
.AC type np fstart fstop <SWEEP var type np start stop>
.AC type np fstart fstop
+ <SWEEP var START="param_expr1"
+ STOP="param_expr2" STEP="param_expr3">
.AC type np fstart fstop <SWEEP var start_expr
+ stop_expr step_expr>
Sweep Using Parameters
.AC type np fstart fstop <SWEEP DATA = datanm>
.AC DATA = datanm
.AC DATA = datanm <SWEEP var <START=>start
<STOP=>stop
+ <STEP=>incr>
.AC DATA = datanm <SWEEP var type np start stop>
.AC DATA = datanm <SWEEP var START="param_expr1"
+ STOP="param_expr2" STEP="param_expr3">
.AC DATA = datanm <SWEEP var start_expr stop_expr
+ step_expr>
Optimization
.AC DATA = datanm OPTIMIZE = opt_par_fun
+ RESULTS = measnames MODEL = optmod
EXAMPLE 1:
.AC DEC 10 1K 100MEG
This example performs a frequency sweep, by 10 points per
decade, from 1 kHz to 100 MHz.
EXAMPLE 2:
.AC LIN 100 1 100HZ
This example runs a 100-point frequency sweep from 1 Hz
to 100 Hz.
EXAMPLE 3:
.AC DEC 10 1 10K SWEEP cload LIN 20 1pf 10pf
This example performs an AC analysis, for each value of
cload. This results from a linear sweep of cload between 1
pF and 10 pF (20 points), sweeping the frequency by 10
points per decade, from 1 Hz to 10 kHz.
EXAMPLE 4:
.AC DEC 10 1 10K SWEEP rx POI 2 5k 15k
This example performs an AC analysis, for each value of rx,
5 k and 15 k, sweeping the frequency by 10 points per
decade, from 1 Hz to 10 kHz.
EXAMPLE 5:
.AC DEC 10 1 10K SWEEP DATA = datanm
This example uses the .DATA statement to perform a series
of AC analyses, modifying more than one parameter. The
datanm file contains the parameters.
DESCRIPTION:
You can use the .AC statement in several different formats,
depending on the application, as shown in the examples
below. You can also use the .AC statement to perform data-
driven analysis in HSPICE.
If the input file includes an .AC statement, HSPICE runs AC
analysis for the circuit, over a selected frequency range, for
each parameter in the second sweep.
For AC analysis, the data file must include at least one
independent AC source element statement (for example, VI
INPUT GND AC 1V). HSPICE checks for this condition, and
reports a fatal error if you did not specify such AC sources.
Command
Definition
Argument
SEE ALSO:
.DC
.TRAN
SYNTAX:
.ALIAS <model_name1> <model_name2>
EXAMPLE 1:
You delete a library named poweramp, that contains a model
named pa1. Another library contains an equivalent model
named par1. You can then alias the pa1 model name to the
par1 model name:
.ALIAS pa1 par1
During simulation, when HSPICE encounters a model
named pa1 in your netlist, it initially cannot find this model,
because you used a .ALTER statement to delete the library
that contained this model. However, the .ALIAS statement
indicates to use the par1 model, in place of the old pa1
model. HSPICE does find this new model in another library,
so simulation continues.
You must specify an old model name and a new model name
to use in its place. You cannot use .ALIAS without any
model names:
.ALIAS
or with only one model name:
.ALIAS pa1
You also cannot alias a model name to more than one model
name, because then the simulator would not know which of
these new models to use in place of the deleted or renamed
model:
.ALIAS pa1 par1 par2
EXAMPLE 2:
Your netlist might contain the statement:
.ALIAS myfet nfet
Without a .ALTER statement, HSPICE does not use nfet to
replace myfet during simulation.
If your netlist contains one or more .ALTER commands, the
first simulation uses the original myfet model. After the first
simulation, if the netlist references myfet from a deleted
library, .ALIAS substitutes nfet in place of the missing
model.
• If HSPICE finds model definitions for both myfet and nfet,
it reports an error and aborts.
• If HSPICE finds a model definition for myfet, but not for
nfet, it reports a warning, and simulation continues, using
the original myfet model.
SYNTAX:
.ALTER <title_string>
EXAMPLE:
.ALTER simulation_run2
DESCRIPTION:
You can use the .ALTER statement to rerun an HSPICE
simulation, using different parameters and data.
Use parameter (variable) values for print and plot
statements, before you alter them. The .ALTER block
cannot include .PRINT, .PLOT, .GRAPH or any other input/
output statements. You can include analysis statements
(.DC, .AC, .TRAN, .FOUR, .DISTO, .PZ, and so on) in
a .ALTER block in an input netlist file.
However, if you change only the analysis type, and you do
not change the circuit itself, then simulation runs faster if you
specify all analysis types in one block, instead of using
separate .ALTER blocks for each analysis type.
The .ALTER sequence or block can contain:
• Element statements (except source elements)
• .DATA statements
• .LIB statements
• .MODEL statements
• .TEMP statements
• .TF statements
• .TRAN, .DC, and .AC statements
• .ALIAS statements
Command
Definition
Argument
SYNTAX:
.BIASCHK type terminal1=t1 terminal2=t2 limit=lim
+ <noise=ns><name=devname1><name=devname2>...
+ <mname=modelname1><mname=modelname2> ...
* Check transistor mode of operation
.BIASCHK type region=<region>
+ <name=devname1> <name=devname2> ...
+ <mname=modelname1> <mname=modelname2>
EXAMPLE:
.BIASCHK NMOS terminal1=ng terminal2=nb limit=2v
+ noise=0.01v name=x1.x3.m1 mname=nch.1 name=m3
DESCRIPTION:
Breakdown can occur if a voltage bias between some
terminals of an element is too large. The .BIASCHK
statement monitors the voltage bias, using the limits and
noise that you define. Bias monitoring checks the specified
bias, during transient analysis, and reports:
• Element name
• Time
• Terminals
Command
Definition
Argument
limit Biaschk limit that you define. Reports an error, if the bias
voltage (between appointed terminals, of appointed
elements and models), is larger than the limit.
SYNTAX:
.CONNECT node1 node2
EXAMPLE 1:
...
.subckt eye_diagram node1 node2 ...
.connect node1 node2
...
.ends
This is now the same as the following:
...
.subckt eye_diagram node1 node1 ...
...
.ends
...
HSPICE reports the following error message:
**error**: subcircuit definition duplicates node
node1
To apply any HSPICE statement to node2, apply it to node1
instead. Then, to change the netlist construction to
recognize node2, use a .ALTER statement.
EXAMPLE 2:
*example for .connect
vcc 0 cc 5v
r1 0 1 5k
r2 1 cc 5k
.tran 1n 10n
.print i(vcc) v(1)
.alter
.connect cc 1
.end
EXAMPLE 3:
.CONNECT node1 node2
.CONNECT node2 node3
This example connects both node2 and node3 to node1. All
connected nodes must be in the same subcircuit, or all in the
main circuit. The first HSPICE simulation evaluates only
node1; node2, and node3 are the same node as node1.
Use .ALTER statements to simulate node2 and node3.
If you set .OPTION NODE, then HSPICE prints out a node
connection table.
DESCRIPTION:
The .CONNECT statement connects two nodes in your
HSPICE netlist, so that simulation evaluates two nodes as
only one node. Both nodes must be at the same level in the
circuit design that you are simulating: you cannot connect
nodes that belong to different subcircuits.
If you connect node2 to node1, HSPICE does not recognize
node2 at all.
Command
Definition
Argument
SYNTAX:
EXAMPLE 2:
* .DATA as the inner sweep
M1 1 2 3 0 N W = 50u L = LN
VGS 2 0 0.0v
VBS 3 0 VBS
VDS 1 0 VDS
.PARAM VDS = 0 VBS = 0 L = 1.0u
.DC DATA = vdot
.DATA vdot
VBS VDS L
0 0.1 1.5u
0 0.1 1.0u
0 0.1 0.8u
-1 0.1 1.0u
-2 0.1 1.0u
-3 0.1 1.0u
0 1.0 1.0u
0 5.0 1.0u
.ENDDATA
EXAMPLE 3:
* .DATA as the outer sweep
.PARAM W1 = 50u W2 = 50u L = 1u CAP = 0
.TRAN 1n 100n SWEEP DATA = d1
.DATA d1
W1 W2 L CAP
50u 40u 1.0u 1.2pf
25u 20u 0.8u 0.9pf
.ENDDATA
In this example:
• The default start time for the .TRAN analysis is 0.
• The time increment is 1 ns.
• The stop time is 100 ns.
EXAMPLE 5:
If you concatenate the three files (file1, file2, and file3).
file1 file2 file3
a a a b b b c c c
a a a b b b c c c
a a a
The data appears as follows:
a a a
a a a
a a a
b b b
b b b
c c c
c c c
The number of lines (rows) of data in each file does not need
to be the same. The simulator assumes that the associated
parameter of each column of the A file is the same as each
column of the other files.
The .DATA statement for this example is:
* External File .DATA statement
.DATA inputdata MER
FILE = ‘file1’ p1 = 1 p2 = 3 p3 = 4
FILE = ‘file2’ p1 = 1
FILE = ‘file3’
.ENDDATA
EXAMPLE 6:
Three files (D, E, and F) contain the following columns of
data:
File D File E File F
d1 d2 d3 e4 e5 f6
d1 d2 d3 e4 e5 f6
d1 d2 d3 e4 e5 f6
The laminated data appears as follows:
d1 d2 d3 e4 e5 f6
d1 d2 d3 e4 e5 f6
d1 d2 d3 e4 e5 f6
The number of columns of data does not need to be the
same in the three files.
The number of lines (rows) of data in each file does not need
to be the same. HSPICE interprets missing data points as
zero.
DESCRIPTION:
Data-driven analysis syntax requires a .DATA statement,
and an analysis statement that contains a DATA = dataname
keyword.
You can use the .DATA statement to concatenate or column-
laminate data sets, to optimize measured I-V, C-V, transient,
or s-parameter data.
You can also use the .DATA statement for a first or second
sweep variable, when you characterize cells, and test worst-
case corners. Simulation reads data measured in a lab, such
as transistor I-V data, one transistor at a time, in an outer
analysis loop. Within the outer loop, the analysis reads data
for each transistor (IDS curve, GDS curve, and so on), one
curve at a time, in an inner analysis loop.
colnum Column number in the data file, for the parameter value. The
column does not need to be the same between files.
filenamei Data file to read. HSPICE concatenates files in the order they
appear in the .DATA statement. You can specify up to 10 files.
SEE ALSO:
.ENDDATA
SYNTAX:
Sweep or Parameterized Sweep:
.DC var1 START = start1 STOP = stop1 STEP = incr1
.DC var1 START = <param_expr1>
+ STOP = <param_expr2> STEP = <param_expr3>
.DC var1 start1 stop1 incr1
+ <SWEEP var2 type np start2 stop2>
.DC var1 start1 stop1 incr1 <var2 start2 stop2 incr2>
Data-Driven Sweep:
.DC var1 type np start1 stop1 <SWEEP DATA = datanm>
.DC DATA = datanm<SWEEP var2 start2 stop2 incr2>
.DC DATA = datanm
Monte Carlo:
.DC var1 type np start1 stop1 <SWEEP MONTE = val>
.DC MONTE = val
Optimization:
.DC DATA = datanm OPTIMIZE = opt_par_fun
+ RESULTS = measnames MODEL = optmod
.DC var1 start1 stop1 SWEEP OPTIMIZE = OPTxxx
+ RESULTS = measname MODEL = optmod
EXAMPLE 1:
.DC VIN 0.25 5.0 0.25
This example sweeps the value of the VIN voltage source,
from 0.25 volts to 5.0 volts, in increments of 0.25 volts.
EXAMPLE 3:
.DC TEMP -55 125 10
This example starts a DC analysis of the circuit, from -55°C
to 125°C, in 10°C increments.
EXAMPLE 4:
.DC TEMP POI 5 0 30 50 100 125
This script runs a DC analysis, at five temperatures: 0, 30,
50, 100, and 125°C.
EXAMPLE 5:
.DC xval 1k 10k .5k SWEEP TEMP LIN 5 25 125
This example runs a DC analysis on the circuit, at each
temperature value. The temperatures result from a linear
temperature sweep, from 25°C to 125°C (five points), which
sweeps a resistor value named xval, from 1 k to 10 k, in
0.5 k increments.
EXAMPLE 6:
.DC DATA = datanm SWEEP par1 DEC 10 1k 100k
This example specifies a sweep of the par1 value, from 1 k
to 100 k, in increments of 10 points per decade.
EXAMPLE 8:
.DC par1 DEC 10 1k 100k SWEEP MONTE = 30
This example invokes a DC sweep of the par1 parameter
from 1k to 100k by 10 points per decade, using 30 randomly
generated (Monte Carlo) values.
EXAMPLE 9:
* Schmitt Trigger Example
*file: bjtschmt.spbipolar schmitt trigger
.OPTION post = 2
vcc 6 0 dc 12
vin 1 0 dc 0 pwl(0,0 2.5u,12 5u,0)
cb1 2 4 .1pf
rc1 6 2 1k
rc2 6 5 1k
rb1 2 4 5.6k
rb2 4 0 4.7k
re 3 0 .47k
*
diode 0 1 dmod
q1 2 1 3 bmod 1 ic = 0,8
q2 5 4 3 bmod 1 ic = .5,0.2
*
.dc vin 0,12,.1
.model dmod d is = 1e-15 rs = 10
.model bmod npn is = 1e-15 bf = 80 tf = 1n
+ cjc = 2pf cje = 1pf rc = 50 rb = 100 vaf = 200
.plot v(1) v(5)
.graph dc model = schmittplot input = v(1)
+ output = v(5) 4.0 5.0
DESCRIPTION:
You can use the .DC statement in DC analysis, to:
Command
Definition
Argument
SYNTAX:
.DCVOLT V(node1) = val1 V(node2) = val2 ...
.DCVOLT V node1 val1 <node2 val2 ...>
EXAMPLE:
.DCVOLT 11 5 4 -5 2 2.2
DESCRIPTION:
Use the .IC statement, or the .DCVOLT statement, to set
transient initial conditions in HSPICE How it initializes
depends on whether the .TRAN analysis statement includes
the UIC parameter.
If you specify the UIC parameter in the .TRAN statement,
HSPICE does not calculate the initial DC operating point, but
directly enters transient analysis. Transient analysis uses
the .IC initialization values as part of the solution, for
timepoint zero (calculating the zero timepoint applies a fixed
equivalent voltage source). The .IC statement is equivalent
to specifying the IC parameter on each element statement,
but is more convenient. You can still specify the IC
parameter, but it does not have precedence over values set
in the .IC statement.
If you do not specify the UIC parameter in the .TRAN
statement, HSPICE computes the DC operating point
solution, before the transient analysis. The node voltages
that you specify in the .IC statement are fixed, to determine
the DC operating point. Transient analysis releases the
initialized nodes, to calculate the second and later time
points.
node1 ... Node numbers or names can include full paths, or circuit
numbers.
SEE ALSO:
.IC
SYNTAX:
.DEL LIB ‘<filepath>filename’ entryname
.DEL LIB libnumber entryname
EXAMPLE 1:
This example uses an .ALTER block.
FILE1: ALTER1 TEST CMOS INVERTER
.OPTION ACCT LIST
.TEMP 125
.PARAM WVAL = 15U VDD = 5
*
.OP
.DC VIN 0 5 0.1
.PLOT DC V(3) V(2)
*
VDD 1 0 VDD
VIN 2 0
*
M1 3 2 1 1 P 6U 15U
M2 3 2 0 0 N 6U W = WVAL
*
.LIB 'MOS.LIB' NORMAL
.ALTER
.DEL LIB 'MOS.LIB' NORMAL $removes LIB from memory
$PROTECTION
.PROT $protect statements
$below .PROT
.LIB 'MOS.LIB' FAST $get fast model library
.UNPROT
.ALTER
.OPTION NOMOD OPTS $suppress printing model
$parameters and print the
$option summary
.TEMP -50 0 50 $run with different
$temperatures
.PARAM WVAL = 100U VDD = 5.5 $change the parameters
VDD 1 0 5.5 $using VDD 1 0 5.5 to
$change the power supply
$VDD value doesn't
$work
DESCRIPTION:
Use the .DEL LIB statement to remove library data from
memory. The next time you run a simulation, the .DEL LIB
statement removes the .LIB call statement, with the same
library number and entry name, from memory. You can then
use a .LIB statement to replace the deleted library.
You can use the .DEL LIB statement with the .ALTER
statement.
Command
Definition
Argument
filename Name of a file to delete from the data file. The file path, plus
the file name, can be up to 256 characters long. You can use
any file name that is valid for the operating system that you
use. Enclose the file path and file name in single or double
quote marks.
SYNTAX:
.DISTO Rload <inter <skw2 <refpwr <spwf>>>>
EXAMPLE:
.DISTO RL 2 0.95 1.0E-3 0.75
DESCRIPTION:
The .DISTO statement computes the distortion
characteristics of the circuit in an AC small-signal,
sinusoidal, steady-state analysis.
The program computes and reports five distortion measures
at the specified load resistor. The analysis assumes that the
input uses one or two signal frequencies.
• HSPICE uses the first frequency (F1, the nominal
analysis frequency) to calculate harmonic distortion.
The .AC statement frequency-sweep sets it.
Command
Definition
Argument
Rload The resistor element name of the output load resistor, into
which the output power feeds.
SEE ALSO:
.AC
SYNTAX:
.DOUT nd VTH ( time state < time state > )
.DOUT nd VLO VHI ( time state < time state > )
EXAMPLE:
.PARAM VTH = 3.0
.DOUT node1 VTH(0.0n 0 1.0n 1
+ 2.0n X 3.0n U 4.0n Z 5.0n 0)
The .PARAM statement in this example sets the VTH
variable value to 3. The .DOUT statement, operating on the
node1 node, uses VTH as its threshold voltage.
When node1 is above 3V, it is a logic 1; otherwise, it is a
logic 0.
• At 0ns, the expected state of node1 is logic-low.
• At 1ns, the expected state is logic-high.
• At 2ns, 3ns, and 4ns, the expected state is “do not care”.
• At 5ns, the expected state is again logic low.
DESCRIPTION:
The digital output (.DOUT) statement specifies the expected
final state of an output signal, in HSPICE.
During simulation, HSPICE compares simulation results with
the expected output. If the states are different, HSPICE
reports an error.
nd Node name.
0 expect ZERO
1 expect ONE
X, x do not care
U, u do not care
SEE ALSO:
.GRAPH
.MEASURE
.PLOT
.PRINT
.PROBE
.STIM
SYNTAX:
.EBD ebdname
+ file = ’filename’
+ model = ’modelname’
+ component = ’compname:reference_designator’
+ {component = ’compname:reference_designator’...}
EXAMPLE:
.ebd ebd
+ file = ’test.ebd’
+ model = ’16Meg X 8 SIMM Module’
+ component = ’cmpnt:u21’
.ibis cmpnt
+ file = ’ebd.ibs’
+ component = ’SIMM’
+ hsp_ver = 2003.09 nowarn
This example corresponds to the following .ebd file:
...................
[Begin Board Description] 16Meg X 8 SIMM Module
..................
[Pin List] signal_name
J25 POWER5
[Path Description] CAS_2
Pin J25
Len = 0.5 L=8.35n C=3.34p R=0.01 /
Node u21.1
Len = 0.5 L=8.35n C=3.34p R=0.01 /
Node u22.2
Len = 0.5 L=8.35n C=3.34p R=0.01 /
Node u23.3
Command
Definition
Argument
J25
Len=0.5 Len=0.5 Len=0.5
SYNTAX:
.IF (condition1)
...
<.ELSEIF (condition2) >
...
<.ELSE>
...
.ENDIF
EXAMPLE:
.IF a=b
.INCLUDE /myhome/subcircuits/diode_circuit1
...
.ELSEIF a=c
.INCLUDE /myhome/subcircuits/diode_circuit2
...
.ELSE
.INCLUDE /myhome/subcircuits/diode_circuit3
...
.ENDIF
DESCRIPTION:
.ELSE precedes one or more commands in a conditional
block. HSPICE executes these commands by default, if the
conditions in the preceding .IF statement, and in all of the
preceding .ELSEIF statements in the same conditional
block, are all false.
SEE ALSO:
.ELSEIF
.ENDIF
.IF
SYNTAX:
.IF (condition1)
...
<.ELSEIF (condition2) >
...
<.ELSE>
...
.ENDIF
.ELSE
EXAMPLE:
.IF a=b
.INCLUDE /myhome/subcircuits/diode_circuit1
...
.ELSEIF a=c
.INCLUDE /myhome/subcircuits/diode_circuit2
...
.ELSE
.INCLUDE /myhome/subcircuits/diode_circuit3
...
.ENDIF
DESCRIPTION:
HSPICE executes the commands that follow the first
.ELSEIF statement, only if condition1 in the preceding .IF
statement is false, and condition2 in the first .ELSEIF
statement is true.
If condition1 in the .IF statement and condition2 in the first
.ELSEIF statement are both false, then HSPICE moves on
to the next .ELSEIF statement. If this second .ELSEIF
condition is true, HSPICE executes the commands that
follow the second .ELSEIF statement, instead of the
commands after the first .ELSEIF statement.
SEE ALSO:
.ELSE
.ENDIF
.IF
SYNTAX:
.END <comment>
EXAMPLE:
MOS OUTPUT
.OPTION NODE NOPAGE
VDS 3 0
VGS 2 0
M1 1 2 0 0 MOD1 L = 4U W = 6U AD = 10P AS = 10P
.MODEL MOD1 NMOS VTO = -2 NSUB = 1.0E15
TOX = 1000
+ UO = 550
VIDS 3 1
.DC VDS 0 10 0.5 VGS 0 5 1
.PRINT DC I(M1) V(2)
.END MOS OUTPUT
MOS CAPS
.OPTION SCALE = 1U SCALM = 1U WL ACCT
.OP
.TRAN .1 6
V1 1 0 PWL 0 -1.5V 6 4.5V
V2 2 0 1.5VOLTS
MODN1 2 1 0 0 M 10 3
.MODEL M NMOS VTO = 1 NSUB = 1E15 TOX = 1000
+ UO = 800 LEVEL = 1 CAPOP = 2
.PLOT TRAN V(1) (0,5) LX18(M1) LX19(M1) LX20(M1)
+ (0,6E-13)
.END MOS CAPS
DESCRIPTION:
An .END statement must be the last statement in the input
netlist file. The period preceding END is a required part of
the statement.
Any text that follows the .END statement is a comment, and
has no effect on that simulation.
SYNTAX:
.ENDDATA
DESCRIPTION:
Use the .ENDDATA statement to end a .DATA block in an
HSPICE input netlist.
SEE ALSO:
.DATA
SYNTAX:
.IF (condition1)
...
<.ELSEIF (condition2) >
...
<.ELSE>
...
.ENDIF
.ELSE
EXAMPLE:
.IF a=b
.INCLUDE /myhome/subcircuits/diode_circuit1
...
.ELSEIF a=c
.INCLUDE /myhome/subcircuits/diode_circuit2
...
.ELSE
.INCLUDE /myhome/subcircuits/diode_circuit3
...
.ENDIF
DESCRIPTION:
This command ends a conditional block of commands that
begins with an .IF statement.
SEE ALSO:
.ELSE
.ELSEIF
.IF
SYNTAX:
.ENDL
DESCRIPTION:
Use the .ENDL statement to end a .LIB statement in an
HSPICE input netlist.
SEE ALSO:
.LIB
SYNTAX:
.ENDS <SUBNAME>
EXAMPLE 1:
.ENDS mos_circuit
This example terminates a subcircuit named mos_circuit.
EXAMPLE 2:
.ENDS
If you omit the subcircuit name, as in this second example,
this statement terminates all subcircuit definitions that begin
with a .SUBCKT statement.
DESCRIPTION:
Use the .ENDS statement to terminate a .SUBCKT
statement.
This statement must be the last for any subcircuit definition
that starts with a .SUBCKT command.
You can nest subcircuit references (calls) within subcircuits,
in HSPICE.
Command
Definition
Argument
SEE ALSO:
.SUBCKT
SYNTAX:
.EOM <SUBNAME>
EXAMPLE 1:
.EOM diode_circuit
This example terminates a subcircuit named
diode_circuit.
EXAMPLE 2:
.EOM
If you omit the subcircuit name, as in this second example,
this statement terminates all subcircuit definitions that begin
with a .MACRO statement.
DESCRIPTION:
Use the .EOM statement to terminate a .MACRO statement.
This statement must be the last for any subcircuit definition
that starts with a .MACRO command.
You can nest subcircuit references (calls) within subcircuits,
in HSPICE.
Command
Definition
Argument
SEE ALSO:
.MACRO
SYNTAX:
.FFT <output_var> <START=value> <STOP=value>
+ <NP=value> <FORMAT=keyword>
+ <WINDOW=keyword> <ALFA=value>
+ <FREQ=value> <FMIN=value> <FMAX=value>
EXAMPLE 1:
.FFT v(1)
.FFT v(1,2) np=1024 start=0.3m stop=0.5m freq=5.0k
+ window=kaiser alfa=2.5
.FFT I(rload) start=0m to=2.0m fmin=100k fmax=120k
+ format=unorm
.FFT par(‘v(1) + v(2)’) from=0.2u stop=1.2u
+ window=harris
EXAMPLE 2:
.FFT v(1) np=1024
.FFT v(2) np=1024
This example generates an .ft0 file for the FFT of v(1), and
an .ft1 file for the FFT of v(2).
Command
Definition
Argument
SEE ALSO:
.TRAN
SYNTAX:
.FOUR freq ov1 <ov2 ov3 ...>
EXAMPLE:
.FOUR 100K V(5)
DESCRIPTION:
This statement performs a Fourier analysis, as part of the
transient analysis. You can use the .FOUR statement in
HSPICE perform the Fourier analysis over the interval
(tstop-fperiod, tstop), where:
• tstop is the final time, specified for the transient analysis.
• fperiod is a fundamental frequency period (freq
parameter).
HSPICE performs Fourier analysis on 501 points of transient
analysis data on the last 1/f time period, where f is the
fundamental Fourier frequency. HSPICE interpolates
transient data, to fit on 501 points, running from (tstop-1/f) to
tstop.
To calculate the phase, the normalized component, and the
Fourier component, HSPICE uses 10 frequency bins. The
Fourier analysis determines the DC component, and the first
nine AC components. For improved accuracy, the .FOUR
statement can use non-linear, instead of linear, interpolation.
Command
Definition
Argument
SYNTAX:
.FSOPTIONS name <ACCURACY=LOW|MEDIUM|HIGH>
+ <GRIDFACTOR=val> <PRINTDATA=YES|NO>
+ <COMPUTEG0=YES|NO> <COMPUTEGD=YES|NO>
+ <COMPUTERO=YES|NO> <COMPUTERS=YES|NO>
DESCRIPTION:
Use the .FSOPTIONS statement to set various options for
the field solver. The following rules apply to the Field Solver
when specifying options with the .FSOPTIONS statement:
• The field solver always computes the L and C matrices.
• For each accuracy mode, the field solver uses either the
pre-defined number of segments, or the number of
segments that you specified. It then multiplies this
number times the GRIDFACTOR, to obtain the final
number of segments.
Because a wide range of applications are available, the pre-
defined accuracy level might not be accurate enough for
some applications. If you need a higher accuracy than the
value that the HIGH option sets, then increase either the
GRIDFACTOR value, or the N/NH/NW values, to increase
the mesh density.
SEE ALSO:
.LAYERSTACK
.MATERIAL
.SHAPE
SYNTAX:
.GLOBAL node1 node2 node3 ...
EXAMPLE:
This example shows global definitions for VDD and
input_sig nodes.
.GLOBAL VDD input_sig
DESCRIPTION:
The .GLOBAL statement globally assigns a node name, in
HSPICE. This means that all references to a global node
name, used at any level of the hierarchy in the circuit,
connect to the same node.
The most common use of a .GLOBAL statement is if your
netlist file includes subcircuits. This statement assigns a
common node name to subcircuit nodes. Another common
use of .GLOBAL statements is to assign power supply
connections of all subcircuits. For example, .GLOBAL VCC
connects all subcircuits with the internal node name VCC.
Ordinarily, in a subcircuit, the node name consists of the
circuit number, concatenated to the node name. When you
use a .GLOBAL statement, HSPICE does not concatenate
the node name with the circuit number, and assigns only the
global name. You can then exclude the power node name in
the subcircuit or macro call.
Command
Definition
Argument
SYNTAX:
.GRAPH antype <MODEL = mname> <unam1 = > ov1,
+ <unam2 = >ov2 ... <unamn = >ovn (plo,phi)
EXAMPLE:
.GRAPH DC cgb = lx18(m1) cgd = lx19(m1)
+ cgs = lx20(m1)
.GRAPH DC MODEL = plotbjt
+ model_ib = i2(q1) meas_ib = par(ib)
+ model_ic = i1(q1) meas_ic = par(ic)
+ model_beta = par('i1(q1)/i2(q1)')
+ meas_beta = par('par(ic)/par(ib)')(1e-10,1e-1)
.MODEL plotbjt PLOT MONO = 1 YSCAL = 2 XSCAL = 2
+ XMIN = 1e-8 XMAX = 1e-1
DESCRIPTION:
Use the .GRAPH statement when you need high-resolution
plots of HSPICE simulation results. You cannot
use .GRAPH statements in the PC version of HSPICE.
Each .GRAPH statement creates a new .gr# file, where #
ranges first from 0 to 9, and then from a to z. You can create
up to 10000 graph files.
You can include wildcards in .GRAPH statements.
SEE ALSO:
.DOUT
.MEASURE
.PLOT
.PRINT
.PROBE
.STIM
SYNTAX:
.IBIS cname keyword_1 = value_1 ...
+ [keyword_M= value_M]
DESCRIPTION:
This is the general syntax for the .IBIS command when used
with a component. The optional keywords are in square
brackets.
Command
Definition
Argument
SEE ALSO:
.EBD
.PKG
SYNTAX:
.IC V(node1) = val1 V(node2) = val2 ...
EXAMPLE:
.IC V(11) = 5 V(4) = -5 V(2) = 2.2
DESCRIPTION:
Use the .IC statement, or the .DCVOLT statement, to set
transient initial conditions in HSPICE How it initializes
depends on whether the .TRAN analysis statement includes
the UIC parameter.
If you specify the UIC parameter in the .TRAN statement,
HSPICE does not calculate the initial DC operating point, but
directly enters transient analysis. Transient analysis uses
the .IC initialization values as part of the solution, for
timepoint zero (calculating the zero timepoint applies a fixed
equivalent voltage source). The .IC statement is equivalent
to specifying the IC parameter on each element statement,
but is more convenient. You can still specify the IC
parameter, but it does not have precedence over values set
in the .IC statement.
If you do not specify the UIC parameter in the .TRAN
statement, HSPICE computes the DC operating point
solution, before the transient analysis. The node voltages
that you specify in the .IC statement are fixed, to determine
the DC operating point. Transient analysis releases the
initialized nodes, to calculate the second and later time
points.
node1 ... Node numbers or names can include full paths, or circuit
numbers.
SEE ALSO:
.DCVOLT
.TRAN
SYNTAX:
.IF (condition1)
...
<.ELSEIF (condition2) >
...
<.ELSE>
...
.ENDIF
.ELSE
EXAMPLE:
.IF a=b
.INCLUDE /myhome/subcircuits/diode_circuit1
...
.ELSEIF a=c
.INCLUDE /myhome/subcircuits/diode_circuit2
...
.ELSE
.INCLUDE /myhome/subcircuits/diode_circuit3
...
.ENDIF
DESCRIPTION:
.IF marks the start of a conditional block in a netlist. HSPICE
executes the commands that follow an .IF statement, only if
condition1 is true. If condition1 is false, HSPICE moves on to
the first .ELSEIF statement. If this .ELSEIF condition is true,
HSPICE executes the commands that follow the .ELSEIF
statement, instead of the commands after the .IF statement.
Command
Definition
Argument
SYNTAX:
.INCLUDE ‘<filepath> filename’
EXAMPLE:
.INCLUDE /myhome/subcircuits/diode_circuit
DESCRIPTION:
You can include a netlist as a subcircuit in one or more other
netlists. To include another netlist in the current netlist, use
the .INCLUDE statement.
Command
Definition
Argument
filename Name of a file to include in the data file. The file path, plus
the file name, can be up to 1024 characters long. You can
use any valid file name for the computer’s operating system.
You must enclose the file path and name in single or double
quotation marks.
SYNTAX:
.LAYERSTACK sname <BACKGROUND=mname>
+ <LAYER=(mname,thickness) ...>
DESCRIPTION:
A layer stack defines a stack of dielectric or metal layers.
You must associate each transmission line system with one,
and only one, layer stack. However, you can associate a
single-layer stack with many transmission line systems.
In the layer stack:
• Layers are listed from bottom to top.
SEE ALSO:
.FSOPTIONS
.MATERIAL
.SHAPE
SYNTAX:
Use the following syntax for library calls:
.LIB ‘<filepath> filename’ entryname
Use the following syntax to define library files:
.LIB entryname1
. $ ANY VALID SET OF HSPICE STATEMENTS
.ENDL entryname1
.LIB entryname2
.
. $ ANY VALID SET OF HSPICE STATEMENTS
.ENDL entryname2
.LIB entryname3
.
. $ ANY VALID ET OF HSPICE STATEMENTS
.ENDL entryname3
EXAMPLE 1:
* Library call
.LIB 'MODELS' cmos1
EXAMPLE 2:
.LIB MOS7
$ Any valid set of HSPICE commands
.
.
.
.ENDL MOS7
EXAMPLE 4:
.LIB TT
$TYPICAL P-CHANNEL AND N-CHANNEL CMOS LIBRARY
$ PROCESS: 1.0U CMOS, FAB7
$ following distributions are 3 sigma ABSOLUTE
GAUSSIAN
.PARAM TOX = AGAUSS(200,20,3)$ 200 angstrom +/- 20a
+ XL = AGAUSS(0.1u,0.13u,3)$ polysilicon CD
+ DELVTON = AGAUSS(0.0,.2V,3)$ n-ch threshold
change
+ DELVTOP = AGAUSS(0.0,.15V,3)
$ p-ch threshold change
.INC ‘/usr/meta/lib/cmos1_mod.dat’
$ model include file
.ENDL TT
DESCRIPTION:
To create and read from libraries of commonly-used
commands, device models, subcircuit analysis, and
statements (library calls) in library files, use the .LIB call
statement. As HSPICE encounters each .LIB call name in
the main data file, it reads the corresponding entry from the
designated library file, until it finds an .ENDL statement.
You can also place a .LIB call statement in an .ALTER
block.
To build libraries (library file definition), use the .LIB
statement in a library file. For each macro in a library, use a
library definition statement (.LIB entryname) and an .ENDL
statement.
entryname Entry name, for the section of the library file to include. The
first character of an entryname cannot be an integer.
SEE ALSO:
.ENDL
SYNTAX:
.LIN <sparcalc = [1|0] <modelname = ...>>
+ <filename = ...> <format=[selem|citi|touchstone]>
+ <noisecalc = [1|0] <gdcalc = [1|0]>
EXAMPLE:
.LIN sparcalc=1 modelname=my_custom_model
filename=mydesign format=touchstone noisecalc=1
gdcalc=1
This example extracts noise and linear transfer parameters
for a general multi-port network, performs 2-port noise
analysis, and performs group delay analysis, for a model
named my_custom_model. The output is in TOUCHSTONE
format, in the mydesign output file.
DESCRIPTION:
The .LIN command extracts noise and linear transfer
parameters for a general multi-port network.
When used with the .AC command, .LIN makes available a
broad set of linear port-wise measurements:
• Multi-port scattering [S] parameters.
• Noise parameters.
• Stability factors.
• Gain factors.
• Matching coefficients.
Command
Definition
Argument
SYNTAX:
.LOAD <FILE = load_file> <RUN = PREVIOUS | CUR-
RENT>
EXAMPLE 1:
.TITLE
.SAVE FILE=design.ic
.LOAD FILE=design.ic0
$load--design.ic0 save--design.ic0
.alter
... $load--none save--design.ic1
.alter
... $load--none save--design.ic2
.end
This example loads a file name design.ic0, which you
previously saved using a .SAVE command.
EXAMPLE 2:
.TITLE
.SAVE FILE=design.ic
.LOAD FILE=design.ic RUN=PREVIOUS
$load--none save--design.ic0
.alter
... $load--design.ic0 save--design.ic1
.alter
... $load--design.ic1 save--design.ic2
.end
DESCRIPTION:
Use the .LOAD statement to input the contents of a file, that
you stored using the .SAVE statement in HSPICE.
Files stored with the .SAVE statement contain operating
point information, for the point in the analysis at which you
executed .SAVE.
Do not use the .LOAD command for concatenated netlist
files.
Command
Definition
Argument
PREVIOUS Each .ALTER run uses the saved operating point from the
previous .ALTER run in the same simulation.
CURRENT Each .ALTER run uses the saved operating point from the
current .ALTER run in the last simulation.
SYNTAX:
.MACRO subnam n1 <n2 n3 …> <parnam = val>
.EOM
EXAMPLE 1:
*FILE SUB2.SP TEST OF SUBCIRCUITS
.OPTION LIST ACCT
V1 1 0 1
.PARAM P5 = 5 P2 = 10
.SUBCKT SUB1 1 2 P4 = 4
R1 1 0 P4
R2 2 0 P5
X1 1 2 SUB2 P6 = 7
X2 1 2 SUB2
.ENDS
*
.MACRO SUB2 1 2 P6 = 11
R1 1 2 P6
R2 2 0 P2
.EOM
X1 1 2 SUB1 P4 = 6
X2 3 4 SUB1 P6 = 15
X3 3 4 SUB2
*
.MODEL DA D CJA = CAJA CJP = CAJP VRB = -20
IS = 7.62E-18
+ PHI = .5 EXA = .5 EXP = .33
.PARAM CAJA = 2.535E-16 CAJP = 2.53E-16
.END
The preceding example defines two subcircuits: SUB1 and
SUB2. These are resistor divider networks, whose
resistance values are parameters (variables). The X1, X2,
and X3 statements call these subcircuits. Because the
resistor values are different in each call, these three calls
produce different subcircuits.
DESCRIPTION:
You can create a subcircuit description for a commonly-used
circuit, and include one or more references to the subcircuit
in your netlist.
To define a subcircuit in your netlist, use the .MACRO
statement. Use the .EOM statement to terminate a .MACRO
statement.
Command
Definition
Argument
SubDefaultsList <SubParam1>=<Expression>
[<SubParam2>=<Expression>...]
SEE ALSO:
.ENDS
.EOM
SYNTAX:
.MALIAS model_name=alias_name1 <alias_name2 ...>
SYNTAX:
.MATERIAL mname METAL|DIELECTRIC <ER=val>
+ <UR=val> <CONDUCTIVITY=val>
+ <LOSSTANGENT=val>
DESCRIPTION:
The field solver assigns the following default values for
metal:
• ER = 1
• UR = 1
• UR = 1
UR Relative permeability.
LOSSTANGENT
Alternating field loss tangent of dielectric (tan δ ).
SEE ALSO:
.LAYERSTACK
DESCRIPTION:
Use the .MEASURE statement to modify information, and to
define the results of successive HSPICE simulations.
The .MEASURE statement prints user-defined electrical
specifications of a circuit. Optimization uses .MEASURE
statements extensively. The specifications include:
• propagation
• delay
• rise time
• fall time
• peak-to-peak voltage
• minimum and maximum voltage over a specified period
• other user-defined variables
You can also use .MEASURE with either the error function
or GOAL parameter, to optimize circuit component values,
and to curve-fit measured data to model parameters.
The .MEASURE statement can use several different
formats, depending on the application. You can use it for
either DC sweep, AC, or transient analysis.
SEE ALSO:
.DOUT
.GRAPH
.PLOT
.PRINT
.PROBE
.STIM
SYNTAX:
.MEASURE <DC|AC|TRAN> result TRIG … TARG …
+ <GOAL = val> <MINVAL = val> <WEIGHT = val>
EXAMPLE 1:
* Example of rise/fall/delay measurement
.MEASURE TRAN tdlay TRIG V(1) VAL = 2.5 TD = 10n
+ RISE = 2 TARG V(2) VAL = 2.5 FALL = 2
This example measures the propagation delay between
nodes 1 and 2, for a transient analysis. HSPICE measures
the delay from the second rising edge of the voltage at node
1, to the second falling edge of node 2. The measurement
begins when the second rising voltage at node 1 is 2.5 V,
and ends when the second falling voltage at node 2 is 2.5 V.
The TD = 10n parameter counts the crossings, after 10 ns
has elapsed. HSPICE prints results as tdlay = <value>.
EXAMPLE 2:
.MEASURE TRAN riset TRIG I(Q1) VAL = 0.5m RISE = 3
+ TARG I(Q1) VAL = 4.5m RISE = 3
* Rise/fall/delay measure with TRIG and TARG specs
.MEASURE pwidth TRIG AT = 10n TARG V(IN) VAL = 2.5
+ CROSS = 3
In the last example, TRIG. AT = 10n starts measuring time at
t = 10 ns, in the transient analysis. The TARG parameters
end time measurement, when V(IN) = 2.5 V, on the third
crossing. pwidth is the printed output variable.
If you use the .TRAN statement with a .MEASURE
statement, do not use a non-zero START time in .TRAN
statement, or the .MEASURE results might be incorrect.
Command
Definition
Argument
TRIG/TARG
Definition
Parameter
SYNTAX:
.MEASURE < TRAN > out_var func var
+ FROM = start TO = end
EXAMPLE 1:
.MEAS TRAN RMSVAL RMS V(OUT) FROM = 0NS TO = 10NS
In this example, the .MEASURE statement calculates the
RMS voltage of the OUT node, from 0ns to 10ns. It then
labels the result RMSVAL.
EXAMPLE 2:
.MEAS MAXCUR MAX I(VDD) FROM = 10NS TO = 200NS
In this example, the .MEASURE statement finds the
maximum current of the VDD voltage supply, between 10ns
and 200ns in the simulation. The result is called MAXCUR.
EXAMPLE 3:
.MEAS P2P PP PAR(‘V(OUT)/V(IN)’)
+ FROM = 0NS TO = 200NS
In this example, the .MEASURE statement uses the ratio of
V(OUT) and V(IN) to find the peak-to-peak value, in the
interval of 0ns to 200ns.
DESCRIPTION:
This .MEASURE statement reports the average, RMS, or
peak value of the specified output variable.
SYNTAX:
.MEASURE <DC|TRAN| AC> result
+ WHEN out_var = val <TD = val>
+ < RISE = r | LAST > < FALL = f | LAST >
+ < CROSS = c | LAST >
+ <GOAL = val> <MINVAL = val> <WEIGHT = val>
.MEASURE <DC|TRAN|AC> result
+ WHEN out_var1 = out_var2
+ < TD = val > < RISE = r | LAST >
+ < FALL = f | LAST >
+ < CROSS = c| LAST > <GOAL = val>
+ <MINVAL = val> <WEIGHT = val>
.MEASURE <DC|TRAN|AC> result FIND out_var1
+ WHEN out_var2 = val < TD = val >
+ < RISE = r | LAST >
+ < FALL = f | LAST > < CROSS = c| LAST >
+ <GOAL = val> <MINVAL = val> <WEIGHT = val>
.MEASURE <DC|TRAN|AC> result FIND out_var1
+ WHEN out_var2 = out_var3 <TD = val >
+ < RISE = r | LAST > < FALL = f | LAST >
+ <CROSS = c | LAST> <GOAL = val>
+ <MINVAL = val> <WEIGHT = val>
.MEASURE <DC|TRAN|AC> result FIND out_var1
+ AT = val <GOAL = val> <MINVAL = val>
+ <WEIGHT = val>
DESCRIPTION:
The FIND and WHEN functions of the .MEASURE
statement specify to measure:
• Any independent variables (time, frequency, parameter).
• Any dependent variables (voltage or current, for
example).
• Derivative of a dependent variable, if a specific event
occurs.
SYNTAX:
.MEASURE <DC|TRAN|AC> result PARAM = ’equation’
+ <GOAL = val> <MINVAL = val>
.MEASURE < TRAN > varname PARAM = “expression”
EXAMPLE:
.MEAS TRAN V3MAX MAX V(3) FROM 0NS TO 100NS
.MEAS TRAN V2MIN MIN V(2) FROM 0NS TO 100NS
.MEAS VARG PARAM = ‘(V2MIN + V3MAX)/2’
The first two measurements, V3MAX and V2MIN, set up the
variables for the third measurement statement.
SYNTAX:
.MEASURE <DC|AC|TRAN> result func out_var
+ <FROM = val> <TO = val> <GOAL = val>
+ <MINVAL = val> <WEIGHT = val>
EXAMPLE 1:
.MEAS TRAN avgval AVG V(10) FROM = 10ns TO = 55ns
This example calculates the average nodal voltage value for
node 10, during the transient sweep, from the time 10 ns to
55 ns. It prints out the result as avgval.
EXAMPLE 2:
.MEAS TRAN MAXVAL MAX V(1,2) FROM = 15ns TO = 100ns
This example finds the maximum voltage difference
between nodes 1 and 2, for the time period from 15 ns to 100
ns.
EXAMPLE 3:
.MEAS TRAN MINVAL MIN V(1,2) FROM = 15ns TO = 100ns
.MEAS TRAN P2PVAL PP I(M1) FROM = 10ns TO = 100ns
DESCRIPTION:
Average (AVG), RMS, MIN, MAX, and peak-to-peak (PP)
measurement modes report statistical functions of the
output variable, rather than analysis values.
• AVG calculates the area under an output variable,
divided by the periods of interest.
• RMS divides the square root of the area under the output
variable square, by the period of interest.
Commands in HSPICE Netlists: .MEASURE (Average, RMS, MIN, MAX, INTEG, and PP)
2-105
• MIN reports the minimum value of the output function,
over the specified interval.
Command
Definition
Argument
FROM Specifies the initial value for the func calculation. For
transient analysis, this value is in units of time.
Commands in HSPICE Netlists: .MEASURE (Average, RMS, MIN, MAX, INTEG, and PP)
2-106
Command
Definition
Argument
Commands in HSPICE Netlists: .MEASURE (Average, RMS, MIN, MAX, INTEG, and PP)
2-107
.MEASURE (Integral Function)
SYNTAX:
.MEASURE <DC|AC|TRAN> result INTEGRAL out_var
+ <FROM = val> <TO = val> <GOAL = val>
+ <MINVAL = val> <WEIGHT = val>
EXAMPLE:
.MEAS TRAN charge INTEG I(cload) FROM = 10ns
+ TO = 100ns
This example calculates the integral of I(cload), from 10 ns
to 100 ns.
DESCRIPTION:
The INTEGRAL function reports the integral of an output
variable, over a specified period.
The INTEGRAL function (with func), uses the same syntax
as the average (AVG), RMS, MIN, MAX, and peak-to-peak
(PP) measurement mode, to defined the INTEGRAL
(INTEG).
SYNTAX:
.MEASURE <DC|AC|TRAN> result DERIVATIVE out_var
+ AT = val <GOAL = val> <MINVAL = val>
+ <WEIGHT = val>
.MEASURE <DC|AC|TRAN> result DERIVATIVE out_var
+ WHEN var2 = val <RISE = r | LAST>
+ <FALL = f | LAST> <CROSS = c | LAST> <TD = tdval>
+ <GOAL = goalval> <MINVAL = minval>
+ <WEIGHT = weightval>
.MEASURE <DC|AC|TRAN> result DERIVATIVE out_var
+ WHEN var2 = var3 <RISE = r | LAST>
+ <FALL = f | LAST> <CROSS = c | LAST> <TD = tdval>
+ <GOAL = goalval> <MINVAL = minval>
+ <WEIGHT = weightval>
EXAMPLE 1:
.MEAS TRAN slew rate DERIV V(out) AT = 25ns
This example calculates the derivative of V(out), at 25 ns.
EXAMPLE 2:
.MEAS TRAN slew DERIV v(1) WHEN v(1) = ’0.90*vdd’
This example calculates the derivative of v(1), when v(1) is
equal to 0.9*vdd.
EXAMPLE 3:
.MEAS AC delay DERIV ’VP(output)/360.0’ AT = 10khz
This example calculates the derivative of VP(output)/360.0,
when the frequency is 10 kHz.
Command
Definition
Argument
SYNTAX:
.MEASURE <DC|AC|TRAN> result
+ ERRfun meas_var calc_var
+ <MINVAL = val> < IGNORE | YMIN = val>
+ <YMAX = val> <WEIGHT = val> <FROM = val>
+ <TO = val>
DESCRIPTION:
The relative error function reports the relative difference
between two output variables. You can use this format in
optimization and curve-fitting of measured data. The relative
error format specifies the variable to measure and calculate,
from the .PARAM variable. To calculate the relative error
between the two, HSPICE uses the ERR, ERR1, ERR2, or
ERR3 function. With this format, you can specify a group of
parameters to vary, to match the calculated value and the
measured data.
Command
Definition
Argument
SYNTAX:
.MODEL mname type <VERSION = version_number>
+ <pname1 = val1 pname2 = val2 ...>
.MODEL mname OPT <parameter=val ...>
The following is the .MODEL syntax for use with .GRAPH:
.MODEL mname PLOT (pnam1 = val1 pnam2 = val2….)
EXAMPLE:
.MODEL MOD1 NPN BF=50 IS=1E-13 VBF=50 AREA=2 PJ=3,
+ N=1.05
DESCRIPTION:
Use the .MODEL command to include an instance (element)
of a pre-defined HSPICE model in your input netlist.
For each optimization within a data file, specify a .MODEL
statement. HSPICE can then execute more than one
optimization per simulation run. The .MODEL optimization
statement defines:
• Convergence criteria.
• Number of iterations.
• Derivative methods.
Parameter Description
mname Model name. Elements use this name to refer to the model.
MAX Sets the upper limit on CLOSE. Use values > 100.
Default=6.0e+5.
SYNTAX:
One-Port Network
.NET input <RIN = val>
.NET input <val>
Two-Port Network
.NET output input <ROUT = val> <RIN = val>
EXAMPLE:
One-Port Network
.NET VINAC RIN = 50
.NET IIN RIN = 50
Two-Port Network
.NET V(10,30) VINAC ROUT = 75RIN = 50
.NET I(RX) VINAC ROUT = 75RIN = 50
DESCRIPTION:
You can use the .NET statement to compute parameters for:
• Z impedance matrix.
• Y admittance matrix.
• H hybrid matrix
• S scattering matrix.
• Admittance.
Command
Definition
Argument
SEE ALSO:
.AC
SYNTAX:
.NODESET V(node1) = val1 <V(node2) = val2 ...>
or
.NODESET node1 val1 <node2 val2>
EXAMPLE:
.NODESET V(5:SETX) = 3.5V V(X1.X2.VINT) = 1V
.NODESET V(12) = 4.5 V(4) = 2.23
.NODESET 12 4.5 4 2.23 1 1
DESCRIPTION:
.NODESET initializes all specified nodal voltages, for DC
operating point analysis. Use the .NODESET statement, to
correct convergence problems in DC analysis. If you set the
node values in the circuit, close to the actual DC operating
point solution, you enhance convergence of the simulation.
The HSPICE simulator uses the NODESET voltages, only in
the first iteration.
Command
Definition
Argument
node1 ... Node numbers or names can include full paths or circuit
numbers.
SYNTAX:
.NOISE ovv srcnam inter
EXAMPLE:
.NOISE V(5) VIN 10
DESCRIPTION:
Use the .NOISE and .AC statements to control the noise
analysis of the circuit.
Command
Definition
Argument
SEE ALSO:
.AC
SYNTAX:
.OP <format> <time> <format> <time>... <interpolation>
EXAMPLE 1:
.OP .5NS CUR 10NS VOL 17.5NS 20NS 25NS
This example calculates:
• Operating point voltages and currents, for the DC
solution.
DESCRIPTION:
When you include an .OP statement in an input file, HSPICE
calculates the DC operating point of the circuit. You can also
use the .OP statement to produce an operating point, during
a transient analysis. You can include only one .OP
statement in a simulation.
If an analysis requires calculating an operating point, you do
not need to specify the .OP statement; HSPICE calculates
an operating point. If you use a .OP statement, and if you
include the UIC keyword in a .TRAN analysis statement,
then simulation omits the time = 0 operating point analysis,
and issues a warning in the output listing.
SYNTAX:
Simple parameter assignment:
.PARAM <ParamName>=<RealNumber>
Algebraic parameter assignments:
.PARAM <ParamName>=’<AlgebraicExpression>’
.PARAM <ParamName1>=<ParamName2>
User-defined functions:
.PARAM <ParamName>(<pv1>[<pv2>])=’<Expression>’
Pre-defined analysis functions:
.PARAM <FunctionName> = <Value>
Optimized parameter assignment:
.PARAM parameter=OPTxxx (initial_guess, low_limit,
+ upper_limit)
.PARAM parameter=OPTxxx (initial_guess, low_limit,
+ upper_limit, delta)
EXAMPLE 1:
* Simple parameter assignment
.PARAM power_cylces=256
EXAMPLE 2:
* Numerical parameter assignment
.PARAM TermValue = 1g
rTerm Bit0 0 TermValue
rTerm Bit1 0 TermValue
...
EXAMPLE 4:
* Algebraic parameter
.param x=cos(2)+sin(2)
EXAMPLE 5:
* Algebraic expression as an output variable
.PRINT DC v(3) gain=PAR(‘v(3)/v(2)’)
+ PAR(‘V(4)/V(2)’)
EXAMPLE 6:
* My own user-defined functions
.PARAM <MyFunc( x, y )> = ‘Sqrt((x*x)+(y*y))’
.PARAM CentToFar (c) = ’(((c*9)/5)+32)’
.PARAM F(p1,p2) = ’Log(Cos(p1)*Sin(p2))’
.PARAM SqrdProd (a,b) = ’(a*a)*(b*b)’
EXAMPLE 7:
* Pre-defined analysis function
.PARAM mcVar = Agauss(1.0,0.1)
- Optimization guess/range
- frequency
- time
- Monte Carlo functions
SYNTAX:
.PKG pkgname
+file= ’pkgfilename’
+model= ’pkgmodelname’
EXAMPLE 1:
.pkg p_test
+ file=’processor_clk_ff.ibs’
+ model=’FCPGA_FF_PKG’
EXAMPLE 2:
The following example shows how pin1 is referenced:
p_test_pin1_dia and p_test_pin1
DESCRIPTION:
The .PKG command provides the IBIS(V 3.2) Package
Model feature. It supports both sections and matrixes.
Command
Definition
Argument
’pkgname’_’pinname’_dia
’pkgname’_’pinname’
SEE ALSO:
.EBD
.IBIS
SYNTAX:
.PLOT antype ov1 <(plo1,phi1)> <ov2> <(plo2,phi2)> ...>
EXAMPLE 1:
.PLOT DC V(4) V(5) V(1) PAR(`I1(Q1)/I2(Q1)')
.PLOT TRAN V(17,5) (2,5) I(VIN) V(17) (1,9)
.PLOT AC VM(5) VM(31,24) VDB(5) VP(5) INOISE
• In the first line, PAR plots the ratio of the collector current
and the base current, for the Q1 transistor.
EXAMPLE 2:
.PLOT AC ZIN YOUT(P) S11(DB) S12(M) Z11(R)
.PLOT DISTO HD2 HD3(R) SIM2
.PLOT TRAN V(5,3) V(4) (0,5) V(7) (0,10)
.PLOT DC V(1) V(2) (0,0) V(3) V(4) (0,5)
In the last line above, HSPICE sets the plot limits for V(1)
and V(2), but you specify 0 and 5 volts as the plot limits for
V(3) and V(4).
DESCRIPTION:
The .PLOT statement plots the output values of one or more
variables, in a selected HSPICE analysis. Each .PLOT
statement defines the contents of one plot, which can
contain more than one output variable.
Command
Definition
Argument
antype Type of analysis for the specified plots. Analysis types are:
DC, AC, TRAN, NOISE, or DISTO.
plo1, Lower and upper plot limits. The plot for each output
phi1 … variable uses the first set of plot limits, after the output
variable name. Set a new plot limit for each output variable,
after the first plot limit. For example, to plot all output
variables that use the same scale, specify one set of plot
limits at the end of the .PLOT statement. If you set the plot
limits to (0,0) HSPICE automatically sets the plot limits.
SEE ALSO:
.DOUT
.GRAPH
.MEASURE
.PRINT
.PROBE
.STIM
SYNTAX:
.PRINT antype ov1 <ov2 … >
EXAMPLE 1:
* CASE 1
.print v(din) i(mxn18)
.dc vdin 0 5.0 0.05
.tran 1ns 60ns
* CASE 2
.dc vdin 0 5.0 0.05
.tran 1ns 60ns
.print v(din) i(mxn18)
* CASE 3
.dc vdin 0 5.0 0.05
.print v(din) i(mxn18)
.tran 1ns 60ns
EXAMPLE 2:
.PRINT TRAN V (4) I(VIN) PAR(`V(OUT)/V(IN)')
This example prints the results of a transient analysis, for the
nodal voltage named 4. It also prints the current, through the
voltage source named VIN. It also prints the ratio of the
nodal voltage at the OUT and IN nodes.
EXAMPLE 4:
.PRINT AC ZIN YOUT(P) S11(DB) S12(M) Z11(R)
This example prints:
• The magnitude of the input impedance.
EXAMPLE 6:
.PRINT NOISE INOISE
This example prints the equivalent input noise.
EXAMPLE 7:
.PRINT DISTO HD3 SIM2(DB)
This example prints the magnitude of third-order harmonic
distortion, and the decibel value of the intermodulation
distortion sum, through the load resistor that you specify in
the .DISTO statement.
EXAMPLE 8:
.PRINT AC INOISE ONOISE VM(OUT) HD3
This statement includes NOISE, DISTO, and AC output
variables in the same .PRINT statement in HSPICE.
EXAMPLE 10:
Derivative function:
.PRINT der=deriv('v(NodeX)')
Integrate function:
.PRINT int = integ('v(NodeX)')
The parameter can be a node voltage, or a reasonable
expression.
EXAMPLE 11:
.print p1 = 3
.print p2 = par("p1*5")
You can use p1 and p2 as parameters in netlist. The p1
value is 3; the p2 value is 15.
DESCRIPTION:
The .PRINT statement specifies output variables, for which
HSPICE prints values. You can include wildcards in .PRINT
statements.
You can also use the iall keyword in a .PRINT statement, to
print all branch currents of all diode, BJT, JFET, or MOSFET
elements in your circuit design.
SEE ALSO:
.DOUT
.GRAPH
.MEASURE
.PLOT
.PROBE
.STIM
SYNTAX:
.PROBE antype ov1 <ov2 ...>
EXAMPLE 1:
.PROBE DC V(4) V(5) V(1) beta = PAR(`I1(Q1)/I2(Q1)')
EXAMPLE 2:
* Derivative function
.PROBE der=deriv('v(NodeX)')
* Integrate function
.PROBE int = integ('v(NodeX)')
DESCRIPTION:
The .PROBE statement saves output variables into
interface and graph data files.The parameter can be a node
voltage, or a reasonable expression. You can include
wildcards in .PROBE statements.
Command
Definition
Argument
antype Type of analysis for the specified plots. Analysis types are:
DC, AC, TRAN, NOISE, or DISTO.
SEE ALSO:
.DOUT
.GRAPH
.MEASURE
.PLOT
.PRINT
.STIM
SYNTAX:
.PROTECT
DESCRIPTION:
The .PROTECT statement keeps models and cell libraries
private.
SEE ALSO:
.UNPROTECT
SYNTAX:
.PZ output input
.PZ ov srcname
EXAMPLE:
.PZ V(10) VIN
.PZ I(RL) ISORC
DESCRIPTION:
The .PZ command performs pole/zero analysis (you do not
need to specify .OP). See “Pole/Zero Analysis” in the
HSPICE Applications Manual, for complete information
about pole/zero analysis.
Command
Definition
Argument
input Input source. Can be the name of any independent voltage
or current source.
output Output variables, which can be:
• Any node voltage, V(n).
• Any branch current, I(branch_name).
ov Output variable: a node voltage V(n), or branch current
I(element)
srcnam Input source: an independent voltage or current source
name
SEE ALSO:
.DC
SYNTAX:
.SAMPLE FS = freq <TOL = val> <NUMF = val>
+ <MAXFLD = val> <BETA = val>
DESCRIPTION:
To acquire data from analog signals, use the .SAMPLE
statement, with the .NOISE and .AC statements, to analyze
data sampling noise in HSPICE. The SAMPLE analysis
performs a noise-folding analysis, at the output node.
.
Command
Definition
Argument
FS = freq Sample frequency, in Hertz.
TOL Sampling-error tolerance: the ratio of the noise power (in the
highest folding interval) to the noise power (in baseband).
Default = 1.0e-3.
NUMF Maximum number of frequencies that you can specify. The
algorithm requires about ten times this number of internally-
generated frequencies, so keep this value small.
Default = 100.
MAXFLD Maximum number of folding intervals (default = 10.0). The
highest frequency (in Hertz) that you can specify is:
FMAX = MAXFLD ⋅ FS
BETA Optional noise integrator (duty cycle), at the sampling node:
BETA = 0 no integrator
BETA = 1 simple integrator (default)
If you clock the integrator (integrates during a fraction of the
1/FS sampling interval), then set BETA to the duty cycle of
the integrator.
SYNTAX:
.SAVE <TYPE = type_keyword> <FILE = save_file>
+ <LEVEL = level_keyword> <TIME = save_time>
EXAMPLE:
.TEMP -25 0 25
.SAVE TYPE=NODESET FILE=my_design.ic0 LEVEL=ALL
+ TIME=0
This example saves the operating point corresponding
to .TEMP -25, to a file named my_design.ic0.
DESCRIPTION:
The .SAVE statement in HSPICE stores the operating point
of a circuit, in a file that you specify. For quick DC
convergence in subsequent simulations, use the .LOAD
statement to input the contents of this file. HSPICE saves
the operating point by default, even if the HSPICE input file
does not contain a .SAVE statement. To not save the
operating point, specify .SAVE LEVEL = NONE.
You can save the operating point data as either an .IC or
a .NODESET statement.
A parameter or temperature sweep saves only the first
operating point.
Command
Definition
Argument
type_keyword Storage method, for saving the operating point. The type
can be one of the following. Default is NODESET.
• .NODESET: Stores the operating point as a .NODESET
statement. Later simulations initialize all node voltages to
these values, if you use the .LOAD statement. If circuit
conditions change incrementally, DC converges within a
few iterations.
• .IC: Stores the operating point as a .IC statement. Later
simulations initialize node voltages to these values if the
netlist includes the .LOAD statements.
save_file Name of the file that stores DC operating point data. The file
name format is <design>.ic#. Default is <design>.ic0.
level_keyword Circuit level, at which you save the operating point. The
level can be one of the following.
• ALL (default): Saves all nodes, from the top to the lowest
circuit level. This option offers the greatest improvement
in simulation time.
• TOP: Saves only nodes in the top-level design. Does not
save subcircuit nodes.
• NONE: Does not save the operating point.
save_time Time during transient analysis, when HSPICE saves the
operating point. HSPICE requires a valid transient analysis
statement, to save a DC operating point. Default = 0.
SEE ALSO:
.LOAD
SYNTAX:
.SENS ov1 <ov2 ...>
EXAMPLE:
.SENS V(9) V(4,3) V(17) I(VCC)
DESCRIPTION:
The .SENS command obtains DC small-signal sensitivities
of output variables, for circuit parameters (you do not need
to specify .OP).
If the input file includes a .SENS statement, HSPICE
determines DC small-signal sensitivities for each specified
output variable, relative to every circuit parameter. The
sensitivity measurement is the partial derivative of each
output variable, for a specified circuit element, measured at
the operating point, and normalized to the total change in
output magnitude. Therefore, the sum of the sensitivities of
all elements is 100%. HSPICE calculates sensitivities for:
• resistors
• voltage sources
• current sources
• diodes
• BJTs (including Level 4, the VBIC95 model)
• MOSFETs (Level49 and Level53, Version=3.22).
You can perform only one .SENS analysis per simulation. If
you specify more than one .SENS statement, HSPICE runs
only the last .SENS statement.
Command
Definition
Argument
ov1 ov2 ... Branch currents, or nodal voltage, for DC component-
sensitivity analysis
SEE ALSO:
.DC
SYNTAX:
.SHAPE sname Shape_Descriptor
DESCRIPTION:
Use the .SHAPE statement to define a shape. The Field
Solver uses the shape to describe a cross-section of the
conductor.
Command
Definition
Argument
sname Shape name.
Shape_Descriptor One of the following:
• Rectangle
• Circle
• Strip
• Polygon
SEE ALSO:
.FSOPTIONS
.MATERIAL
.SHAPE
SYNTAX:
.SHAPE RECTANGLE WIDTH=val HEIGHT=val <NW=val>
+ <NH=val>
DESCRIPTION:
Use the RECTANGLE option to define a rectangle. Normally,
you do not need to specify the NW and NH values because
the field solver automatically sets these values, depending
on the accuracy mode. You can specify both values, or
specify only one of these values and let the solver determine
the other.
HEIGHT
Origin
(0,0) x
Command
Definition
Argument
WIDTH Width of the rectangle (size in the x-direction).
HEIGHT Height of the rectangle (size in the y-direction).
NW Number of horizontal (x) segments in a rectangle, with a
specified width.
NH Number of vertical (y) segments in a rectangle, with a
specified height.
SYNTAX:
.SHAPE CIRCLE RADIUS=val <N=val>
DESCRIPTION:
The CIRCLE option to defines a circle in the Field Solver.
The Field Solver approximates a circle as an inscribed
regular polygon, with N edges. The more edges, the more
accurate the circle approximation is.
Do not use the CIRCLE descriptor to model actual polygons;
instead use the POLYGON descriptor.
Normally, you do not need to specify the N value, because
the field solver automatically sets this value, depending on
the accuracy mode. But you can specify this value if you
need to
Figure 2-3 Coordinates of a Circle
y
Origin RADIUS
Starting vertex
of the inscribed
polygon
(0,0) x
Command
Definition
Argument
RADIUS Radius of the circle.
N Number of segments to approximate a circle with a specified
radius.
SYNTAX:
.SHAPE POLYGON VERTEX=(x1 y1 x2 y2 ...)
+ <N=(n1,n2,...)>
EXAMPLE 1:
The following rectangular polygon uses the default number
of segments:
POLYGON VERTEX=(1 10 1 11 5 11 5 10)
EXAMPLE 2:
The following rectangular polygon uses five segments for
each edge:
POLYGON VERTEX=(1 10 1 11 5 11 5 10) N=5
EXAMPLE 3:
Rectangular polygon, using the different number of
segments for each edge:
POLYGON VERTEX=(1 10 1 11 5 11 5 10) N=(5 3
+ 5 3)
DESCRIPTION:
The POLYGON command option defines a polygon in a
Field Solver. The specified coordinates are within the local
coordinate, with respect to the origin of a conductor.
Origin
(0,0) x
Command
Definition
Argument
VERTEX (x, y) coordinates of vertices. Listed either in clockwise or
counter-clockwise direction.
N Number of segments that define the polygon, with the
specified X and Y coordinates. You can specify a different N
value for each edge. If you specify only one N value, then
the Field Solver uses this value for all edges.
For example, the first value of N, n1, corresponds to the
number of segments for the edge from (x1 y1) to (x2 y2).
SYNTAX:
.SHAPE STRIP WIDTH=val <N=val>
DESCRIPTION:
Normally, you do not need to specify the N value, because
the field solver automatically sets this value, depending on
the accuracy mode. But you can specify this value if you
need to. The field solver (filament method) does not support
this shape.
Origin
(0,0) x
Command
Definition
Argument
WIDTH Width of the strip (size in the x-direction).
N Number of segments that define the strip shape, with the
specified width.
SYNTAX:
General
.STIM <tran|ac|dc> PWL|DATA|VEC
+ <filename=output_filename> ...
PWL Source (Transient Analysis Only)
.STIM [tran] PWL [filename=output_filename]
+ [name1=] ovar1 [node1=n+] [node2=n-]
+ [[name2=]ovar2 [node1=n+] [node2=n-] ...]
+ [from=val] [to=val] [npoints=val]
.STIM [tran] PWL [filename=output_filename]
+ [name1=] ovar1 [node1=n+] [node2=n-]
+ [[name2=]ovar2 [node1=n+] [node2=n-] ...]
+ indepvar=[(]t1 [t2 ...[)]]
Data Card
.STIM [tran |ac |dc] DATA [filename=output_filename]
+ dataname [name1=] ovar1
+ [[name2=]ovar2 ...] [from= val] [to=val]
+ [npoints=val] [indepout=val]
.STIM [tran |ac |dc] DATA [filename=output_filename]
+ dataname [name1=] ovar1
+ [[name2=]ovar2 ...] indepvar=[(]t1 [t2 ...[)]]
+ [indepout=val]
DESCRIPTION:
You can use the .STIM statement to reuse the results
(output) of one simulation, as input stimuli in a new
simulation.
The .STIM statement specifies:
SYNTAX:
.SUBCKT subnam n1 <n2 n3 …> <parnam = val>
.ENDS
.SUBCKT <SubName><PinList>[<SubDefaultsList>]
.ENDS
EXAMPLE 1:
*FILE SUB2.SP TEST OF SUBCIRCUITS
.OPTION LIST ACCT
V1 1 0 1
.PARAM P5 = 5 P2 = 10
.SUBCKT SUB1 1 2 P4 = 4
R1 1 0 P4
R2 2 0 P5
X1 1 2 SUB2 P6 = 7
X2 1 2 SUB2
.ENDS
*
.MACRO SUB2 1 2 P6 = 11
R1 1 2 P6
R2 2 0 P2
.EOM
X1 1 2 SUB1 P4 = 6
X2 3 4 SUB1 P6 = 15
X3 3 4 SUB2
*
.MODEL DA D CJA = CAJA CJP = CAJP VRB = -20
IS = 7.62E-18
+ PHI = .5 EXA = .5 EXP = .33
.PARAM CAJA = 2.535E-16 CAJP = 2.53E-16
.END
The preceding example defines two subcircuits: SUB1 and
SUB2. These are resistor divider networks, whose
resistance values are parameters (variables). The X1, X2,
EXAMPLE 2:
.SUBCKT Inv a y Strength = 3
Mp1 <MosPinList> pMosMod L = 1.2u W = ’Strength * 2u’
Mn1 <MosPinList> nMosMod L = 1.2u W = ’Strength * 1u’
.ENDS
...
xInv0 a y0 Inv$ Default devices: p device = 6u,
$ n device = 3u
xInv1 a y1 Inv Strength = 5$ p device = 10u, n
device = 5u
xInv2 a y2 Inv Strength = 1$ p device = 2u, n
device = 1u
...
This example implements an inverter that uses a Strength
parameter. By default, the inverter can drive three devices.
Enter a new value for the Strength parameter in the element
line, to select larger or smaller inverters for the application.
DESCRIPTION:
You can create a subcircuit description for a commonly-used
circuit, and include one or more references to the subcircuit
in your netlist.
To define a subcircuit in your netlist, use the .SUBCKT
statement.
When you use hierarchical subcircuits, you can pick default
values for circuit elements in a .SUBCKT command. You
can use this feature in cell definitions, to simulate the circuit
Command
Definition
Argument
SubDefaultsList <SubParam1>=<Expression>
[<SubParam2>=<Expression>...]
SEE ALSO:
.ENDS
.EOM
SYNTAX:
.TEMP t1 <t2 <t3 ...>>
EXAMPLE 1:
.TEMP -55.0 25.0 125.0
The .TEMP statement sets the circuit temperatures for the
entire circuit simulation. To simulate the circuit, using
individual elements or model temperatures, HSPICE uses:
DESCRIPTION:
To specify the circuit temperature for an HSPICE simulation,
use the .TEMP statement, or the TEMP parameter in
the .DC, .AC, and .TRAN statements. HSPICE compares
the circuit simulation temperature against the reference
temperature in the TNOM control option. HSPICE uses the
difference between the circuit simulation temperature and
the TNOM reference temperature to define derating factors
for component values.
HSPICE permits only one temperature for the entire circuit.
Multiple definitions of the .TEMP statements in a circuit
behave as a sweep function.
Note: HSPICE allows multiple .TEMP statements in the netlist, and
performs multiple DC, AC or TRAN analyses for each
temperature. Do not set the temperature to the same value
multiple times.
Command
Definition
Argument
t1 t2 Temperatures, in °C, at which HSPICE simulates the circuit.
SYNTAX:
.TF ov srcnam
EXAMPLE:
.TF V(5,3) VIN
.TF I(VLOAD) VIN
For the first example, HSPICE computes the ratio of V(5,3)
to VIN. This is the ratio of small-signal input resistance at
VIN, to the small-signal output resistance (measured across
nodes 5 and 3). If you specify more than one .TF statement
in a single simulation, HSPICE runs only the last .TF
statement.
DESCRIPTION:
The .TF command calculates DC small-signal values for
transfer functions (ratio of output variable, to input source).
You do not need to specify .OP.
The transfer function statement (.TF) defines small-signal
output and input, for DC small-signal analysis. When you
use the .TF statement, HSPICE computes:
• Input resistance.
• Output resistance.
Command
Definition
Argument
ov Small-signal output variable.
srcnam Small-signal input source.
SEE ALSO:
.DC
SYNTAX:
.TITLE <string_of_up_to_72_characters>
or
<string_of_up_to_72_characters>
EXAMPLE:
.TITLE my-design_netlist
DESCRIPTION:
You set the simulation title in the first line of the input file.
HSPICE always reads this line, and uses it as the title of the
simulation, regardless of the line’s contents. The simulation
prints the title verbatim, in each section heading of the
output listing file.
To set the title, you can place a .TITLE statement on the first
line of the netlist. However, HSPICE does not require
the .TITLE syntax.
In the second form of the syntax, the string is the first line of
the input file. The first line of the input file is always the
implicit title. If any statement appears as the first line in a file,
simulation interprets it as a title, and does not execute it.
An .ALTER statement does not support using the .TITLE
statement. To change a title for a .ALTER statement, place
the title content in the .ALTER statement itself.
Command
Definition
Argument
string Any character string up to 72 characters long.
SYNTAX:
Single-Point Analysis
.TRAN tincr1 tstop1 <tincr2 tstop2 ...tincrN tstopN>
+ <START = val> <UIC>
Double-Point Analysis
.TRAN tincr1 tstop1 <tincr2 tstop2 ...tincrN tstopN>
+ <START = val> <UIC>
+ <SWEEP var type np pstart pstop>
.TRAN tincr1 tstop1 <tincr2 tstop2 ...tincrN tstopN>
+ <START = val> <UIC>
+ <SWEEP var START="param_expr1"
+ STOP="param_expr2"
+ STEP="param_expr3">
.TRAN tincr1 tstop1 <tincr2 tstop2 ... tincrN tstopN>
+ <START=val> <UIC>
+ <SWEEP var start_expr stop_expr step_expr>
Data-Driven Sweep
.TRAN DATA = datanm
.TRAN tincr1 tstop1 <tincr2 tstop2 ...tincrN tstopN>
+ <START = val> <UIC> <SWEEP DATA = datanm>
.TRAN DATA = datanm<SWEEP var type np pstart pstop>
.TRAN DATA=datanm <SWEEP var START="param_expr1"
+STOP="param_expr2" STEP="param_expr3">
.TRAN DATA=datanm
+ <SWEEP var start_expr stop_expr step_expr>
EXAMPLE 1:
.TRAN 1NS 100NS
This example performs and prints the transient analysis,
every 1 ns, for 100 ns.
EXAMPLE 2:
.TRAN .1NS 25NS 1NS 40NS START = 10NS
This example performs the calculation every 0.1 ns, for the
first 25 ns; and then every 1 ns, until 40 ns. Printing and
plotting begin at 10 ns.
EXAMPLE 3:
.TRAN 10NS 1US UIC
This example performs the calculation every 10 ns, for 1 µs.
This example bypasses the initial DC operating point
calculation. It uses the nodal voltages, specified in the .IC
statement (or by IC parameters in element statements), to
calculate the initial conditions.
EXAMPLE 5:
.TRAN 10NS 1US SWEEP load POI 3 1pf 5pf 10pf
This example analyzes each load parameter value, at 1 pF,
5 pF, and 10 pF.
EXAMPLE 6:
.TRAN data = dataname
This example is a data-driven time sweep. It uses a data file
as the sweep input. If the parameters in the data statement
are controlling sources, then a piecewise linear specification
must reference them.
DESCRIPTION:
.TRAN starts a transient analysis, which simulates a circuit
at a specific time.
Command
Definition
Argument
DATA = datanm Data name, referenced in the .TRAN statement.
MONTE = val Produces a specified number (val) of randomly-generated
values. HSPICE uses them to select parameters from a
Gaussian, Uniform, or Random Limit.
np Number of points, or number of points per decade or
octave, depending on what keyword precedes it.
param_expr... Expressions you specify: param_expr1...param_exprN.
SYNTAX:
.UNPROTECT
DESCRIPTION:
In HSPICE, the .UNPROTECT statement restores normal
output functions that a .PROTECT statement restricted.
SEE ALSO:
.PROTECT
SYNTAX:
.VEC ‘digital_vector_file’
DESCRIPTION:
You can call a digital vector file from an HSPICE netlist. A
digital vector file consists of three parts:
SYNTAX:
.WIDTH OUT = {80 |132}
EXAMPLE:
.WIDTH OUT = 132 $ SPICE compatible style
.OPTION CO = 132 $ preferred style
DESCRIPTION:
Use the .WIDTH statement to define the print-out width in
HSPICE.
Permissible values for OUT are 80 and 132. You can also
use .OPTION CO to set the OUT value.
Command
Definition
Argument
OUT Output print width.
All of the options described in this chapter start with .OPTION. For
example, ACCT refers to the .OPTION ACCT command. CO=x
refers to the .OPTION CO=x command, and so forth.
SYNTAX:
.OPTION opt1 <opt2 opt3 ...>
EXAMPLE:
.OPTION BRIEF $ Sets BRIEF to 1 (turns it on)
* Netlist, models,
...
.OPTION BRIEF = 0 $ Turns BRIEF off
This example sets the BRIEF option to 1, to suppress a
printout. It then resets BRIEF to 0 later in the input file, to
resume the printout.
DESCRIPTION:
You can modify various aspects of a Synopsys HSPICE
simulation, including:
• output types
• accuracy
• speed
• convergence
To set control options, use .OPTION statements. You can
set any number of options in one .OPTION statement, and
you can include any number of .OPTION statements in an
input netlist file.
The following pages list all .OPTION command options. The
remainder of this chapter describes these options. For
instructions on how to use options that are relevant to a
specific simulation type, see the appropriate DC, transient,
and AC analysis chapters in the HSPICE Simulation and
Analysis User Guide.
Command
Definition
Argument
opt1 ... Specifies any input control options. Many options are in
the form <opt> = x, where <opt> is the option name and x
is the value assigned to that option. This section
describes all options.
• CPU Options
• Interface Options
• Analysis Options
• Error Options
• Version Option
CPU Options
.OPTION CPTIME .OPTION EXPMAX
.OPTION EPSMIN .OPTION LIMTIM
Analysis Options
.OPTION ASPEC .OPTION PARHIER
.OPTION FFTOUT .OPTION SEED
.OPTION LIMPTS .OPTION SPICE
Error Options
.OPTION BADCHR .OPTION NOWARN
.OPTION DIAGNOSTIC .OPTION WARNLIMIT
Version Option
.OPTION H9007
DC Accuracy Options
.OPTION ABSH .OPTION MAXAMP
.OPTION ABSI .OPTION RELH
.OPTION ABSMOS .OPTION RELI
.OPTION ABSTOL .OPTION RELMOS
.OPTION ABSVDC .OPTION RELV
.OPTION DI .OPTION RELVDC
.OPTION KCLTEST
DC Matrix Options
.OPTION ITL1 .OPTION PIVREF
.OPTION ITL2 .OPTION PIVREL
.OPTION NOPIV .OPTION PIVTOL
.OPTION PIVOT .OPTION SPARSE
.BIASCHK Options
.OPTION BIASFILE .OPTION BIAWARN
Input/Output Options
.OPTION INTERP .OPTION MEASSORT
.OPTION ITRPRT .OPTION PUTMEAS
.OPTION MEASFAIL .OPTION UNWRAP
AC Control Options
.OPTION ABSH .OPTION MAXAMP
.OPTION ACOUT .OPTION RELH
.OPTION DI .OPTION UNWRAP
SYNTAX:
.OPTION ABSH=x
DESCRIPTION:
Sets the absolute current change, through voltage-defined
branches (voltage sources and inductors). Use ABSH with
DI and RELH, to check for current convergence. The default
is 0.0.
SYNTAX:
.OPTION ABSI=x
DESCRIPTION:
Sets the absolute error tolerance for branch currents, in
diodes, BJTs, and JFETs, during DC and transient analysis.
Decrease ABSI, if accuracy is more important than
convergence time.
To analyze currents less than 1 nanoamp, change ABSI to a
value at least two orders of magnitude smaller than the
minimum expected current.
The default is 1e-9 for KCLTEST = 0, or 1e-6 for
KCLTEST = 1.
SYNTAX:
.OPTION ABSMOS=x
DESCRIPTION:
Current error tolerance (for MOSFET devices), in DC or
transient analysis. The ABSMOS setting determines
whether the drain-to-source current solution has converged.
The drain-to-source current converged if:
SYNTAX:
.OPTION ABSTOL=x
DESCRIPTION:
Sets the absolute error tolerance for branch currents, for DC
and transient analysis. Decrease ABSTOL, if accuracy is
more important than convergence time. ABSTOL is the
same as ABSI.
SEE ALSO:
.OPTION ABSI
SYNTAX:
.OPTION ABSV=x
DESCRIPTION:
Sets absolute minimum voltage for DC and transient
analysis. ABSV is the same as VNTOL. If accuracy is more
critical than convergence, decrease ABSV. If you need
voltages less than 50 microvolts, reduce ABSV to two orders
of magnitude less than the smallest desired voltage. This
ensures at least two significant digits. Typically, you do not
need to change ABSV, except to simulate a high-voltage
circuit. A reasonable value for 1000-volt circuits is 5 to 50
millivolts. The default is 50 (microvolts).
SYNTAX:
.OPTION ABSVAR=x
DESCRIPTION:
Sets the absolute limit for the maximum voltage change,
from one time point to the next. Use this option with the
DVDT algorithm. If the simulator produces a convergent
solution that is greater than ABSVAR, then HSPICE
discards the solution, sets the timestep to a smaller value,
and recalculates the solution. This is called a timestep
reversal. The default=0.5 (volts).
SYNTAX:
.OPTION ABSVDC=x
DESCRIPTION:
Sets the minimum voltage, for DC and transient analysis. If
accuracy is more critical than convergence, decrease
ABSVDC. If you need voltages less than 50 micro-volts,
reduce ABSVDC, to two orders of magnitude less than the
smallest voltage. This ensures at least two digits of
significance. Typically, you do not need to change ABSVDC,
unless you simulate a high-voltage circuit. For 1000-volt
circuits, a reasonable value is 5 to 50 millivolts.
The default=VNTOL (VNTOL default = 50 mV).
SEE ALSO:
.OPTION VNTOL
SYNTAX:
.OPTION ACCT
.OPTION ACCT=[1|2]
EXAMPLE:
.OPTION ACCT=2
DESCRIPTION:
The ACCT option in HSPICE generates a detailed
accounting report.
Value Description
SYNTAX:
.OPTION ACCURATE=x
DESCRIPTION:
Selects a time algorithm that uses LVLTIM = 3 and
DVDT = 2, for circuits such as high-gain comparators. Use
this option with circuits that combine high gain and large
dynamic range, to guarantee accurate solutions in HSPICE.
When set to 1, ACCURATE sets these control options:
• LVLTIM = 3
• DVDT = 2
• RELVAR = 0.2
• ABSVAR = 0.2
• FT = 0.2
• RELMOS = 0.01
The default is 0.
SEE ALSO:
.OPTION DVDT
.OPTION LVLTIM
SYNTAX:
.OPTION ACOUT=x
DESCRIPTION:
AC output calculation method, for the difference in values of
magnitude, phase, and decibels. Use these values for prints
and plots. The default is 1.
The default (ACOUT = 1) selects the HSPICE method,
which calculates the difference of the magnitudes of the
values. The SPICE method, ACOUT = 0, calculates the
magnitude of the differences in HSPICE.
SYNTAX:
.OPTION ALT999
.OPTION ALT9999
DESCRIPTION:
This option was developed to allow the.GRAPH statement
to create more output files when you ran .ALTER
simulations.
This option is obsolete starting with version 2003.09.
Without this option, HSPICE can now generate up to 10,000
unique files.
SEE ALSO:
.ALTER
.GRAPH
SYNTAX:
.OPTION ALTCHK=x
DESCRIPTION:
By default, HSPICE automatically reports topology errors in
the latest elements, in your top-level netlist. It also reports
errors in elements that you redefine, using the .ALTER
statement (altered netlist).
To disable topology checking in redefined elements (that is,
to check topology only in the top-level netlist, but not in the
altered netlist), set:
.option altchk=0
By default, .OPTION ALTCHK is set to 1:
.option altchk=1
.option altchk
This enables topology checking, in elements that you
redefine using the .ALTER statement.
SYNTAX:
.OPTION ASPEC=x
DESCRIPTION:
Sets HSPICE to ASPEC-compatibility mode. When you set
this option, the simulator reads ASPEC models and netlists,
and the results are compatible. Default is 0 (HSPICE mode).
If you set ASPEC, the following model parameters default to
ASPEC values:
SEE ALSO:
.OPTION SCALE
.OPTION SCALM
.OPTION WL
SYNTAX:
.OPTION ARTIST=x
DESCRIPTION:
ARTIST = 2 enables the Cadence Analog Artist interface.
This option requires a specific license. Supported on Sun
Solaris 2.5/2.7/2.8, HPUX 10.20 and 11.20, IBM AIX 4.3
platforms only. This option is not available on the PC
RedHat/Linux 7.2 platforms.
SYNTAX:
.OPTION AUTOSTOP
DESCRIPTION:
Stops a transient analysis in HSPICE, after calculating all
TRIG-TARG, FIND-WHEN, and FROM-TO measure
functions. This option can substantially reduce CPU time.
You can use the AUTOSTOP option with any measure type.
You can also use the result of the preceding measurement,
as the next measured parameter.
Also terminates the simulation, after completing
all .MEASURE statements. This is of special interest, when
testing corners.
SEE ALSO:
.MEASURE
SYNTAX:
.OPTION BADCHR
DESCRIPTION:
Generates a warning, if it finds a non-printable character in
an input file.
SYNTAX:
.OPTION BEEP=x
DESCRIPTION:
BEEP=1 sounds an audible tone when simulation returns a
message, such as info: hspice job completed.
BEEP=0 turns off the audible tone.
SYNTAX:
.OPTION BIASFILE=x
EXAMPLE:
OPTION BIASFILE=’biaschk/mos.bias’
DESCRIPTION:
If you use this option, HSPICE outputs the results of
all .BIASCHK commands to a file that you specify. If you do
not set this option, HSPICE outputs the .BIASCHK results to
the *.lis file.
SEE ALSO:
.BIASCHK
SYNTAX:
.OPTION BIAWARN=x
EXAMPLE:
.OPTION BIAWARN=1
DESCRIPTION:
For the BIAWARN option:
SYNTAX:
.OPTION BINPRINT
DESCRIPTION:
Outputs the binning parameters of the CMI MOSFET model.
Currently available only for Level 57.
SYNTAX:
.OPTION BKPSIZ=x
DESCRIPTION:
Sets the size of the breakpoint table. The default is 5000.
This is an old option, provided only for backward-
compatibility.
SYNTAX:
.OPTION BRIEF=x
DESCRIPTION:
Stops printback of the data file, until HSPICE finds
an .OPTION BRIEF = 0, or the .END statement. It also
resets the LIST, NODE, and OPTS options, and sets
NOMOD. BRIEF = 0 enables printback. The NXX option is
the same as BRIEF.
SEE ALSO:
.END
SYNTAX:
.OPTION BYPASS=x
DESCRIPTION:
Bypasses model evaluations, if the terminal voltages do not
change. Can be 0 (off) or 1 (on). To speed-up simulation, this
option does not update the status of latent devices. To
enable bypassing, set .OPTION BYPASS = 1, for
MOSFETs, MESFETs, JFETs, BJTs, or diodes. Default = 1.
Use the BYPASS algorithm cautiously. Some circuit types
might not converge, and might lose accuracy in transient
analysis and operating-point calculations.
SYNTAX:
.OPTION BYTOL=x
DESCRIPTION:
Specifies a voltage tolerance, at which a MOSFET,
MESFET, JFET, BJT, or diode becomes latent. HSPICE
does not update status of latent devices. The
default = MBYPASS x VNTOL.
SEE ALSO:
.OPTION MBYPASS
.OPTION VNTOL
SYNTAX:
.OPTION CAPTAB
DESCRIPTION:
Prints table of single-plate node capacitances, for diodes,
BJTs, MOSFETs, JFETs, and passive capacitors, at each
operating point.
SYNTAX:
.OPTION CDS=x
DESCRIPTION:
CDS = 2 produces a Cadence WSF (ASCII format) post-
analysis file, for Opus. This option requires a specific
license. The CDS option is the same as the SDA option.
SYNTAX:
.OPTION CHGTOL=x
DESCRIPTION:
Sets a charge error tolerance, if you set LVLTIM = 2. Use
CHGTOL with RELQ to set the absolute and relative charge
tolerance for all HSPICE capacitances. The default=1e-15
(coulomb).
SEE ALSO:
.OPTION CHGTOL
.OPTION LVLTIM
.OPTION RELQ
SYNTAX:
.OPTION CO=<column_width>
EXAMPLE:
* Narrow print-out (default)
.OPTION CO=80
* Wide print-out
.OPTION CO=132
DESCRIPTION:
The number of output variables that print on a single line of
output, is a function of the number of columns. Use
.OPTION CO to set the column width for print-outs in
HSPICE.
You can set up to five output variables per 80-column output,
and up to eight output variables per 132-column output, with
twelve characters per column. HSPICE automatically
creates additional print statements and tables, for all output
variables beyond the number that the CO option specifies.
The default is 80.
Command
Definition
Argument
SEE ALSO:
.WIDTH
SYNTAX:
.OPTION CONVERGE=x
DESCRIPTION:
Invokes different methods to solve non-convergence
problems.
SYNTAX:
.OPTION CPTIME=x
DESCRIPTION:
Sets the maximum CPU time, in seconds, allotted for this
simulation job. When the time allowed for the job exceeds
CPTIME, HSPICE prints or plots the results up to that point,
and concludes the job. Use this option if you are uncertain
how long the simulation will take, especially when you debug
new data files. Also see LIMTIM. Default is 1e7 (400 days).
SYNTAX:
.OPTION CSDF=x
DESCRIPTION:
Selects Common Simulation Data Format (Viewlogic-
compatible graph data file format).
SYNTAX:
.OPTION CSHDC=x
DESCRIPTION:
The same option as CSHUNT; use only with the
CONVERGE option.
SEE ALSO:
.OPTION CONVERGE
.OPTION CSHUNT
SYNTAX:
.OPTION CSHUNT=x
DESCRIPTION:
Capacitance added from each node to ground, in HSPICE.
Add a small CSHUNT to each node, to solve internal
timestep too small problems, caused by high-frequency
oscillations or numerical noise. The default=0.
SYNTAX:
.OPTION CVTOL=x
DESCRIPTION:
Changes the number of numerical integration steps, when
calculating the gate capacitor charge for a MOSFET, using
CAPOP = 3. See the discussion of CAPOP = 3 in the
“Overview of MOSFETS” chapter of the HSPICE Elements
and Device Models Manual, for explicit equations and
discussion.
SYNTAX:
.OPTION D_IBIS=’ibis_files_directory’
EXAMPLE:
.OPTION d_ibis='/home/user/ibis/models'
DESCRIPTION:
The .OPTION D_IBIS option specifies the directory
containing the IBIS files. If you specify several directories,
then the simulation looks for IBIS files in the local directory
(the directory from which you run the simulation). It then
checks the directories specified through .OPTION D_IBIS in
the order that .OPTION cards appear in the netlist. You can
use the D_IBIS option to specify up to four directories.
SYNTAX:
.OPTION DCAP
DESCRIPTION:
Selects equations, which HSPICE uses to calculate
depletion capacitance for Level 1 and 3 diodes, and BJTs.
The HSPICE Elements and Device Models Manual
describes these equations.
SYNTAX:
.OPTION DCCAP=x
DESCRIPTION:
Generates C-V plots. Prints capacitance values of a circuit
(both model and element), during a DC analysis. You can
use a DC sweep of the capacitor, to generate C-V plots.
Default = 0 (off).
SYNTAX:
.OPTION DCFOR=x
DESCRIPTION:
Use with .OPTION DCHOLD and the .NODESET
statement, to enhance DC convergence.
DCFOR sets the number of iterations to calculate, after a
circuit converges in the steady state. The number of
iterations after convergence is usually zero, so DCFOR
adds iterations (and computation time) to the DC circuit
solution. DCFOR ensures that a circuit actually, not falsely,
converges. The default is 0.
SEE ALSO:
.NODESET
.OPTION DCHOLD
SYNTAX:
.OPTION DCHOLD=x
DESCRIPTION:
Use DCFOR and DCHOLD together, to initialize DC
analysis. DCFOR and DCHOLD enhance the convergence
properties of a DC simulation. DCFOR and DCHOLD work
with the .NODESET statement. Default is 1.
DCHOLD specifies how many iterations to hold a node, at
the .NODESET voltage values. The effects of DCHOLD on
convergence differ, according to the DCHOLD value, and
the number of iterations before DC convergence.
If a circuit converges in the steady state, in fewer than
DCHOLD iterations, the DC solution includes the values set
in .NODESET.
If a circuit requires more than DCHOLD iterations to
converge, HSPICE ignores the values set in the .NODESET
statement, and calculates the DC solution, using
the .NODESET fixed-source voltages open circuited.
SEE ALSO:
.NODESET
.OPTION DCFOR
SYNTAX:
.OPTION DCON=x
DESCRIPTION:
If a circuit cannot converge, HSPICE automatically sets
DCON = 1, and calculates the following:
V max
DV = max æè 0.1, ----------------öø , if DV = 1000
50
Imax
GRAMP = max æè 6, log10 æè --------------------------öø öø ITL1 = ITL1 + 20 ⋅ GRAMP
GMINDC
Vmax is the maximum voltage, and Imax is the maximum
current.
• If the circuit still cannot converge, HSPICE sets
DCON = 2, which sets DV = 1e6.
SEE ALSO:
.OPTION CONVERGE
SYNTAX:
.OPTION DCSTEP=x
DESCRIPTION:
Converts DC model and element capacitors to a
conductance, to enhance DC convergence properties.
HSPICE divides the value of the element capacitors by
DCSTEP, to model DC conductance. The default is 0
(seconds).
SYNTAX:
.OPTION DCTRAN=x
DESCRIPTION:
Invokes different methods to solve non-convergence
problems. DCTRAN is an alias for CONVERGE.
SEE ALSO:
.OPTION CONVERGE
SYNTAX:
.OPTION DEFAD=x
DESCRIPTION:
The default MOSFET drain diode area in HSPICE. The
default=0.
SYNTAX:
.OPTION DEFAS=x
DESCRIPTION:
The default MOSFET source diode area in HSPICE. The
default=0.
SYNTAX:
.OPTION DEFL=x
DESCRIPTION:
The default MOSFET channel length in HSPICE. The
default=1e-4m.
SYNTAX:
.OPTION DEFNRD=x
DESCRIPTION:
The default number of squares for the drain resistor on a
MOSFET. The default is 0.
SYNTAX:
.OPTION DEFNRS=x
DESCRIPTION:
The default number of squares for the source resistor on a
MOSFET. The default is 0.
SYNTAX:
.OPTION DEFPD=x
DESCRIPTION:
The default MOSFET drain diode perimeter in HSPICE. The
default is 0.
SYNTAX:
.OPTION DEFPS=x
DESCRIPTION:
The default MOSFET source diode perimeter in HSPICE.
The default is 0.
SYNTAX:
.OPTION DEFW=x
DESCRIPTION:
The default MOSFET channel width in HSPICE. The default
is 1e-4m.
SYNTAX:
.OPTION DELMAX=x
DESCRIPTION:
Sets the maximum Delta of the internal timestep. HSPICE
automatically sets the DELMAX value, based on timestep
control factors. The initial DELMAX value, shown in the
HSPICE output listing, is generally not the value used for
simulation.
SYNTAX:
.OPTION DI=x
DESCRIPTION:
Sets the maximum iteration-to-iteration current change,
through voltage-defined branches (voltage sources and
inductors). Use this option only if the value of the ABSH
control option is greater than 0. The default is 0.0.
SEE ALSO:
.OPTION ABSH
SYNTAX:
.OPTION DIAGNOSTIC
DESCRIPTION:
Logs the occurrence of negative model conductances.
SYNTAX:
.OPTION DLENCSDF=x
DESCRIPTION:
If you use the Common Simulation Data Format (Viewlogic
graph data file format) as the output format, this digit length
option specifies how many digits to include, in scientific
notation (exponents), or to the right of the decimal point.
Valid values are any integer from 1 to 10, and the default is
5.
If you assign a floating decimal point, or if you specify less
than 1 or more than 10 digits, HSPICE uses the default. For
example, it places 5 digits to the right of a decimal point.
SYNTAX:
.OPTION DV=x
DESCRIPTION:
Maximum iteration-to-iteration voltage change, for all circuit
nodes, in both DC and transient analysis. High-gain bipolar
amplifiers can require values of 0.5 to 5.0, to achieve a
stable DC operating point. Large CMOS digital circuits
frequently require about 1 volt. The default is 1000 (or 1e6 if
DCON = 2).
SYNTAX:
.OPTION DVDT=x
DESCRIPTION:
Adjusts the timestep, based on rates of change for node
voltage. The default is 4.
• 0 - original algorithm
• 1 - fast
• 2 - accurate
• 3,4 - balance speed and accuracy
SYNTAX:
.OPTION DVTR=x
DESCRIPTION:
Limits voltage in transient analysis. The default is 1000.
SYNTAX:
.OPTION EPSMIN=x
DESCRIPTION:
Specifies the smallest number that a computer can add or
subtract, a constant value. Default is 1e-28.
SYNTAX:
.OPTION EXPLI=x
DESCRIPTION:
Current-explosion model parameter. PN junction
characteristics, above the explosion current, are linear.
HSPICE determines the slope at the explosion point. This
improves simulation speed and convergence.
The default is 0.0 amp/AREAeff.
SYNTAX:
.OPTION EXPMAX=x
DESCRIPTION:
Specifies the largest exponent that you can use for an
exponential, before overflow occurs. Typical value for an
IBM platform is 350.
SYNTAX:
.OPTION FAST
DESCRIPTION:
Sets additional options, which increase simulation speed,
with minimal loss of accuracy.
To speed-up simulation, this option does not update the
status of latent devices. Use this option for MOSFETs,
MESFETs, JFETs, BJTs, and diodes. Default is 0.
A device is latent, if its node voltage variation (from one
iteration to the next) is less than the value of either the
BYTOL control option, or the BYPASSTOL element
parameter. (If FAST is on, HSPICE sets BYTOL to different
values, for different types of device models.)
Besides the FAST option, you can also use the NOTOP and
NOELCK options, to reduce input pre-processing time.
Increasing the value of the MBYPASS or BYTOL option, also
helps simulations to run faster, but can reduce accuracy.
SEE ALSO:
.OPTION BYTOL
.OPTION MBYPASS
.OPTION NOELCK
.OPTION NOTOP
SYNTAX:
.OPTION FFTOUT=x
DESCRIPTION:
Prints 30 harmonic fundamentals, sorted by size, THD,
SNR, and SFDR, but only if you specify a .OPTION
FFTOUT statement and a .FFT freq=xxx statement.
SEE ALSO:
.FFT
SYNTAX:
.OPTION FS=x
DESCRIPTION:
Decreases Delta (internal timestep) by the specified fraction
of a timestep (TSTEP), for the first time point of a transient.
Decrease the FS value to help circuits that have timestep
convergence difficulties. DVDT = 3 uses FS to control the
timestep.
Delta = FS ¥ [ MIN ( TSTEP, DELMAX, BKPT ) ]
SEE ALSO:
.OPTION DVDT
.TRAN
SYNTAX:
.OPTION FT=x
DESCRIPTION:
Decreases Delta (the internal timestep), by a specified
fraction of a timestep (TSTEP), for an iteration set that does
not converge. If DVDT = 2 or DVDT = 4, FT controls the
timestep. The default = 0.25.
SEE ALSO:
.OPTION DVDT
SYNTAX:
.OPTION GENK=x
DESCRIPTION:
Automatically computes second-order mutual inductance,
for several coupled inductors. The default=1, which enables
the calculation.
SYNTAX:
.OPTION GMAX=x
DESCRIPTION:
Conductance, in parallel with a current source, for .IC and
.NODESET initialization circuitry. Some large bipolar circuits
require you to set GMAX=1, for convergence. The
default=100 (mho).
SEE ALSO:
.IC
.NODESET
SYNTAX:
.OPTION GMIN=x
DESCRIPTION:
Minimum conductance added to all PN junctions, for a time
sweep in transient analysis. The default is 1e-12.
SYNTAX:
.OPTION GMINDC=x
DESCRIPTION:
Conductance in parallel to all pn junctions and MOSFET
nodes except gate, for DC analysis. GMINDC helps
overcome DC convergence problems, caused by low values
of off-conductance, for pn junctions and MOSFETs. You can
use GRAMP to reduce GMINDC, by one order of magnitude,
for each step. Set GMINDC between 1e-4 and the PIVTOL
value. The default is 1e-12.
Large values of GMINDC can cause unreasonable circuit
response. If your circuit requires large values to converge,
suspect a bad model or circuit. If a matrix floating-point
overflows, and if GMINDC is 1.0e-12 or less, HSPICE sets it
to 1.0e-11. HSPICE manipulates GMINDC in auto-converge
mode.
SEE ALSO:
.OPTION PIVTOL
SYNTAX:
.OPTION GRAMP=x
DESCRIPTION:
HSPICE sets this value during auto-convergence
(default=0). Use GRAMP, with the GMINDC option, to find
the smallest GMINDC value that results in DC convergence.
GRAMP specifies a conductance range, over which DC
operating point analysis sweeps GMINDC. HSPICE
replaces GMINDC values over this range, simulates each
value, and uses the lowest GMINDC value where the circuit
converges in a steady state.
If you sweep GMINDC between 1e-12 mhos (default) and
1e-6 mhos, GRAMP is 6 (value of the exponent difference,
between the default and the maximum conductance limit). In
this example:
• HSPICE first sets GMINDC to 1e-6 mhos, and simulates
the circuit.
SEE ALSO:
.OPTION GMINDC
SYNTAX:
.OPTION GSHUNT=x
DESCRIPTION:
Conductance, added from each node to ground. Default is
zero. Add a small GSHUNT to each node, to help solve
Timestep too small problems, caused by either high-
frequency oscillations or numerical noise.
SYNTAX:
.OPTION H9007
DESCRIPTION:
Sets default values for general-control options, to
correspond to values for HSPICE H9007D. If you set this
option, HSPICE does not use the EXPLI model parameter.
SEE ALSO:
.OPTION EXPLI
SYNTAX:
.OPTION HIER_SCALE=x
DESCRIPTION:
If you set the HIER_SCALE option, you can use the S
parameter to scale sub-circuits.
SYNTAX:
.OPTION ICSWEEP=x
DESCRIPTION:
Saves the current analysis result of a parameter or
temperature sweep, as the starting point in the next analysis
in the sweep.
SYNTAX:
.OPTION IMAX=x
DESCRIPTION:
Maximum timestep, in timestep algorithms for transient
analysis. IMAX sets the maximum iterations, to obtain a
convergent solution at a timepoint. If the number of iterations
needed is greater than IMAX, the internal timestep (Delta)
decreases, by a factor equal to the FT transient control
option. HSPICE uses the new timestep to calculate a new
solution. IMAX also works with the IMIN transient control
option. IMAX is the same as ITL4. The default is 8.0.
SYNTAX:
.OPTION IMIN=x
DESCRIPTION:
Minimum timestep, in timestep algorithms for transient
analysis. IMIN is the minimum number of iterations required,
to obtain convergence. If the number of iterations is less
than IMIN, the internal timestep (Delta) doubles.
Use this option to decrease simulation times, in circuits
where the nodes are stable most of the time (such as digital
circuits). If the number of iterations is greater than IMIN, the
timestep stays the same, unless the timestep exceeds the
IMAX option. IMIN is the same as ITL3. The default is 3.0.
SEE ALSO:
.OPTION IMAX
SYNTAX:
.OPTION INGOLD=[0|1|2]
EXAMPLE:
.OPTION INGOLD=2
DESCRIPTION:
By default, HSPICE prints variable values in engineering
notation:
F = 1e-15 M = 1e-3
P = 1e-12 K = 1e3
N = 1e-9 X = 1e6
U = 1e-6 G = 1e9
In contrast to exponential form, engineering notation
provides two to three extra significant digits, and aligns
columns to facilitate comparison. To obtain output in
exponential form, specify .OPTION INGOLD = 1 or 2.
SEE ALSO:
.OPTION MEASDGT
SYNTAX:
.OPTION INTERP=x
DESCRIPTION:
Limits output for post-analysis tools, such as Cadence or
Zuken, to only the .TRAN timestep intervals. By default,
HSPICE outputs all convergent iterations. INTERP typically
produces a much smaller design .tr# file.
Use INTERP = 1 with caution, when the netlist includes
.MEASURE statements. To compute measure statements,
HSPICE uses the post-processing output. Reducing post-
processing output can lead to interpolation errors, in
measure results.
When you run data-driven transient analysis (.TRAN DATA)
in an optimization routine, HSPICE forces INTERP to 1. All
measurement results are at the time points specified in the
data-driven sweep. To measure only at converged internal
timesteps (for example, to calculate the AVG or RMS), set
ITRPRT = 1.
SEE ALSO:
.MEASURE
.OPTION ITRPRT
.TRAN
SYNTAX:
.OPTION ITL1=x
DESCRIPTION:
Maximum DC iteration limit. Increasing this value rarely
improves convergence in small circuits. Values as high as
400 have resulted in convergence for some large circuits
with feedback (such as operational amplifiers and sense
amplifiers). However, to converge, most models do not
require more than 100 iterations. Set .OPTION ACCT to list
how many iterations an operating point requires. The default
is 200.
SEE ALSO:
.OPTION ACCT
SYNTAX:
.OPTION ITL2=x
DESCRIPTION:
Iteration limit for the DC transfer curve. Increasing this limit
improves convergence, only for very large circuits. Default is
50.
SYNTAX:
.OPTION ITL3=x
DESCRIPTION:
Minimum timestep, in timestep algorithms for transient
analysis. ITL3 is the minimum number of iterations required,
to obtain convergence. If the number of iterations is less
than ITL3, the internal timestep (Delta) doubles.
Use this option to decrease simulation times, in circuits
where the nodes are stable most of the time (such as digital
circuits). If the number of iterations is greater than IMIN, the
timestep stays the same, unless the timestep exceeds the
IMAX option. ITL3 is the same as IMIN. The default is 3.0.
SEE ALSO:
.OPTION IMAX
SYNTAX:
.OPTION ITL4=x
DESCRIPTION:
Maximum timestep, in timestep algorithms for transient
analysis. ITL4 sets the maximum iterations, to obtain a
convergent solution at a timepoint. If the number of iterations
needed is greater than ITL4, the internal timestep (Delta)
decreases, by a factor equal to the FT transient control
option. HSPICE uses the new timestep to calculate a new
solution. ITL4 also works with the IMIN transient control
option. ITL4 is the same as IMAX. The default is 8.0.
SEE ALSO:
.OPTION IMAX
SYNTAX:
.OPTION ITL5=x
DESCRIPTION:
Sets an iteration limit for transient analysis. If a circuit uses
more than ITL5 iterations, the program prints all results, up
to that point. The default (0.0) allows an infinite number of
iterations.
SYNTAX:
.OPTION ITLPTRAN=x
DESCRIPTION:
Controls the iteration limit used in the final try of the pseudo-
transient method, in OP or DC analysis. If simulation fails in
the final try of the pseudo-transient method, enlarge this
option. The default is 30.
SYNTAX:
.OPTION ITLPZ=x
DESCRIPTION:
Sets the iteration limit for pole/zero analysis. The default is
100.
SYNTAX:
.OPTION ITRPRT
DESCRIPTION:
Prints output variables at their internal time points. This
option might generate a long output list.
SYNTAX:
.OPTION KCLTEST=x
DESCRIPTION:
Activates KCL (Kirchhoff’s Current Law) test. increases
simulation time, especially for large circuits, but very
accurately checks the solution. Default=0.
If you set this value to 1, HSPICE sets these options:
• Sets RELMOS and ABSMOS options to 0 (off).
• Sets ABSI to 1e-6 A.
• Sets RELI to 1e-6.
SEE ALSO:
.OPTION ABSI
.OPTION RELI
.OPTION RELMOS
SYNTAX:
.OPTION KLIM=x
DESCRIPTION:
This option sets the minimum mutual inductance, below
which automatic second-order mutual inductance
calculation no longer proceeds. KLIM is unitless (analogous
to coupling strength, specified in the K Element). Typical
KLIM values are between .5 and 0.0. The default is 0.01.
SYNTAX:
.OPTION LENNAM=x
DESCRIPTION:
Maximum length of names, in the printout of operating point
analysis results. Default is 8, and the maximum x
value=1024.
SYNTAX:
.OPTION LIMPTS=x
DESCRIPTION:
Number of points to print or plot in AC analysis. You do not
need to set LIMPTS for DC or transient analysis. HSPICE
spools the output file to disk. Default=2001.
SYNTAX:
.OPTION LIMTIM=x
DESCRIPTION:
Amount of CPU time reserved to generate prints and plots, if
a CPU time limit (CPTIME = x) terminates simulation.
Default=2 (seconds), normally sufficient for short printouts
and plots.
SEE ALSO:
.OPTION CPTIME
SYNTAX:
.OPTION LIST
DESCRIPTION:
This option produces an element summary of the input data
to print, and calculates effective sizes of elements and the
key values.
SEE ALSO:
.OPTION BRIEF
.OPTION UNWRAP
.OPTION VERIFY
SYNTAX:
.OPTION LVLTIM=x
DESCRIPTION:
Selects the timestep algorithm, for transient analysis.
• LVLTIM = 1 (default) uses the DVDT timestep algorithm.
SYNTAX:
.OPTION MAXAMP=x
DESCRIPTION:
Sets the maximum current, through voltage-defined
branches (voltage sources and inductors). If the current
exceeds the MAXAMP value, HSPICE reports an error. The
default is 0.0.
SYNTAX:
.OPTION MAXORD=x
DESCRIPTION:
Maximum order of integration, for the GEAR method in
HSPICE. The x value can be either 1 or 2.
SYNTAX:
.OPTION MBYPASS=x
DESCRIPTION:
Computes the default value of the BYTOL control option:
BYTOL = MBYPASSxVNTOL
Also multiplies the RELV voltage tolerance. Set MBYPASS
to about 0.1, for precision analog circuits.
• Default is 1, for DVDT = 0, 1, 2, or 3.
• Default is 2, for DVDT = 4.
SEE ALSO:
.OPTION DVDT
.OPTION RELV
SYNTAX:
.OPTION MEASDGT=x
DESCRIPTION:
Formats the .MEASURE statement output, in both the listing
file and the .MEASURE output files (.ma0, .mt0, .ms0, and
so on).
The value of x is typically between 1 and 7, although you can
set it as high as 10. The default is 4.0.
For example, if MEASDGT = 5, then .MEASURE displays
numbers as:
• Five decimal digits, for numbers in scientific notation.
SEE ALSO:
.OPTION INGOLD
.MEASURE
SYNTAX:
.OPTION MEASFAIL=0|1
DESCRIPTION:
You can assign the .OPTION MEASFAIL option the following
values:
SYNTAX:
.OPTION MEASSORT=x
DESCRIPTION:
In versions of HSPICE before 2003.09, to automatically sort
large numbers of .MEASURE statements, you could use
the .OPTION MEASSORT statement.
SEE ALSO:
.MEASURE
SYNTAX:
.OPTION MEASOUT=x
DESCRIPTION:
This option outputs .MEASURE statement values and
sweep parameters into an ASCII file. Post-analysis
processing (AvanWaves or other analysis tools) uses this
<design>.mt# file, where # increments for each .TEMP
or .ALTER block.
For example, for a parameter sweep of an output load,
which measures the delay, the .mt# file contains data for a
delay-versus-fanout plot. The default is 1. You can set this
option to 0 (off) in the hspice.ini file.
SEE ALSO:
.ALTER
.TEMP
SYNTAX:
.OPTION MENTOR=x
DESCRIPTION:
MENTOR = 2 enables the Mentor MSPICE-compatible
(ASCII) interface. This option requires a specific license.
SYNTAX:
.OPTION METHOD=GEAR|TRAP
DESCRIPTION:
Sets the numerical integration method, for a transient
analysis, to either GEAR or TRAP.
SEE ALSO:
.OPTION LVLTIM
.OPTION MU
SYNTAX:
.OPTION MODMONTE=x
DESCRIPTION:
If MODMONTE=1, then within a single simulation run, each
device that shares the same model card and is in the same
Monte Carlo index receives a different random value for
parameters that have a Monte Carlo definition.
If MODMONTE=0 (default), then within a single simulation
run, each device that shares the same model card and is in
the same Monte Carlo index, receives the same random
value for its parameters that have a Monte Carlo definition.
SYNTAX:
.OPTION MODSRH=x
EXAMPLE:
example.sp:
* modsrh used incorrectly
.option post modsrh=1
xi1 net8 b c t6
xi0 a b net8 t6
v1 a 0 pulse 3.3 0.0 10E-6 1E-9 1E-9
+ 25E-6 50E-6
v2 b 0 2
v3 c 0 3
.model nch nmos level=49 version=3.2
.end
This input file automatically searches for t6.inc. If t6.inc
includes the nch model, and you set MODSRH to 1, HSPICE
does not load nch. Do not set MODSRH=1 in this type of file
call. Use this option in front of the .MODEL card definition.
DESCRIPTION:
If MODSRH=1, HSPICE does not load or reference a model
described in a .MODEL statement, if the netlist does not use
that model. This option shortens simulation run time, when
the netlist references many models, but no element in the
netlist calls those models. The default is MODSRH=0. If
MODSRH=1, then the read-in time increases slightly.
SEE ALSO:
.MODEL
SYNTAX:
.OPTION MONTECON=x
DESCRIPTION:
Continues a Monte Carlo analysis in HSPICE. Retrieves the
next random value, even if non-convergence occurs. A
random value can be too large, or too small, to cause
convergence to fail. Other types of analysis can use this
Monte Carlo random value.
SYNTAX:
.OPTION MU=x
DESCRIPTION:
This option defines the coefficient for trapezoidal integration.
The value range is 0.0 to 0.5, and the default is 0.5.
SYNTAX:
.OPTION NEWTOL=x
DESCRIPTION:
Calculates one or more iterations past convergence, for
every calculated DC solution and timepoint circuit solution. If
you do not set NEWTOL, after HSPICE determines
convergence, the convergence routine ends, and the next
program step begins. The default is 0.
SYNTAX:
.OPTION NODE=x
EXAMPLE:
1 M1:B D2:+ Q4:B
This sample part of a cross reference line indicates that the
bulk of M1, the anode of D2, and the base of Q4, all connect
to node 1.
DESCRIPTION:
Prints a node cross reference table. The BRIEF option
suppresses NODE. The table lists each node and all
elements connected to it. A code indicates the terminal of
each element. A colon (:) separates the code from the
element name.
The codes are:
+ Diode anode
- Diode cathode
B BJT base
B MOSFET or JFET bulk
C BJT collector
D MOSFET or JFET drain
E BJT emitter
G MOSFET or JFET gate
S BJT substrate
S MOSFET or JFET source
SEE ALSO:
.OPTION BRIEF
SYNTAX:
.OPTION NOELCK
DESCRIPTION:
No element check; bypasses element checking, to reduce
pre-processing time for very large files.
SYNTAX:
.OPTION NOMOD
DESCRIPTION:
Suppresses the printout of model parameters.
SYNTAX:
.OPTION NOPAGE
DESCRIPTION:
Suppresses page ejects for title headings.
SYNTAX:
.OPTION NOPIV=x
DESCRIPTION:
Prevents HSPICE from automatically switching to pivoting
matrix factors, if a nodal conductance is less than PIVTOL.
NOPIV inhibits pivoting.
SEE ALSO:
.OPTION PIVTOL
SYNTAX:
.OPTION NOTOP
DESCRIPTION:
Suppresses topology checks to increase the speed for pre-
processing very large files.
SYNTAX:
.OPTION NOWARN
DESCRIPTION:
Suppresses all warning messages, except those generated
from statements in .ALTER blocks.
SEE ALSO:
.ALTER
SYNTAX:
.OPTION NUMDGT=x
DESCRIPTION:
Number of significant digits to print, for output variable
values. The value of x is typically between 1 and 7, although
you can set it as high as 10. Default is 4.0. This option does
not affect the accuracy of the simulation.
SYNTAX:
.OPTION NXX
DESCRIPTION:
Stops printback of the data file, until HSPICE finds
an .OPTION BRIEF = 0, or the .END statement. It also
resets the LIST, NODE, and OPTS options, and sets
NOMOD. BRIEF = 0 enables printback. NXX is the same as
BRIEF.
SEE ALSO:
.OPTION BRIEF
SYNTAX:
.OPTION CSDF=x
DESCRIPTION:
For all active devices, initializes terminal voltages to zero, if
you did not initialize them to other values. For example, if
you did not initialize both drain and source nodes of a
transistor (using .NODESET or .IC statements, or
connecting them to sources), then OFF initializes all nodes
of the transistor to zero.
HSPICE checks the OFF option, before element IC
parameters. If you assigned an element IC parameter to a
node, simulation initializes the node to the element IC
parameter value, even if the OFF option previously set it o
zero.
You can use the OFF element parameter to initialize terminal
voltages to zero, for specific active devices. Use the OFF
option to help find exact DC operating-point solutions, for
large circuits.
SEE ALSO:
.IC
.NODESET
SYNTAX:
.OPTION OPTLIST
DESCRIPTION:
Outputs additional optimization information:
• No information (default).
SYNTAX:
.OPTION OPTS
DESCRIPTION:
Prints the current settings, for all control options. If you
change any of the default values of the options, the OPTS
option prints the values that the simulation actually uses.
The BRIEF option suppresses OPTS.
SEE ALSO:
.OPTION BRIEF
SYNTAX:
.OPTION PARHIER = < GLOBAL | LOCAL >
EXAMPLE:
.OPTION parhier=<global | local>
.PARAM DefPwid = 1u
.SUBCKT Inv a y DefPwid = 2u DefNwid = 1u
Mp1 <MosPinList> pMosMod L = 1.2u W = DefPwid
Mn1 <MosPinList> nMosMod L = 1.2u W = DefNwid
.ENDS
This example explicitly shows the difference between local
and global scoping, for using parameters in sub-circuits.
DESCRIPTION:
Use the .OPTION PARHIER parameter to specify scoping
rules.
The default setting is GLOBAL.
SYNTAX:
.OPTION PATHNUM
DESCRIPTION:
Prints subcircuit path numbers, instead of path names.
SYNTAX:
.OPTION PIVOT=x
DESCRIPTION:
Selects a pivot algorithms. Use these algorithms to reduce
simulation time, and to achieve convergence in circuits that
produce hard-to-solve matrix equations. To select the pivot
algorithm, set PIVOT to one of these values:
SYNTAX:
.OPTION PIVREF=x
DESCRIPTION:
Pivot reference. Use PIVREF in PIVOT = 11, 12, or 13, to
limit the size of the matrix. Default is 1e+8.
SEE ALSO:
.OPTION PIVOT
SYNTAX:
.OPTION PIVREL=x
DESCRIPTION:
Sets the maximum and minimum ratio of a row or matrix.
Use only if PIVOT = 1. Large values for PIVREL can result in
very long matrix pivot times. If the value is too small,
however, no pivoting occurs. Start with small values of
PIVREL, using an adequate (but not excessive) value, for
convergence and accuracy. The default is 1E-20 (max = 1e-
20, min = 1).
SEE ALSO:
.OPTION PIVOT
SYNTAX:
.OPTION PIVTOL=x
DESCRIPTION:
Absolute minimum value for which HSPICE accepts a matrix
entry as a pivot. If PIVOT=0, PIVTOL is the minimum
conductance in the matrix. Default=1.0e-15.
PIVTOL must be less than GMIN or GMINDC. Values that
approach 1 increase the pivot.
SEE ALSO:
.OPTION GMIN
.OPTION GMINDC
.OPTION PIVOT
SYNTAX:
.OPTION PLIM
DESCRIPTION:
Specifies plot size limits, for current and voltage plots:
• Finds a common plot limit, and plots all variables on one
graph, at the same scale
• Enables SPICE-type plots in HSPICE, which create a
separate scale and axis for each plot variable.
This option does not affect post- processing of graph data.
SYNTAX:
.OPTION POST=[0|1|2|3|ASCII|BINARY]
EXAMPLE:
.OPTION POST=2
DESCRIPTION:
Use an .OPTION POST statement to display high-resolution
AvanWaves plots of simulation results, on either a graphics
terminal or a high-resolution laser printer. Use .OPTION
POST to provide output, without specifying other
parameters. POST has defaults, which supply usable data to
most parameters.
Value Description
SYNTAX:
.OPTION POST_VERSION=x
DESCRIPTION:
Sets the post-processing output version:
• x = 9007 truncates the node name in the post-processor
output file, to a maximum of 16 characters.
• x = 9601 sets the node name length for the output file,
consistent with the input restrictions (1024 characters).
If you set .OPTION POST_VERSION=2001, then the post-
processing output version is switched 2001. This option
shows you the new output file header, which includes the
right number of output variables, rather than **** when the
number exceeds 9999. If you set .OPTION
POST_VERSION=2001 post=2 in the netlist, then HSPICE
returns more-accurate ASCII results.
.option post_version=2001
To use binary values (with double precision) in the output
file, include the following in the input file:
*******************************************
.option post (or post=1) post_version=2001
*******************************************
For more accurate simulation results, comment this format.
SYNTAX:
.OPTION PROBE=x
DESCRIPTION:
Limits post-analysis output to only variables specified
in .PROBE, .PRINT, .PLOT, and .GRAPH statements. By
default, HSPICE outputs all voltages and power supply
currents, in addition to variables listed in .PROBE/.PRINT/
.PLOT/.GRAPH statements. PROBE significantly
decreases the size of simulation output files.
SEE ALSO:
.GRAPH
.PLOT
.PRINT
.PROBE
SYNTAX:
.OPTION PSF=x
DESCRIPTION:
Specifies whether HSPICE outputs binary or ASCII data,
when you run an HSPICE simulation from Cadence Analog
Artist. Supported on Sun Solaris 2.5/2.7/2.8, HPUX 10.20
and 11.20, IBM AIX 4.3 platforms only. This option is not
available on the PC RedHat/Linux 7.2 platform.
The value of x can be 1 or 2.
• If x is 2, HSPICE produces ASCII output.
SEE ALSO:
.OPTION ARTIST
SYNTAX:
.OPTION PURETP=x
DESCRIPTION:
Integration method to use, for reversal time point. The
default is 0. If you set puretp=1, then if HSPICE finds non-
convergence, it uses TRAP (instead of B.E) for the reversed
time point. Use this option, with the method=TRAP
statement, to help some oscillating circuits to oscillate, if the
default simulation process cannot satisfy the result.
SYNTAX:
.OPTION PUTMEAS=0|1
DESCRIPTION:
The .OPTION PUTMEAS option controls the output
variables, listed in the .MEASURE statement.
SEE ALSO:
.MEASURE
SYNTAX:
.OPTION RELH=x
DESCRIPTION:
Relative current tolerance, through voltage-defined
branches (voltage sources and inductors). Use RELH to
check current convergence, but only if the value of the
ABSH control option is greater than zero. Default is 0.05.
SEE ALSO:
.OPTION ABSH
SYNTAX:
.OPTION RELI=x
DESCRIPTION:
Sets the relative error/tolerance change, from iteration to
iteration. This parameter determines convergence for all
currents, in diode, BJT, and JFET devices. (RELMOS sets
tolerance for MOSFETs). This is the change in current, from
the value calculated at the previous timepoint.
SYNTAX:
.OPTION RELMOS=x
DESCRIPTION:
Sets the relative error tolerance (percent) for drain-to-source
current, from iteration-to-iteration. This parameter
determines convergence for currents in MOSFET devices.
(RELI sets the tolerance for other active devices.) Sets the
change in current, from the value calculated at the previous
timepoint. HSPICE uses the RELMOS value, only if the
current is greater than the ABSMOS floor value. The default
is 0.05.
SEE ALSO:
.OPTION ABSMOS
SYNTAX:
.OPTION RELQ=x
DESCRIPTION:
Used in the timestep algorithm for local truncation error
(LVLTIM = 2). RELQ changes the timestep size. If the
capacitor charge calculation (in the present iteration)
exceeds that of the past iteration by a percentage greater
than the RELQ value, then HSPICE reduces the internal
timestep (Delta). The default=0.01.
SEE ALSO:
.OPTION LVLTIM
SYNTAX:
.OPTION RELTOL=x
DESCRIPTION:
Relative error tolerance for voltages. Use RELTOL, with the
ABSV control option, to determine voltage convergence.
Increasing RELTOL increases the relative error. RELTOL is
the same as RELV. RELI and RELVDC options default to the
RELTOL value. The default is 1e-3.
SEE ALSO:
.OPTION ABSV
.OPTION RELI
.OPTION RELV
.OPTION RELVDC
SYNTAX:
.OPTION RELV=x
DESCRIPTION:
Sets the relative error tolerance for voltages. If voltage or
current exceeds the absolute tolerances, a RELV test
determines convergence. Increasing RELV increases the
relative error. You should generally maintain RELV at its
default value. RELV conserves simulator charge. For
voltages, RELV is the same as RELTOL. The default is 1e-3.
SEE ALSO:
.OPTION RELTOL
SYNTAX:
.OPTION RELVAR=x
DESCRIPTION:
Use this option with ABSVAR, and the DVDT timestep
algorithm. RELVAR sets the relative voltage change, for
LVLTIM = 1 or 3. If the node voltage at the current time point
exceeds the node voltage at the previous time point by
RELVAR, then HSPICE reduces the timestep, and
calculates a new solution at a new time point. The default is
0.30 (30%).
SEE ALSO:
.OPTION ABSVAR
.OPTION DVDT
.OPTION LVLTIM
SYNTAX:
.OPTION RELVDC=x
DESCRIPTION:
Sets the relative error tolerance for voltages. If voltages or
currents exceed their absolute tolerances, the RELVDC test
determines convergence. Increasing RELVDC increases the
relative error. You should generally maintain RELVDC at its
default value. RELVDC conserves simulator charge. Default
is RELTOL (RELTOL default = 1e-3).
SEE ALSO:
.OPTION RELTOL
SYNTAX:
.OPTION RESMIN=x
DESCRIPTION:
Minimum resistance for all resistors, including parasitic and
inductive resistances. The default is 1e-5 (ohm), and the
range is 1e-15 to 10 ohm.
SYNTAX:
.OPTION RISETIME=x
DESCRIPTION:
Smallest risetime of a signal. Use this option only in
transmission line models. In the U Element, this equation
determines the number of lumps:
TDeff
MIN 20, 1 + æ ------------------------------ö ⋅ 20
è RISETIMEø
SYNTAX:
.OPTION RMAX=x
DESCRIPTION:
Sets the TSTEP multiplier, which controls the maximum
value (DELMAX) for the Delta of the internal timestep:
DELMAX = TSTEP x RMAX
SEE ALSO:
.OPTION DVDT
.OPTION LVLTIM
SYNTAX:
.OPTION RMIN=x
DESCRIPTION:
Sets the minimum value of Delta (internal timestep). An
internal timestep smaller than RMINxTSTEP, terminates the
transient analysis, and reports an internal timestep too small
error. If the circuit does not converge in IMAX iterations,
Delta decreases by the amount you set in the FT option. The
default = 1.0e-9.
SEE ALSO:
.OPTION FT
.OPTION IMAX
SYNTAX:
.OPTION SCALE=x
DESCRIPTION:
Element scaling factor, in HSPICE. Scales parameters in
element cards, by their value. Default=1.
SYNTAX:
.OPTION SCALM=x
DESCRIPTION:
Model scaling factor, in HSPICE. Scales model parameters
by their value. The default is 1. See the HSPICE Elements
and Device Models Manual, for parameters this option
scales.
SYNTAX:
.OPTION SDA=x
DESCRIPTION:
SDA = 2 produces a Cadence WSF (ASCII format) post-
analysis file, for Opus. This option requires a specific
license. The SDA is the same as the CDS option.
SYNTAX:
.OPTION SEARCH = ‘directory_path’
EXAMPLE:
.OPTION SEARCH = ‘$installdir/parts/vendor’
DESCRIPTION:
Use the .OPTION SEARCH statement to automatically
access a library.
This example searches for models in the vendor
subdirectory, under the <$installdir>/parts
installation directory (see Figure 3-1). The parts/ directory
contains the DDL subdirectories.
$installdir/parts/vendor/buffer_f.inc
SYNTAX:
.OPTION SEED=x
DESCRIPTION:
Starting seed for random-number generator in HSPICE
Monte Carlo analysis. The minimum value is 1; the
maximum value is 259200.
SYNTAX:
.OPTION SLOPETOL=x
DESCRIPTION:
Minimum value, for breakpoint table entries in a piecewise
linear (PWL) analysis. If the difference in the slopes of two
consecutive PWL segments is less than the SLOPETOL
value, HSPICE ignores the breakpoint, for the point between
the segments. The default is 0.5.
SYNTAX:
.OPTION SPARSE=x
DESCRIPTION:
The SPARSE option is the same as PIVOT.
SEE ALSO:
.OPTION PIVOT
SYNTAX:
.OPTION SPICE=x
EXAMPLE 1:
Example of general parameters, used with .OPTION SPICE:
TNOM = 27 DEFNRD = 1 DEFNRS = 1 INGOLD = 2
ACOUT = 0 DC
PIVOT PIVTOL = IE-13 PIVREL = 1E-3
RELTOL = 1E-3
ITL1 = 100
ABSMOS = 1E-6 RELMOS = 1E-3 ABSTOL = 1E-12
VNTOL = 1E-6
ABSVDC = 1E-6 RELVDC = 1E-3 RELI = 1E-3
EXAMPLE 2:
Example of transient parameters, used with .OPTION
SPICE:
DCAP = 1 RELQ = 1E-3 CHGTOL-1E-14 ITL3 = 4
ITL4 = 10
ITL5 = 5000 FS = 0.125 FT = 0.125
DESCRIPTION:
Makes HSPICE compatible with Berkeley SPICE. If you set
this option, HSPICE uses the options and model parameters
explained in the examples.
SYNTAX:
.OPTION STATFL=x
DESCRIPTION:
Controls whether HSPICE creates a .st0 file.
• STATFL=0 (default) outputs a .st0 file.
SYNTAX:
.OPTION TIMERES=x
DESCRIPTION:
Minimum separation between breakpoint values, for the
breakpoint table. If two breakpoints are closer together (in
time) than the TIMERES value, HSPICE enters only one of
them in the breakpoint table. The default is 1 ps.
SYNTAX:
.OPTION TNOM=x
DESCRIPTION:
Reference temperature for HSPICE simulation. At this
temperature, component derating is zero. The default is 25
degrees Celsius. If you enable .OPTION SPICE, the default
is 27 degrees Celsius.
SEE ALSO:
.OPTION SPICE
SYNTAX:
.OPTION TRCON=x
DESCRIPTION:
Controls the automatic convergence (autoconvergence) and
automatic speedup (autospeedup) processes in HSPICE.
HSPICE also uses autoconvergence in DC analysis, if the
Newton-Raphson (N-R) method fails to converge.
For some large non-linear circuits with large TSTOP/TSTEP
values, analysis might run for an excessively long time. In
this case, HSPICE might automatically set a new and bigger
RMAX value, to speed up the analysis for primary reference.
In most cases, however, HSPICE does not activate this type
of autospeedup process.
For autospeedup to occur, all three of the following
conditions must occur:
• N1 (Number of Nodes) > 1,000
SYNTAX:
.OPTION TRTOL=x
DESCRIPTION:
Used in the timestep algorithm for local truncation error
(LVLTIM = 2). HSPICE multiplies TRTOL by the internal
timestep, which the timestep algorithm for the local
truncation error generates. TRTOL reduces simulation time,
and maintains accuracy. It estimates the amount of error
introduced, when the algorithm truncates the Taylor series
expansion. This error reflects the minimum time-step, to
reduce simulation time and maintain accuracy. The range of
TRTOL is 0.01 to 100; typical values are 1 to 10. If you set
TRTOL to 1 (the minimum value), HSPICE uses a very small
timestep. As you increase the TRTOL setting, the timestep
size increases. The default is 7.0.
SEE ALSO:
.OPTION LVLTIM
SYNTAX:
.OPTION UNWRAP
DESCRIPTION:
Displays phase results for AC analysis, in unwrapped form
(with a continuous phase plot).HSPICE uses these results to
accurately calculate group delay. It also uses unwrapped
phase results to compute group delay, even if you do not set
UNWRAP.
SYNTAX:
.OPTION VERIFY
DESCRIPTION:
The VERIFY option is an alias for the LIST option.
SEE ALSO:
.OPTION LIST
SYNTAX:
.OPTION VFLOOR=x
DESCRIPTION:
Minimum voltage to print in output listing. All voltages lower
than VFLOOR, print as 0. Affects only the output listing:
VNTOL (ABSV) sets minimum voltage to use in a simulation.
SEE ALSO:
.OPTION VNTOL
SYNTAX:
.OPTION VNTOL=x
DESCRIPTION:
The VNTOL option is the same as the ABSV option.
SEE ALSO:
.OPTION ABSV
SYNTAX:
.OPTION WARNLIMIT=x
DESCRIPTION:
Limits how many times certain warnings appear in the output
listing. This reduces the output listing file size. x is the
maximum number of warnings for each warning type. This
limit applies to the following warning messages:
The default is 1.
SYNTAX:
.OPTION WL=x
DESCRIPTION:
Reverses the specified order, in the VSIZE MOS element.
Default order is length-width; changes the order to width-
length. The default is 0.
SYNTAX:
.OPTION XDTEMP=value
EXAMPLE:
.OPTION XDTEMP
X1 2 0 SUB1 DTEMP=2
.SUBCKT SUB1 A B
R1 A B 1K DTEMP=3
C1 A B 1P
X2 A B sub2 DTEMP=4
.ENDS
.SUBCKT SUB2 A B
R2 A B 1K
.ENDS
In this example:
1. X1 sets a temperature difference (2 degrees Celsius)
between the elements within the subcircuit SUB1.
2. X2 (a subcircuit instance of X1) sets a temperature
difference by the DTEMP value of both X1 and X2 (2+4=6
degrees Celsius) between the elements within the SUB2
subcircuit. Finally, the DTEMP value of each element in
this example is:
Elements DTEMP Value (Celsius)
X1 2
X1.R1 2+3 =5
X1.C1 2
X2 2+4=6
X2.R2 6
SYNTAX:
.OPTION ZUKEN=x
DESCRIPTION:
This option enables or disables the Zuken interface.
• If x is 2, enables the Zuken interactive interface.
IN-1
BKPSIZ option 3-34 .DEL LIB 2-36
branch current error 3-15 .DISTO 2-40
breakpoint table, size 3-34 .DOUT 2-43
BRIEF option 2-125, 3-2, 3-35, 3-104, 3-121, .EBD 2-45
3-129, 3-132 .ELSE 2-47
Broyden update data, printing 3-131 .ELSEIF 2-48
.END 2-50
BSIM model, LEVEL 13 2-116
.ENDDATA 2-52
BSIM2 model, LEVEL 39 2-116
.ENDIF 2-53
BYPASS option 3-36 .ENDL 2-54
BYTOL option 3-37 .ENDS 2-55
.EOM 2-56
.FFT 2-57
C .FOUR 2-60
Cadence .FSOPTIONS 2-62
Opus 3-39, 3-161 .GLOBAL 2-64
WSF format 3-39, 3-161 .GRAPH 2-65
capacitance .IBIS 2-67
charge tolerance, setting 3-40 .IC 2-68
CSHUNT node-to-ground 3-46 .IF 2-70
table of values 3-38 .INCLUDE 2-72
capacitor, models 2-115 .LAYERSTACK 2-73
CAPTAB option 3-38 .LIB 2-75
CDS option 3-39 .LOAD 2-81
CENDIF optimization parameter 2-117 .MACRO 2-84
characterization of models 2-31 .MALIAS 2-87
.MATERIAL 2-89
charge tolerance, setting 3-40
.MEASURE 2-91
CHGTOL option 3-40
.MODEL 2-114
CLOSE optimization parameter 2-117 .NET 2-120
CO option 2-172, 2-177, 3-41 .NODESET 2-122
column laminated data 2-23 .NOISE 2-123
commands .OP 2-124
.AC 2-5 .PARAM 2-127
.ALIAS 2-9 .PKG 2-132
.ALTER 2-12, 2-39 .PLOT 2-134
alter block 1-1 .PRINT 2-136
analysis 1-2 .PROBE 2-141
.BIASCHK 2-14 .PROTECT 2-142
.CONNECT 2-17 .PZ 2-143
.DATA 2-19 .SAVE 2-146
.DC 2-28 .SENS 2-148
.DCVOLT 2-34 .SHAPE 2-150
IN-2
.STIM 2-156 setting DCON 3-53
subcircuit 1-5 steady state 3-82
.SUBCKT 2-162 CPTIME option 3-43
.TEMP 2-165 CPU time, reducing 3-122
.TF 2-167 CROSS keyword 2-100
.TITLE 2-169
CSDF option 3-44
.TRAN 2-170
CSHDC option 3-45
.UNPROTECT 2-175
.VEC 2-176 CSHUNT option 3-46
.WIDTH 2-177 current
ABSMOS floor value for convergence 3-149
Common Simulation Data Format 3-67
branch 3-15
concatenated data files 2-22
operating point table 2-125
Conditional Block 1-2
CURRENT keyword 2-125
conductance
CUT optimization parameter 2-118
current source, initialization 3-79
minimum, setting 3-80 CVTOL option 3-47
models 3-54
MOSFETs 3-81
negative, logging 3-66
D
node-to-ground 3-83 D_IBIS option 3-48
sweeping 3-82 .DATA command 2-19, 2-21
.CONNECT command 2-17 datanames 2-25
control options external file 2-19
defaults 3-3 for sweep data 2-24
printing 3-132 inline data 2-25
setting 3-2 data files, disabling printout 3-35, 3-129
transient analysis DATA keyword 2-7, 2-24, 2-31, 2-172
limit 3-176 datanames 2-25, 2-159
CONVERGE option 3-42, 3-55 DC
convergence analysis
for optimization 2-119 decade variation 2-32
problems initialization 3-52
causes 3-36 iteration limit 3-91
changing integration algorithm 3-114 linear variation 2-32
CONVERGE option 3-42, 3-55 list of points 2-32
DCON setting 3-53 octave variation 2-32
decreasing the timestep 3-76 optimization 2-28
internal timestep too small 3-105 .DC command 2-28, 2-31
.NODESET statement 2-122 external data with .DATA 2-25
nonconvergent node listing 3-53 DCAP option 3-49
operating point Debug mode 2-125 DCCAP option 3-50
IN-3
DCFOR option 3-51 DVDT
DCHOLD option 3-52 algorithm 3-19, 3-153
DCON option 3-53 option 3-69, 3-105
DCSTEP option 3-54 DVDT option 3-69
DCTRAN option 3-55 DVTR option 3-70
.DCVOLT command 2-34, 2-68
DEBUG keyword 2-125 E
DEC keyword 2-8, 2-32, 2-173
.EBD command 2-45
DEFAD option 3-56
element
DEFAS option 3-57 checking, suppression of 3-122
DEFL option 3-58 OFF parameter 3-130
DEFNRD option 3-59 .ELSE command 2-47
DEFNRS option 3-60 .ELSEIF command 2-48
DEFPD option 3-61 Encryption 1-2
DEFPS option 3-62 .END command 2-50
DEFW option 3-63 for multiple HSPICE runs 2-51
.DEL LIB command 2-36 location 2-50
with .ALTER 2-39 .ENDDATA command 2-52
with .LIB 2-39 ENDDATA keyword 2-19, 2-22, 2-26
DELMAX option 3-64, 3-157 .ENDIF command 2-53
DELTA internal timestep 3-64 .ENDL command 2-54, 2-77, 2-78
See also timestep .ENDS command 2-55
derivative function 2-109
.EOM command 2-56
DERIVATIVE keyword 2-110 EPSMIN option 3-71
derivatives, measuring 2-99 equation 2-103
DI option 3-65 ERR function 2-112
DIAGNOSTIC option 3-66 ERR1 function 2-112
DIFSIZ optimization parameters 2-118 ERR2 function 2-112
DIM2 distortion measure 2-42 ERR3 function 2-112
DIM3 distortion measure 2-42 error function 2-112
diode models 2-115 errors
.DISTO command 2-40 branch current 3-15
distortion function 2-112
HD2 2-42 internal timestep too small 3-46, 3-105,
HD3 2-42 3-158
distortion measures optimization goal 2-94
DIM2 2-42 tolerances
DIM3 2-42 ABSMOS 3-16
DLENCSDF option 3-67 branch current 3-15
.DOUT command 2-43 RELMOS 3-16
DV option 3-53, 3-68 voltage 3-151, 3-152, 3-154
example, subcircuit test 2-84, 2-162
IN-4
EXPLI option 3-72 G
EXPMAX option 3-73
GEAR algorithm 3-105
expression, arithmetic 2-103
GENK option 3-78
external data files 2-26
.GLOBAL command 2-64
global node names 2-64
F GMAX option 3-79
FALL keyword 2-100 GMIN option 3-80, 3-81
FAST option 3-74 GMINDC option 3-81
.FFT command 2-57 GOAL keyword 2-106
FFTOUT option 3-75 GRAD optimization parameter 2-118
FIL keyword 2-26 gradient data, printing 3-131
files GRAMP
column lamination 2-23 calculation 3-53
concatenated data files 2-22 option 3-82
filenames 2-26 .GRAPH command 2-65
hspice.ini 3-112 graph data file (Viewlogic format) 3-67
include files 2-72, 2-77 GSHUNT option 3-83
multiple simulation runs 2-51
FIND keyword 2-99
FIND, using with .MEASURE 2-98
H
floating point overflow H9007 option 3-84
CONVERGE setting 3-42 harmonic distortion 2-42
setting GMINDC 3-81 HD2 distortion 2-42
.FOUR command 2-60 HD3 distortion 2-42
frequency HIER_SCALE option 3-85
ratio 2-41 HSPICE
sweep 2-6 job statistics report 3-21
FROM parameter 2-113 version
FS option 2-145, 3-76 H9007 compatibility 3-84
.FSOPTIONS command 2-62 parameter 2-116
FT option 3-77 hspice.ini file 3-112
functions
ERR 2-112
ERR1 2-112
I
ERR2 2-112 .IBIS command 2-67
ERR3 2-112 IBIS commands 1-3
error 2-112 .IC command 2-34, 2-68
from .SAVE 2-146
IC parameter 2-34, 2-68, 2-147
ICSWEEP option 3-86
IN-5
.IF command 2-70 intermodulation distortion 2-42
IGNOR keyword 2-113 INTERP option 3-90
IMAX option 3-87, 3-94 iterations
IMIN option 3-88, 3-93 limit 3-91
inactive devices maximum number of 3-95
See latent devices ITL1 option 3-91
.INCLUDE command 2-72 ITL2 option 3-92
include files 2-72, 2-77 ITL3 option 3-93
indepout 2-159 ITL4 option 3-94
indepvar 2-158, 2-159, 2-160 ITL5 option 3-95
inductors, mutual model 2-115 ITLPTRAN option 3-96
INGOLD option 3-89, 3-109 ITLPZ option 3-97
initial conditions ITROPT optimization parameter 2-118
saving and reusing 3-86 ITRPRT option 3-98
transient 2-173
initialization 3-130
inline data 2-25 J
inner sweep 2-21 Jacobian data, printing 3-131
input
data
adding library data 2-39 K
column laminated 2-23 KCLTEST option 3-99
concatenated data files 2-22 keywords
deleting library data 2-39 .AC statement parameter 2-7
external, with .DATA statement 2-24 ALL 2-125, 2-147
filenames on networks 2-24 AT 2-101
formats 2-23, 2-25 AVG 2-107
include files 2-72 BETA 2-145
printing 3-104 CROSS 2-100
suppressing printout 3-104 CURRENT 2-125
netlist file 2-50 DATA 2-7, 2-24, 2-31, 2-172
INTEG keyword 2-107, 2-108 .DATA command parameter 2-24
used with .MEASURE 2-105 .DC command parameter 2-31
integral function 2-108 DEBUG 2-125
integration DEC 2-8, 2-32, 2-173
backward Euler method 3-107 DERIVATIVE 2-110
order of 3-107 ENDDATA 2-19, 2-22, 2-26
interfaces FALL 2-100
Analog Artist 3-27, 3-144 FIL 2-26
Mentor 3-113 FIND 2-99
MSPICE 3-113 FS 2-145
ZUKEN 3-182 IGNOR 2-113
IN-6
INTEG 2-105, 2-107, 2-108 BYTOL option 3-37
LAM 2-23, 2-26 excluding 3-74
LAST 2-100, 2-101 MBYPASS option 3-37
LIN 2-8, 2-32, 2-173 removing from simulation 3-37
MAXFLD 2-145 VNTOL option 3-37
.MEASUREMENT command .LAYERSTACK command 2-73
parameter 2-107 LENNAM option 3-101
MER 2-22, 2-23, 2-26
LEVEL 13 BSIM model 2-116
MINVAL 2-113
LEVEL parameter 2-118
MODEL 2-31
.MODEL statement parameters 2-114 .LIB command 2-75
MONTE 2-7, 2-172 call statement 2-77
NONE 2-125, 2-147 in .ALTER blocks 2-77
NUMF 2-145 nesting 2-78
OCT 2-8, 2-32, 2-173 with .DEL LIB 2-39
OPTIMIZE 2-32 libraries
PLOT 2-114 adding with .LIB 2-39
POI 2-8, 2-32, 2-173 building 2-77
PP 2-106, 2-107 DDL 3-162
RESULTS 2-32 defining macros 2-78
RIN 2-121 deleting 2-36
RISE 2-100 private 2-142
START 2-173 protecting 2-142
SWEEP 2-8, 2-32, 2-173 Library Management 1-3
target syntax 2-101 LIMPTS option 3-102
TO 2-106, 2-113 LIMTIM option 3-103
TOL 2-145 LIN keyword 2-8, 2-32, 2-173
TOP 2-147 LIST option 3-104
.TRAN command parameter 2-172 listing, suppressing 2-142
TRIG 2-93
.LOAD command 2-81
VOLTAGE 2-125
local truncation error algorithm 3-105,
WEIGHT 2-107, 2-113
3-150, 3-173
weight 2-107
LVLTIM option 3-105, 3-114, 3-153, 3-173
WHEN 2-99
Kirchhoff’s Current Law (KCL) test 3-99
KLIM option 3-100 M
.MACRO command 2-84
L macros 2-39, 2-78
magnetic core models 2-115
LAM keyword 2-23, 2-26
.MALIAS command 2-87
laminated data 2-23
.MATERIAL command 2-89
LAST keyword 2-100, 2-101
latent devices Material Properties 1-3
BYPASS option 3-36, 3-37
IN-7
matrix suppressing printout of 3-123
minimum pivot values 3-139 TEMP 2-166
parameters 2-120 models
row/matrix ratio 3-138 BJTs 2-115
size limitation 3-137 BSIM LEVEL 13 2-116
MAX 2-105 BSIM2 LEVEL 39 2-116
MAX parameter 2-107, 2-118 capacitors 2-115
MAXAMP option 3-106 characterization 2-31
MAXFLD keyword 2-145 diode 2-115
JFETs 2-115
maximum value, measuring 2-105
magnetic core 2-115
MAXORD option 3-107
MOSFETs 2-115
MBYPASS option 3-37, 3-108 mutual inductors 2-115
MEASDGT option 3-109 names 2-115
MEASFAIL option 3-110 npn BJT 2-115
MEASOUT option 3-112 op-amps 2-115
MEASSORT option 3-111 optimization 2-115
.MEASURE command 2-91, 3-109, 3-112 plot 2-115
average measurements 2-96 private 2-142
average nodal voltage 2-105 protecting 2-142
expression 2-103 simulator access 2-78
propogation delay 2-92 types 2-115
measuring average values 2-105 models, diode 2-115
measuring derivatives 2-99 MODMONTE option 3-116
Mentor interface 3-113 MODSRH option 3-117
MENTOR option 3-113 Monte Carlo
MER keyword 2-22, 2-23, 2-26 AC analysis 2-6
messages DC analysis 2-28
See also errors, warnings time analysis 2-171
messages, pivot change 3-136 MONTE keyword 2-7, 2-172
METHOD option 3-114 MONTECON option 3-118
MIN 2-105 MSPICE simulator interface 3-113
MIN parameter 2-107 MU option 3-119
minimum value, measuring 2-105
MINVAL keyword 2-113 N
.MODEL command 2-114
namei 2-158, 2-159, 2-160
HSPICE version parameter 2-116
n-channel, MOSFET’s models 2-115
model name 2-115
negative conductance, logging 3-66
MODEL keyword 2-31
model parameters nested library calls 2-78
LEVEL 2-118 .NET comamnd 2-120
IN-8
network operating point
analysis 2-121 capacitance 3-38
filenames 2-24 .IC statement initialization 2-34, 2-68
network analysis 2-121 .NODESET statement initialization 2-122
NEWTOL option 3-120 restoring 2-82
Node Naming 1-4 solution 3-130
voltage table 2-125
NODE option 3-121
optimization
nodes
AC analysis 2-5
cross-reference table 3-121
algorithm 2-118
global versus local 2-64
DC analysis 2-28
printing 3-121
error function 2-94
.NODESET command 2-122, 3-51
iterations 2-118
DC operating point initialization 2-122
models 2-115
from .SAVE 2-146
time
NODESET keyword 2-147 analysis 2-171
node-to-element list 3-136 required 2-117
NOELCK option 3-122 optimization parameter, DIFSIZ 2-118
noise OPTIMIZE keyword 2-32
folding 2-145 .OPTION 2-126, 3-2
numerical 3-46 SEARCH 3-162
sampling 2-145
.OPTION ABSH 3-14
.NOISE command 2-123
.OPTION ABSI 3-15
NOMOD option 3-123
.OPTION ABSMOS 3-16
NONE keyword 2-125, 2-147
.OPTION ABSTOL 3-17
NOPAGE option 3-124
.OPTION ABSV 3-18
NOPIV option 3-125
.OPTION ABSVAR 3-19
NOTOP option 3-126
.OPTION ABSVDC 3-20
NOWARN option 3-127
.OPTION ACCT 3-20
npn BJT models 2-115
.OPTION ACCURATE 3-22
npoints 2-158, 2-159, 2-160
.OPTION ACOUT 3-23
NUMDGT option 3-128
.OPTION ALT999 3-22
numerical integration algorithms 3-114
.OPTION ALT9999 3-24
numerical noise 3-46, 3-83
.OPTION ALTCHK 3-25
NUMF keyword 2-145
.OPTION ARTIST 3-27, 3-144
NXX option 3-129
.OPTION ASPEC 3-26
.OPTION AUTOSTOP 3-28
O .OPTION BADCHR 3-29, 3-30
OCT keyword 2-8, 2-32, 2-173 .OPTION BIASFILE 3-31
OFF option 3-130 .OPTION BIAWARN 3-32
.OP command 2-124 .OPTION BINPRINT 3-33
op-amps model, names 2-115 .OPTION BKPSIZ 3-34
IN-9
.OPTION BRIEF 2-125, 3-2, 3-35, 3-104, .OPTION FAST 3-74
3-121, 3-129, 3-132 .OPTION FFTOUT 3-75
.OPTION BYPASS 3-36 .OPTION FS 3-76
.OPTION BYTOL 3-37 .OPTION FT 3-77
.OPTION CAPTAB 3-38 .OPTION GENK 3-78
.OPTION CDS 3-39 .OPTION GMAX 3-79
.OPTION CHGTOL 3-40 .OPTION GMIN 3-80
.OPTION CO 2-172, 2-177, 3-41 .OPTION GMINDC 3-81
for printout width 3-41 .OPTION GRAMP 3-82
.OPTION CONVERGE 3-42 .OPTION GSHUNT 3-83
.OPTION CPTIME 3-43 .OPTION H9007 3-84
.OPTION CSDF 3-44 .OPTION HIER_SCALE 3-85
.OPTION CSHDC 3-45 .OPTION ICSWEEP 3-86
.OPTION CSHUNT 3-46 .OPTION IMAX 3-87
.OPTION CVTOL 3-47 .OPTION IMIN 3-88
.OPTION D_IBIS 3-48 .OPTION INGOLD 3-89
.OPTION DCAP 3-49 .OPTION INTERP 3-90
.OPTION DCCAP 3-50 .OPTION ITL1 3-91
.OPTION DCFOR 3-51 .OPTION ITL2 3-92
.OPTION DCHOLD 3-52 .OPTION ITL3 3-93
.OPTION DCON 3-53 .OPTION ITL4 3-94
.OPTION DCSTEP 3-54 .OPTION ITL5 3-95
.OPTION DCTRAN 3-55 .OPTION ITLPTRAN 3-96
.OPTION DEFAD 3-56 .OPTION ITLPZ 3-97
.OPTION DEFAS 3-57 .OPTION ITRPRT 3-98
.OPTION DEFL 3-58 .OPTION KCLTEST 3-99
.OPTION DEFNRD 3-59 .OPTION KLIM 3-100
.OPTION DEFNRS 3-60 .OPTION LENNAM 3-101
.OPTION DEFPD 3-61 .OPTION LIMPTS 3-102
.OPTION DEFPS 3-62 .OPTION LIMTIM 3-103
.OPTION DEFW 3-63 .OPTION LIST 3-104
.OPTION DELMAX 3-64 .OPTION LVLTIM 3-105
.OPTION DI 3-65 .OPTION MAXAMP 3-106
.OPTION DIAGNOSTIC 3-66 .OPTION MAXORD 3-107
.OPTION DLENCSDF 3-67 .OPTION MBYPASS 3-108
.OPTION DV 3-68 .OPTION MEASDGT 3-109
.OPTION DVDT 3-69 .OPTION MEASFAIL 3-110
.OPTION DVTR 3-70 .OPTION MEASOUT 3-112
.OPTION EPSMIN 3-71 .OPTION MEASSORT 3-111
.OPTION EXPLI 3-72 .OPTION MENTOR 3-113
.OPTION EXPMAX 3-73
IN-10
.OPTION METHOD 3-114 .OPTION RMAX 3-157
.OPTION MODMONTE 3-116 .OPTION RMIN 3-158
.OPTION MODSRH 3-117 .OPTION SCALE 3-159
.OPTION MONTECON 3-118 .OPTION SCALM 3-160
.OPTION MU 3-119 .OPTION SDA 3-161
.OPTION NEWTOL 3-120 .OPTION SEARCH 3-162
.OPTION NODE 3-121 .OPTION SEED 3-163
.OPTION NOELCK 3-122 .OPTION SLOPETOL 3-164
.OPTION NOMOD 3-123 .OPTION SPARSE 3-165
.OPTION NOPAGE 3-124 .OPTION SPICE 3-166
.OPTION NOPIV 3-125 .OPTION STATFL 3-168
.OPTION NOTOP 3-126 .OPTION TIMERES 3-169
.OPTION NOWARN 3-127 .OPTION TNOM 3-170
.OPTION NUMDGT 3-128 .OPTION TRCON 3-171
.OPTION NXX 3-129 .OPTION TRTOL 3-173
.OPTION OFF 3-130 .OPTION UNWRAP 3-174
.OPTION OPTLST 3-131 .OPTION VERIFY 3-175
.OPTION OPTS 3-132 .OPTION VFLOOR 3-176
.OPTION PARHIER 3-133 .OPTION VNTOL 3-177
.OPTION PATHNUM 3-134 .OPTION WARNLIMIT 3-178
.OPTION PIVOT 3-135 .OPTION WL 3-179
.OPTION PIVREF 3-137 .OPTION XDTEMP 3-180
.OPTION PIVREL 3-138 .OPTION ZUKEN 3-182
.OPTION PIVTOL 3-139 OPTLST option 3-131
.OPTION PLIM 3-140 OPTS option 3-132
.OPTION POST 3-141 Opus 3-39, 3-161
.OPTION POST_VERSION 3-142 oscillation, eliminating 3-114
.OPTION PROBE 3-143 outer sweep 2-21
.OPTION PSF 3-144 Output 1-4
.OPTION PURETP 3-145 output
.OPTION PUTMEAS 3-146 data
.OPTION RELH 3-147 format 3-109, 3-144
limiting 3-90
.OPTION RELI 3-148
significant digits specification 3-128
.OPTION RELMOS 3-149
specifying 3-102
.OPTION RELQ 3-150 storing 3-112
.OPTION RELTOL 3-151 files
.OPTION RELV 3-152 reducing size of 3-178
.OPTION RELVAR 3-153 .MEASURE results 2-91
.OPTION RELVDC 3-154 plotting 2-134
.OPTION RESMIN 3-155 printing 2-136–2-140
IN-11
printout format 3-89 PIVOT option 3-135
variables PIVREF option 3-137
printing 3-98 PIVREL option 3-138
probing 2-141 PIVTOL option 3-136, 3-139
specifying significant digits for 3-128
.PKG command 2-132
ovari 2-158, 2-160
PLIM option 3-140
plot
P models 2-115
value calculation method 3-23
.PARAM command 2-127
.PLOT command 2-134
parameters
in .ALTER block 2-12
AC sweep 2-5
DC sweep 2-28 PLOT keyword 2-114
defaults 3-133 pnp BJT models 2-115
FROM 2-113 POI keyword 2-8, 2-32, 2-173
IC 2-34, 2-68 pole/zero analysis, maximum iterations 3-97
inheritance 3-133 polygon, defining 2-155
ITROPT optimization 2-118 POST_VERSION option 3-142
LEVEL 2-118 power operating point table 2-125
matrix 2-120 PP 2-105, 2-108
names 2-116
PP keyword 2-106, 2-107
simulator access 2-78
.PRINT command 2-136
skew, assigning 2-77
in .ALTER 2-12
UIC 2-35, 2-69
See also model parameters, optimization printing
parameters bisection data 3-131
PARHIER option 3-133 Broyden update data 3-131
Jacobian data 3-131
PARMIN optimization parameter 2-118
printout
path names 3-134
disabling 3-35, 3-129
path numbers, printing 3-134 suppressing 2-142
PATHNUM option 3-134 value calculation method 3-23
p-channel .PROBE command 2-141
JFETs models 2-115
PROBE option 3-143
MOSFET’s models 2-115
propogation delays
Peak 2-96
measuring 2-93
peak measurement 2-96 with .MEASURE 2-92
peak-to-peak value 2-108 .PROTECT command 2-142
measuring 2-105 protecting data 2-142
pivot
PSF option 3-144
algorithm, selecting 3-135
PURETP option 3-145
change message 3-136
reference 3-137 PUTMEAS option 3-146
.PZ command 2-143
IN-12
R SCALM option 3-160
Schmitt trigger example 2-30
reference temperature 2-166
SDA option 3-161
RELH option 3-147
SEARCH option 3-162
RELI option 3-99, 3-148
SEED option 3-163
RELIN optimization parameter 2-119
.SENS command 2-148
RELMOS option 3-16, 3-99, 3-149
Setup 1-4
RELOUT optimization parameter 2-119
.SHAPE command 2-150
RELQ option 3-150
Defining Circles 2-152
RELTOL option 3-40, 3-151
Defining Polygons 2-153
RELTOLoption 3-151 Defining Rectangles 2-151
RELV option 3-74, 3-108, 3-152 Defining Strip Polygons 2-155
RELVAR option 3-153 SIM2 distortion measure 2-42
RELVDC option 3-152, 3-154 simulation
resistance 3-155 accuracy 3-22, 3-105
RESMIN option 3-155 improvement 3-69
RESULTS keyword 2-32 multiple analyses, .ALTER statement 2-12
RIN keyword 2-121 multiple runs 2-51
Rise 2-92 reducing time 2-25, 3-28, 3-36, 3-69, 3-88,
3-93, 3-164, 3-173
rise and fall times 2-93
results
RISE keyword 2-100 plotting 2-134
RISETIME option 3-156 printing 2-136
RMAX option 3-157 specifying 2-91
RMIN option 3-158 title 2-169
RMS Simulation Runs 1-5
measurement 2-96 skew, parameters 2-77
used with .MEASURE 2-96 SLOPETOL option 3-164
RMS keyword 2-107 small-signal, DC sensitivity 2-148
ROUT keyword 2-121 source
row/matrix ratio 3-138 AC sweep 2-5
DC sweep 2-28
SPARSE option 3-165
S SPICE
S parameter, model type 2-115 compatibility 3-167
.SAMPLE 2-145 AC output 3-23
.SAMPLE statement 2-145 plot 3-140
sampling noise 2-145 SPICE option 3-166
.SAVE command 2-146 START keyword 2-173
SCALE option 3-159
IN-13
statements .NOISE 2-123
.AC 2-5 .OP 2-124
.ALIAS 2-9 .OPTION SEARCH 3-162
.ALTER 2-12, 2-39 .PARAM 2-127
alter block 1-1 .PKG 2-132
.BIASCHK 2-14 .PLOT 2-134
.CONNECT 2-17 .PRINT 2-136
.DATA 2-19 .PROBE 2-141
external file 2-19 .PROTECT 2-142
inline 2-19 .PZ 2-143
.DC 2-28, 2-31 .SAMPLE 2-145
.DCVOLT 2-34, 2-68 .SAVE 2-146
.DEL LIB 2-36 .SENS 2-148
.DISTO 2-40, 2-41 .SHAPE 2-150
.DOUT 2-43 .STIM 2-156
.EBD 2-45 .SUBCKT 2-162
.ELSE 2-47 .TEMP 2-165, 2-166
.ELSEIF 2-48 .TF 2-167
.END 2-50 .TITLE 2-169
.ENDDATA 2-52 .TRAN 2-170
.ENDIF 2-53 .UNPROTECT 2-175
.ENDL 2-54, 2-77, 2-78 .VEC 2-176
.ENDS 2-55, 2-56 .WIDTH 2-177
.EOM 2-56 STATFL option 3-168
.FFT 2-57 statistics, listing 3-21
.FOUR 2-60 .STIM command 2-156
.FSOPTIONS 2-62
subcircuit commands 1-5
.GLOBAL 2-64
subcircuits
.GRAPH 2-65
calling 2-84, 2-163
.IBIS 2-67
global versus local nodes 2-64
.IC 2-34, 2-68
names 2-85, 2-164
.IF 2-70
node numbers 2-85, 2-164
.INCLUDE 2-51, 2-72, 2-147
parameter 2-55, 2-56, 2-84, 2-85, 2-86,
.LAYERSTACK 2-73
2-163, 2-164
.LIB 2-75, 2-77
printing path numbers 3-134
nesting 2-78
test example 2-84, 2-162
.LOAD 2-81
.SUBCKT command 2-162
.MACRO 2-84
.MALIAS 2-87 sweep
.MATERIAL 2-89 data 2-21, 3-112
.MEASURE 2-91, 3-109, 3-112 frequency 2-6
inner 2-21
.MODEL 2-114
.NET 2-120 outer 2-21
.NODESET 2-122, 3-51 SWEEP keyword 2-8, 2-32, 2-173
IN-14
T TRCON option 3-171
TRIG keyword 2-93
target specification 2-93, 2-94
trigger specification 2-93, 2-94
TEMP
keyword 2-8, 2-32 TRTOL option 3-173
model parameter 2-166 TSTEP
.TEMP command 2-165 multiplier 3-157, 3-158
option 3-157, 3-158
temperature
AC sweep 2-5
DC sweep 2-28, 2-29
derating 2-166
U
reference 2-166 U Element, transmission line model 2-115
.TF command 2-167 UIC
keyword 2-173
time 2-125
parameter 2-35, 2-69
See also CPU time
.UNPROTECT command 2-175
TIMERES option 3-169
timestep UNWRAP option 3-174
algorithms 3-69
calculation for DVDT=3 3-76
changing size 3-150
V
control 3-76, 3-153, 3-173 .VEC command 2-176
internal 3-64 VERIFY option 3-175
maximum 3-87, 3-94, 3-157 version
minimum 3-88, 3-93, 3-158 H9007 compatibility 3-84
reversal 3-19 HSPICE 2-116
setting initial 3-64 Version Options 3-174
transient analysis algorithm 3-105 VFLOOR option 3-176
variation by HSPICE 3-64 Viewlogic graph data file 3-67
.TITLE command 2-169 VNTOL option 3-37, 3-74, 3-177
title for simulation 2-169 voltage
TNOM option 2-166, 3-170 error tolerance
TO keyword 2-106, 2-113 DC analysis 3-152, 3-154
TOL keyword 2-145 transient analysis 3-151
TOP keyword 2-147 initial conditions 2-34, 2-68
iteration-to-iteration change 3-68
.TRAN command 2-170
maximum change 3-19
transient analysis
minimum
Fourier analysis 2-60
DC analysis 3-20
initial conditions 2-34, 2-68
listing 3-176
number of iterations 3-95
transient analysis 3-18
TRAP algorithm operating point table 2-125
See trapezoidal integration
relative change, setting 3-153
trapezoidal integration tolerance
algorithm 3-105 BYTOL option 3-37
coefficient 3-119 MBYPASS multiplier 3-108
IN-15
value for BYPASS 3-37 WL option 3-179
VOLTAGE keyword 2-125 WSF output data 3-39, 3-161
W X
W Element transmission line model 2-115 XDTEMP option 3-180
warnings
limiting repetitions 3-178
misuse of VERSION parameter 2-116 Y
suppressing 3-127 YMAX parameter 2-113
WARNLIMIT option 3-178 YMIN parameter 2-113
WEIGHT keyword 2-107, 2-113
WHEN keyword 2-99
WHEN, using with .MEASURE 2-98
Z
.WIDTH command 2-177 ZUKEN option 3-182
IN-16