HSPICE Toolbox for MATLAB
Michael Perrott
http://www-mtl.mit.edu/∼perrott
Copyright 1999 by Silicon Laboratories, Inc.
3 June 2003
Note: This software is distributed under the terms of the
GNU Public License (see the included COPYING file for more details),
and comes with no warranty or support.
The Hspice toolbox for Matlab is a collection of Matlab routines that allow you to
manipulate and view signals generated by Hspice simulations. The primary routine is a mex
program called loadsig that reads binary output files generated by Hspice transient, DC,
and AC sweeps into Matlab. The remaining routines are used to extract particular signals
and view them.
We will begin this document by explaining how to include the Hspice toolbox in your
Matlab session. A list of each of the current functions will then be presented. Finally, we
will provide examples of using these routines to view and postprocess signals from Hspice
output files.
Setup
To use the Hspice toolbox, simply place the included files into a directory of your choice,
and then add that directory to your Matlab path. For example, inclusion of the path
’/home/user/matlab/bin’ in Matlab can be done by adding the line
addpath(’/home/user/matlab/bin’)
to the file startup.m located in your home directory. In addition, you can specify the plot
background to be black (similar to the look of Awaves) by adding another line to startup.m:
colordef none;
1
Courtesy of Michael Perrott. Used with permission
评论1