You are on page 1of 26

Spice

CREATE / OPEN A SPICE FILE:

Step 1:Create a new directory in the home folder with the following commands path: [root@localhost root]# cd .. [root@localhost /]# cd home [root@localhost home]# mkdir dirname [root@localhost home]# cd dirname step 2:To source the cshrc file the kernel should be changed to c-shell [root@localhost dirname]# csh step 3:To source the license file for spice simulation using the command source /home/cshrc/ams.cshrc step 4: create a new file using the vi editor. Save the file with .cir extension. [root@localhost dirname]# vi inv.cir

SAMPLE PROGRAM:
**TITLE :INVERTER VDD 1 0 DC 5V M1 3 2 1 1 P W=3U L=1U M2 3 2 0 0 N W=1U L=1U VIN 2 0 PULSE(0V 5V 0 1NS 1NS 20NS 40NS) .TRAN 1NS 100NS .PLOT TRAN V(2) V(3) .lib /home/adk3_0/technology/accusim/ami05.mod .end step 5: Press esc and then shift + : then type wq!( write and quit) (Or) q!(only quit) SIMULATION: Eldo is a simulator tool which converts .cir file into output file with .cou extension. To do the simulation use the following command: [root@localhost dirname]# eldo inv.cir cou

TO VIEW WAVEFORM:
Xelga and Ezwave are the tools used to view the output waveform. Ezwave tool is advanced when compared to xelga tool. To view the output waveform use the following command: In xelga: [root@localhost dirname]# xelga inv.cou (OR ) In ezwave: [root@localhost dirname]# ezwave inv.wdb

Open window in Linux environment

Vin Different rise time & fall time

Output wave form

Out-put backround with white

To view all files in specific directory

All files

AND gate using [ NAND , NOT as sub circuits]

NOT sub circuit

NAND Sub-circuit

AND Gate output

Copy to pen-drive

You might also like