eCircuit  Center

 Running SPICE


About SPICE | SPICE Basics | Running SPICE | CIRCUIT COLLECTION | SPICE Commands | SPICE Demos and Downloads
About Us | Contact Us | Home
 

TopSPice Simulation - Step by Step

PSPICE Simulation - Step by Step

Switcher CAD III Simulation - Step by Step

 

 

 

 

TOPSPICE SIMULATION – STEP BY STEP

TopSpice from Penzar is a powerful and easy-to-use SPICE program (demo version) you can download for free (See Demos and Downloads). Here’s how to run a simulation for the SPICE file named LPFILTER1.CIR, plot various results and modify the circuit.

DOWNLOADING THE CIRCUIT FILE.

1. From the Circuit Collection page on this site, click on a circuit such as  RC Low-Pass Filter. You’ll see a schematic along with circuit and simulation notes that you can print out.

2. Download the SPICE file LPFILTER1.CIR by clicking on download the SPICE file on the web page.

RUNNING A SIMULATION. 

1. Start the TopSpice demo program.

2. To open a SPICE circuit file select Open Saved SPICE (text) File. Move to folder where you saved the SPICE circuit (LPFILTER.CIR), click on the filename, then click on Open. The SPICE circuit file will appear in a text editor window.

3. Select Analysis > Run Simulation or click the simulation icon (traffic light) along the top toolbar.

PLOTTING VOLTAGES AND CURRENTS.

1. TopSpice will automatically open a window to view your results. Select Transient (time) or AC (frequency) to view the waveforms for the simple low-pass filter.

2. TopSpice automatically plots the waveforms specified by your PRINT statements. For example, “.PRINT TRAN V(2)” plots the voltage at node 2 for transient (time) analysis.

3. You can add additional waveforms by selecting Trace, Add. Finally, click one of the voltages or currents in the variable list box and then click Add.

 NOTE   The PRINT statement also generates a numerical table of V(2) in a text file with the “.out” extension. You can view this file by selecting View > Output File from the menu. This output text file is available from most SPICE simulators and can be viewed with a simple text editor like Notepad. The PLOT statements creates a line-printer style plot in the text file using ascii text characters.

 MODIFYING YOUR CIRCUIT.

1. In the text editor’s window of TopSpice, modify component values or change analysis commands in your SPICE circuit file.

2. Save the file by selecting File > Save.

3. Now you can run a new simulation by clicking on the simulation icon (traffic light). It’s easy to change a component’s value and quickly see the effect on your circuit.

 Top ↑ 

 

PSPICE SIMULATION – STEP BY STEP

PSPICE by OrCAD is one of the most popular circuit simulators. You can download a free demo version from the OrCAD (See Demos and Downloads). Here’s how to run a simulation for the SPICE file named LPFILTER1.CIR, plot various results and modify the circuit.  

DOWNLOADING THE CIRCUIT FILE.

1. From the Circuit Collection page on this site, click on a circuit such as  RC Low-Pass Filter. You’ll see a schematic along with circuit and simulation notes that you can print out.

2. Download the SPICE file LPFILTER1.CIR by clicking on download the SPICE file on the web page.

RUNNING A SIMULATION. 

1. Start the PSPICE AD LITE demo program.

2. To open a SPICE circuit file select Open > File. Drop down the Files of Type box and select Circuit Files (*.cir) to make the *.cir files visible. Move to folder where you saved your SPICE circuit (LPFILTER.CIR), click on the filename, then click on Open. Your SPICE circuit file will appear in a text editor window.

3. Select Simulation > Run or click the simulation icon (blue arrow) along the top toolbar.

PLOTTING VOLTAGES AND CURRENTS.

1. PSPICE  will automatically open a window to view your results. Select Transient (time) or AC (frequency) to view the waveforms for the simple low-pass filter.

2. To plot waveforms select Trace > Add Trace. In the Trace expression: box type a voltage or current such as V(2) or I(R1) and then OK. Or you can click on the available output variables in the selection box and then OK.

 NOTE   The PRINT statement also generates a numerical table of V(2) in a text file with the “.out” extension. You can view this file by selecting View > Output File from the menu. This output text file is available from most SPICE simulators and can be viewed with a simple text editor like Notepad. The PLOT statements creates a line-printer style plot in the text file using ascii text characters.

 MODIFYING YOUR CIRCUIT.

1. In the text editor’s window of PSPICE, modify component values or change analysis commands in your SPICE circuit file.

2. Save the file by selecting File > Save.

3. Now you can run a new simulation by clicking on the simulation icon (blue arrow). It’s easy to change a component’s value and quickly see the effect on your circuit.

Top ↑ 

 

SwitcherCAD III SIMULATION – STEP BY STEP

SwitcherCAD III from Linear Technology is the only free version with no component limit. You can download a free demo version (See Demos and Downloads). Here’s how to run a simulation for the SPICE file named LPFILTER1.CIR, plot various results and modify the circuit.  

DOWNLOADING THE CIRCUIT FILE.

1. From the Circuit Collection page on this site, click on a circuit such as  RC Low-Pass Filter. You’ll see a schematic along with circuit and simulation notes that you can print out.

2. Download the SPICE file LPFILTER1.CIR by clicking on download the SPICE file on the web page.

RUNNING A SIMULATION. 

1. Start the SwictherCAD III program.

2. To open a SPICE circuit file select Open > File. Drop down the Files of Type box and select Files of Type (*.cir) to make the *.cir files visible. Move to folder where you saved your SPICE circuit (LPFILTER.CIR), click on the filename, then click on Open. Your SPICE circuit file will appear in a text editor window.

3. Select Simulate > Run or click the simulation icon (running man) on the top toolbar.

 NOTE   You can specify an .AC or .TRAN Analysis in the netlist but not both simulatenously. If both exist in your netlist, just place a "*" before one of the statements to tell SPICE to ignore the line.

PLOTTING VOLTAGES AND CURRENTS.

1. SwitcherCAD III automatically opens a window for you to select which waveforms to plot. The PRINT statement tells SPICE which waveforms to make available. Excluding the PRINT statement makes all of the voltages and currents available for selection.

2. To add waveforms select Plot Settings > Add Traces. Click on one or more of the voltages or currents available and then click OK.

 MODIFYING YOUR CIRCUIT.

1. In the text editor’s window, modify component values or change analysis commands in your SPICE circuit file.

2. Save the file by selecting File > Save or can click the simulation icon (running man) to save and run a new simulation.

Top ↑ 

 

 

About SPICE | SPICE Basics | Running SPICE | CIRCUIT COLLECTION | SPICE Commands
SPICE Demos and Downloads | About Us | Contact Us | Home
 

© 2002 eCircuit Center