Product Documentation
Virtuoso ADE Explorer User Guide
Product Version IC23.1, November 2023

16


Working with HSPICE Simulator

This chapter decibels the interface used to specify the HSPICE simulator in Virtuoso ADE Explorer and how to specify the HSPICE simulator options.

Introduction to HSPICE Direct Simulator

The Virtuoso ADE Explorer contains a direct integration of the HSPICE simulator. ADE’s HSPICE integration (HspiceS) used to be based on the socket methodology, which required edit permissions to the schematic being simulated, and caused usage issues such as subcircuit name mapping. These restrictions have been lifted with the direct interface.

There are several advantages of the direct simulator integration approach over the socket simulator integration approach, namely:

To set hspiceD, choose Setup – Simulator. The Choosing Simulator -- ADE Explorer form appears. Select hspiceD simulator in this form.

The Virtuoso Analog Design Environment window displays with the hspiceD simulator selected:

Libraries

The following cells of the analogLib library are updated to contain HspiceD views. The HspiceD simInfo, CDF parameters and netlisting procedures have been added to all these analogLib cells. For more information, see Analog Librray Reference.

bcs

bvs

cap

cccs

ccvs

core

diode

iam

idc

iexp

ind

iopamp

ipulse

ipwl

ipwlf

npn

isffm

isin

ixfmr

nbsim

nbsim4

njfet

nmes

nmes4

nmos

nmos4

pbsim

pbsim4

pcapacitor

pdiode

pjfet

pmos

pmos4

pnp

presistor

res

schottky

vam

tline

u1wire

u2wire

u3wire

u4wire

u5wire

usernpn

userpnp

vccap

vccs

vcres

vcvs

vdc

vexp

vpulse

vpwl

vpwlf

vsffm

vsin

winding

xfmr

zener

iprobe

pinductor

mind

pmind

pvccs2

pvccs3

pvcvs

pvcvs2

pvcvs3

pvccs

HspiceD Features

The use model of the Analog Design Environment for the HspiceDirect simulator is similar to that of the Spectre Direct/Hspice Socket interface. Most of the options work in the same way with a few differences.

Model Libraries

Similar Model Library Setup form is applied for HSPICE simulator. You can enter model file names into the Model Library File field. The list box displays the list of model files to be included. You can also include an optional Section field. When the Section field for a particular model file is defined, the netlist contains the following statement:

.LIB “<modelLibraryFile>” <section>

When the Section field is not defined, the netlist will contain the statement,

.INCLUDE “<modelLibraryFile>”

For detailed information about the form, refer to the section Choosing Model Library Path.

Distributed Processing Support

The Distributed Processing mode is supported only for normal simulation and parametric analysis. For detailed information about Distributed Processing, refer to the Virtuoso Analog Distributed Processing Option User Guide.

Running Analyses

The Choosing Analyses form helps you to set up and run an analysis. This form is explained in details in the Setting up Analysis chapter of this book. Refer to this section for details about each analysis.

The analyses that are supported are: DC, Transient, AC, Noise and OP. To run an analysis, select it in the Choosing Analyses form. The form re-displays to show the fields that are required for the selected analysis.

Passing Command-Line Options

You can pass the command-line options using the userCmdLineOption option in the Environment Options form.

Alternatively, you can pass the command-line options using the userCmdLineOption environment variable in the .cdsinit file as follows:

envSetVal("hspiceD.envOpts" "userCmdLineOption" 'string "string value")

For example, to set multithreading to 3, you should set the userCmdLineOption environment variable as shown below:

envSetVal("hspiceD.envOpts" "userCmdLineOption" 'string “-mt 3”)

Specifying HSPICE Options

You can specify appropriate HSPICE simulator options using Simulation – Analog Options. These options can be used to modify various aspects of the simulation, including output types, accuracy, speed, and convergence.

The below form appears when you click All Options.

For details about the Analog Options, refer to HSPICE/SPICE Interface Reference.

Model Analysis Options

The Model Analysis Options have been grouped as follows:

DC Analysis Options

The DC Analysis Options have been grouped as follows:

Transient and AC Options

The Transient and AC Analysis Options have been grouped as follows:

Output Log

This displays the file hspice.out found under the psf directory. This is the file to which the HSPICE output is re-directed.

Convergence Aids

Click Convergence Aids – Node Set (.NODESET) to initialize specified nodal voltages for a DC operating point analysis. The.NODESET statement is used to correct convergence problems in a DC analysis. Setting nodes in the circuit to values that are close to the DC operating point solution enhances the convergence of the simulation. The Select Node Set form works in the same way as the Spectre Direct/HSPICE Socket interface. The netlist will contain the .NODESET statement line.

Click Convergence Aids – Initial Condition (.IC) or Convergence Aids – Force (.DCVOLT) to set the transient initial conditions. The initialization depends on whether the UIC parameter is included in the .TRAN analysis statement. If the UIC parameter is specified in the .TRAN statement, the HSPICE simulator does not calculate the initial DC operating point. Consequently, the transient analysis is entered directly.

The Select Initial Condition Set and the Select Force Node Set forms work in the same way as the Spectre Direct/Hspice Socket interface. The netlist contains the .IC and the .DCVOLT statement line, whichever the case may be.

Results

You can save, select, delete, restore, plot and print a set of simulation results using the Results menu.

The following menus have been removed from the Hspice Direct interface as the Hspice simulator does not write the specified data in the psf files:

In this form, select one of the following options to specify the output data you want to save:

Control Mapping of Nets

In HspiceD netlister, you can control mapping of gnd! nets by setting an environment variable as shown below:

envSetVal("hspiceD.envOpts" "mapGndNetToZero" 'boolean t)

The default value of this environment variable is t implying that by default, the hspiceD netlister maps gnd! nets to 0. On setting this variable to nil, the HspiceD netlister stops mapping gnd! nets to 0. You can set the variable to nil in .cdsinit file.

Setting up Reliability Option

To set up the reliability analysis options, choose Simulation – Reliability – Setup. The form appears. When you select HSPICE as simulator, the form displays two tabs – Basic and Advanced.

The Advanced tab shows the following fields:


Return to top
 ⠀
X