No BSD License  

Highlights from
Import SPICE Raw File

2.25

2.2 | 4 ratings Rate this file 10 Downloads (last 30 days) File Size: 4.96 KB File ID: #8237

Import SPICE Raw File

by Brett Bymaster

 

08 Aug 2005 (Updated 09 Aug 2005)

Import a SPICE raw file into MATLAB.

| Watch this File

File Information
Description

There are two functions enclosed that can quickly read the raw file output of SPICE. This can be used to dump the entire contents of a SPICE simulation into MATLAB for further processing. This version works in a similar fashion to a prior post (rawspice6.m), but reads files an order of magnitude faster. This function can read files of > 30Megs in less than 30 seconds.

The first function imports the data into a structure where each node is indexed by its node name (ReadRawSpice). The second function imports the data into a cell where each node name is indexed by a number (ReadRawSpice2). Otherwise, the two functions are identical. Both are in the same .m file, so the user should separate them out after download.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
rawspice6.m

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
18 Sep 2006 rajesh kumar  
04 Dec 2006 Scott Miller

This cannot import PSPICE .dat files from Cadence, 10.3.0 p001. The format is apparently proprietary, rather than the ASCII expected by ReadRawSpice.

04 Dec 2006 Scott Miller

The proprietary format for PSPICE from Cadence, 10.3.0 p001, can be avoided by using the File..Export..text option, rather than the probe format.

19 Dec 2006 Alan Curtis

Good idea; but the line

s=importdata(filename);

does not create s.textdata or s.data variables in MATLAB Version 7.3.0.1266 (R2006b)

22 May 2007 Francesco Riganti Fulginei

it's refered to a particular spice version...

27 May 2008 seenivasan sundararajan

More information are needed along with the file.Means where to store the file etc..

03 Feb 2012 Stefan

You could try the SignalStorageToolbox (http://homes.esat.kuleuven.be/~scoseman/toolboxes/SignalStorageToolbox/index.html), which supports (specific output formats of) DC and TRANSIENT simulations of at least hspice, eldo, spectre, ultrasim and aps.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Brett Bymaster 22 Oct 2008 07:55:25
data export Brett Bymaster 22 Oct 2008 07:55:25
spice raw file Brett Bymaster 22 Oct 2008 07:55:25
import Brett Bymaster 22 Oct 2008 07:55:25
export Brett Bymaster 22 Oct 2008 07:55:25
utilities Brett Bymaster 22 Oct 2008 07:55:25
data Brett Bymaster 22 Oct 2008 07:55:25

Contact us at files@mathworks.com