NGSPICE example (netlist and electronic circuit)

Posted by Mithila



Electronic circuit for the below programme: 
---------------------------------------------------------
Implement a function with CMOS logic using ngspice:

f = (ABC+DE+F) ´
  = (A´+B´+C´) • (D´+E´) • (F´)


The netlist (spice programme) is as follows:


f.cir
.include model 025
vdd 1 0 dc
va 2 0 (0 2 2ns 2ns 2ns 50ns 100ns)
vb 3 0 (0 2 2ns 2ns 2ns 50ns 100ns)
vc 4 0 (0 2 2ns 2ns 2ns 50ns 100ns)
vd 5 0 (0 2 2ns 2ns 2ns 50ns 100ns)
ve 6 0 (0 2 2ns 2ns 2ns 50ns 100ns)
vf 7 0 (0 2 2ns 2ns 2ns 50ns 100ns)
mp1 8 2 1 1 cmosp w=2um L=0.5um
mp2 8 3 1 1 cmosp w=2um L=0.5um
mp3 8 4 1 1 cmosp w=2um L=0.5um
mp4 9 5 8 1 cmosp w=2um L=0.5um
mp5 9 6 8 1 cmosp w=2um L=0.5um
mp6 10 7 9 1 cmosp w=2um L=0.5um
mn1 10 2 11 0 cmosn w=2um L=0.5um
mn2 11 3 12 0 cmosn w=2um L=0.5um
mn3 12 4 0 0 cmosn w=2um L=0.5um
mn4 10 5 13 0 cmosn w=2um L=0.5um
mn5 13 6 0 0 cmosn w=2um L=0.5um
mn6 10 7 0 0 cmosn w=2um L=0.5um
.dc va 0 2 0.05
.tran 10ns 500ns
.end


0 comments:

Post a Comment