Interfaces to SPICE / PSpice

Schematics Import

Analog Insydes provides functions for importing circuit schematics into your Mathematica notebooks for better documentation of your circuit analysis tasks. The Analog Insydes function DXFGraphics displays a DXF file as a native Mathematica graphics object. Consider the following example where the file "Buffer.dxf" was produced by the DXF export function of MicroSim's Schematics editor.

DXFGraphics[
"Buffer.dxf",  
      TextStyle  -> 
         {FontColor  ->  RGBColor[1, 0, 0], 
          FontWeight  ->  Bold}, 
      ColorList  ->  {RGBColor[0, 0, 0]}
];

Netlist Reader

For circuit analysis and design tasks which combine symbolic and numerical calculations Analog Insydes features interfaces to the circuit simulator SPICE. Instead of time-consuming manual netlist input SPICE circuit descriptions can be converted automatically to the Analog Insydes format by applying the Analog Insydes function ReadNetlist. Additionally, operating-point information can be extracted from the simulator output file. The example below illustrates the import of the SPICE netlist file "Buffer.net".

\(Buffer = ReadNetlist["Buffer.net", Simulator -> "PSpice"]; 
    
DisplayForm\ @\ Buffer\)

Simulation Data Import

Analog Insydes supports import of simulation data generated by PSpice or HSPICE, thus allowing to use Mathematica's graphical visualization facilities for postprocessing and displaying simulation results. The example below demonstrates the import of the PSpice simulation output file "Buffer.csd" using the Analog Insydes function ReadSimulationData. In addition, an example for further postprocessing of the simulation results is shown.

BufferDatTran  =  
      ReadSimulationData["Buffer.csd", Simulator -> "PSpice"]

{VOUT, IIN, IVDD} = {"V(VOUT)", "I(VIN)", "I(VDD)"} /. 
        First@BufferDatTran;

TransientPlot[VOUT[t], {t, 0. , 1.*^-5}];

\(\(ParametricPlot3D[
      
{IIN[t], VOUT[t], IVDD[t], Hue[t/\((1.*^-5)\)]}, 
      
{t, 1.*^-6, 1.*^-5}\ , 
      
AxesLabel\  -> 
        \ {\ \*""\!\(I\_IN\)"", \*""\!\(V\_OUT\)"", 
          \*""\!\(I\_VDD\)""}, 
      TextStyle\  -> 
        \ {FontSize -> 15, FontWeight\  -> \ Bold}
          
]; \)\)

Initialization Cells

Read Mathematica package Analog Insydes:

Off[General::spell,  General::spell1];

\($NotebookDirectory = 
      ToFileName@
        First["FileName" /. NotebookInformation[EvaluationNotebook[]]]; 

    PrependTo[$Path, $NotebookDirectory]; \)

<< AnalogInsydes`;

Off[ReadNetlist::mod];

SetDirectory[ToFileName[{$NotebookDirectory, "PSpice"}]];

\(SetOptions[{DXFGraphics, TransientPlot, ParametricPlot3D}, 
      Background -> RGBColor[1, 1, 1]]; 

    SetOptions[ParametricPlot3D, BoxRatios\  -> \ {1.0, \ 1.0, \ 1.0}, 
      Ticks -> None, ViewPoint -> {3, \(-3\), 2. }]; \)

Copyright © 1998-2000 by ITWM e.V.

Analog Insydes
ITWM - Institut für Techno- und Wirtschaftsmathematik e.V.
Gottlieb-Daimler-Str.
D-67663 Kaiserslautern, Germany

Analog Insydes is a trademark of ITWM.
Mathematica is a registered trademark of Wolfram Research, Inc.
All other product names are trademarks of their respective owners.