Pages

Wednesday 9 August 2017

Spice Code for N_MOS Inverter

DC Analysis

m1   2 1 0 0 nmos w=50u l=0.35u
m2   3 3 2 0 nmos w=50u l=0.35u
.include "C:\Users\Dell\Desktop\spice\tsmc035.md"
vdd   3 0 3v
vin 1 0 3v
.dc vin 0 3v 0.05v
.print v(2) v(1)
.end

Simulation Result

Transient Analysis

m1   2 1 0 0 nmos w=50u l=0.35u
m2   3 3 2 0 nmos w=50u l=0.35u
.include "C:\Users\Dell\Desktop\spice\tsmc035.md"
vdd 3 0 3v
vin 2 0 dc 0 pulse (3 0 0 0.1u 0.1u 40u 80u)
.tran 10u 80u 20u
.print v(2) v(1)
.end

Simulation Result

 

Sweep Analysis

m1   2 1 0 0 nmos w=w1 l=0.35u
m2   3 3 2 0 nmos w=50u l=0.35u
.param w1= 30u
.include "C:\Users\Dell\Desktop\spice\tsmc035.md"
vdd 3 0 3v
vin 1 0 3v
.dc vin 0 3v 0.05v sweep w1 5u 20u 5u
.print V(2) V(1)
.end

Simulation Result

 

No comments:

Post a Comment