SmartSpice Integration into the Viewlogic Framework

Introduction

The SmartSpice - Viewlogic integration allows the replacement of HSpiceTM by SmartSpice for analog simulation in the VIEWlogic framework. It uses VIEWlogic's ViewScript language to add the option of using SmartSpice in the ViewDraw Schematic editor and the SpiceLink netlister. The integration can be made on an installation wide basis by changing the master copy of VIEWlogic or on a per user basis by installing the integration elsewhere and changing the environment of users.

 

Main features

The correct installation of the SmartSpice - VIEWlogic integration should result in the following changes to the VIEWlogic software.

1) The Power view cockpit has an extra toolbox called "Silvaco" - This groups together the set of VIEWlogic tools that you are needed for Analog simulation, and adds a button to allow SmartSpice to be run directly from the VIEWlogic framework.
 
2) ViewDraw has an extra menu, called "SmartSpice" - This provides an easy to use interface to SmartSpice to netlist the Schematic, add simulation parameters and start the simulation, all without leaving ViewDraw.
 
3) The Analog Netlist utility (SpiceLink) has an extra button marked "SmartSpice" - For those that are used to using HSpiceTM in the VIEWlogic framework, this provides a button that will allow users to continue to use the same work process and just swap SmartSpice where HSpiceTM was previously used.

 

Example Usage

After edits to the schematic are written, the netlister must be run before any simulation can be done. To do this select "Netlist" from the SmartSpice menu in ViewDraw.

A dialog will appear, it should have the correct name of the project in the text field, and also gives the option of "Hierarchical" or "Flat" netlisting.

Make sure the project name is correct, if not change it. Choose Flat or Hierarchical and press OK.

 

1. Dialog showing netlist options.

 

After the netlist has been completed, simulation parameters can be added. Users can add parameters for AC, DC, Distortion and Transient analysis from this menu. When an analysis type is selected from the menu, an appropriate dialog will appear and allow the user to enter the values for the parameters. More than one type of analysis can be done for each simulation.

Next select "simulate" from the SmartSpice menu. The following dialog will be displayed:

 

2. Dialog showing simulation options.

 

Again check that the project name is correct, if not correct it. The option of running SmartSpice interactively or in batch mode is then selected. Unless there are problems with the simulation it is best to run in batch mode as SmartSpice will automatically create all the output files with the correct extensions.

Users can select nets of interest and to print information about those nets by selecting on the schematic and choosing the "Selected" option on the simulate dialog. Choosing "save all" will result in all of the vectors that SmartSpice calculates to be saved in the output files.

The simulation will run and the output from the simulation is presented in a popup dialogbox. When the simulation is finished the log can be inspected.

The next stage is to startup ViewTrace. When one of the files generated by the simulation is opened, one file is generated by each type of analysis, the output traces of the vectors that were chosen to save will be seen.

The values for the simulation can be back annotated into the schematic by selecting the "back annotation" option. To do this in VIEWlogic select "Annotate" from the Change menu and press the check box. Now select a trace to follow, then use the middle mouse button to select a time. The values from the trace will then appear on the schematic.

Users can cross probe from the schematic to ViewTrace. To do this highlight the net that you are interested in, within ViewTrace choose FromSchem... in the signal menu and the select show. The trace for the selected net will be displayed.

 

3. Simulation output in Viewtrace.

 

Figure 4. Viewdraw schematic with simulation values back-annotated.