Look in <MMSIMinstDir>/tools/spectre/examples/SpectreRF_workshop/SpectreRF_AN and you'll see MatlabWorkshop.pdf and MatlabAN.pdf which explain how to use it.
Broadly speaking though, you'll need this:
Code:setenv MATLABPATH `cds_root spectre`/tools/spectre/matlab/64bit
setenv LD_LIBRARY_PATH `cds_root spectre`/tools/dfII/lib:`cds_root spectre`/tools/lib/64bit:$LD_LIBRARY_PATH
before launching matlab. The above settings are for if you're running 64 bit matlab; if 32 bit you'd omit the "/64bit" part from the MATLABPATH and LD_LIBRARY_PATH
This ensures that the MATLABPATH is set up OK, and the LD_LIBRARY_PATH contains
the right paths such that the toolbox can load its shared libraries.
The "cds_srr" command (part of the "Spectre Toolbox") can be used to
read all sorts of data from PSF - essentially you call it with:
cds_srr('/path/to/psf/dir'[,'datasetname'[,'signalName']])
and it returns:
1. With 1 arg - the datasets available (same as what you see in results
browser)
2. With 2 args - the signals in that dataset
3. With 3 args - the data for that signal. This may be a record with (say)
.V and .time elements, or it may be a matrix if there was some sweeps
The toolbox comes with a bunch of other higher level functions for plotting RF results - these are covered in the app note and workshop PDFs that I mention above.
You don't have to run spectre in any special way to be able to read the results - this reader can read PSF or SST2 simulation results.
Regards,
Andrew.