spice example

15
Assignment 2 Submitted by Gaurav Saini 124070012

Upload: gaurav-saini

Post on 18-Apr-2015

36 views

Category:

Documents


1 download

DESCRIPTION

spice examples

TRANSCRIPT

Page 1: Spice Example

Assignment 2

Submitted byGaurav Saini124070012

Page 2: Spice Example

2.a). Program

DC analysis

ª

.include tsmc_spice_180nm.txt

ª

Mn 1 2 0 4 cmosn L=0.18u W=20u

ª

Vds 3 0 dc 50mVbs 4 0 dc 0Vgs 2 0 dc 1.8Vdummy 3 1 dc 0

ª

.dc Vgs 0 1.8 0.1*.control*run*plot i(Vdummy)*.endc.end

Page 3: Spice Example

Threshold Voltage is around 0.4 Volt.

Page 4: Spice Example

2.b). Program

DC analysis

ª

.include tsmc_spice_180nm.txt

ª

Mn 1 2 0 4 cmosn L=0.18u W=20u

ª

Vds 3 0 dc 1.8Vbs 4 0 dc 0Vgs 2 0 dc 1.8Vdummy 3 1 dc 0

ª

.dc Vgs 0 1.8 0.1*.control*run*plot i(Vdummy)*.endc.end

Page 5: Spice Example

There is no change in the value of threshold voltage.

Page 6: Spice Example

2.c.1). Program (comparison with 2.a)

DC analysis

ª

.include tsmc_spice_180nm.txt

ª

Mn 1 2 0 4 cmosn L=0.18u W=20u

ª

Vds 3 0 dc 50mVbs 4 0 dc -0.9Vgs 2 0 dc 1.8Vdummy 3 1 dc 0

ª

.dc Vgs 0 1.8 0.1*.control*run*plot i(Vdummy)*.endc.end

Page 7: Spice Example

Because of negative Vbs (body to source voltage), threshold voltage of the transistor increases. Hence according to the drain current formula, drain current decreases.

Page 8: Spice Example

2.c.2). Program (Comparison with 2.b)

DC analysis

ªª

.include tsmc_spice_180nm.txt

ª

Mn 1 2 0 4 cmosn L=0.18u W=20u

ª

Vds 3 0 dc 1.8Vbs 4 0 dc -0.9Vgs 2 0 dc 1.8Vdummy 3 1 dc 0

ª

.dc Vgs 0 1.8 0.1*.control*run*plot i(Vdummy)*.endc.end

Page 9: Spice Example

Same reason for decrease in current as was for 2.c.1.

Page 10: Spice Example

2.d) Program

DC analysis

ª

.include tsmc_spice_180nm.txt

ª

Mn 1 2 0 4 cmosn L=0.18u W=20u

ª

Vds 3 0 dc 1.8Vbs 4 0 dc 0Vgs 2 0 dc 1.8Vdummy 3 1 dc 0

ª

.dc Vds 0 1.8 0.1*.control*run*plot i(Vdummy)*.endc.end

Page 11: Spice Example

The positive slope when the device is in saturation is because of the finite resistance between the drain to source terminal. This is also called channel length modulation effect. Because of small channel length current in saturation region depends on the drain to source voltage.

Page 12: Spice Example

3.a). Program

DC analysis

ª

.include tsmc_spice_180nm.txt

ª

Mn1 1 2 3 0 cmosn L=0.18u W=1.8uMn2 3 2 0 0 cmosn L=0.18u W=1.8u

ª

Vds 4 0 dc 1.8Vgs 2 0 dc 1.8Vdummy 4 1 dc 0

ª

.dc Vds 0 1.8 0.1*.control*run*plot i(Vdummy)*.endc.end

Page 13: Spice Example
Page 14: Spice Example

3.b). Program

DC analysis

ª

.include tsmc_spice_180nm.txt

ª

Mn 1 2 0 0 cmosn L=0.36u W=1.8u

ª

Vds 3 0 dc 1.8Vgs 2 0 dc 1.8Vdummy 3 1 dc 0

ª

.dc Vds 0 1.8 0.1*.control*run*plot i(Vdummy)*.endc.end

Page 15: Spice Example

Channel length modulation effect is less when we use channel length of larger size. In 3.b, length of channel is twice as compared to the transistor channel length in 3.a. So, channel length modulation effect is more in 3.a. Because of this effect, current in saturation region depends on the drain to source voltage. Hence, Id v/s Vds curve will have some finite slope which is also clearly visible in the output waveform. In case of 3.b, Id v/s Vds slope in saturation region is less.