Pages

Thursday 13 July 2017

Spice Code for CMOS

DC Analysis

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

Simulation Result



Transient Analysis

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

Simulation Result

 

Sweep Analysis

m1 2 1 3 3 pmos w=w1 l=0.35u
m2 2 1 0 0 nmos w=10u l=0.35u
.param w1=20u
.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(1) V(2)
.end

Simulation Result

1 comment:

  1. what is m1 m2 m3 m4 in spice code pls tell me and pls give me the command for noise & how to convert the negative delay to positive

    ReplyDelete