Академический Документы
Профессиональный Документы
Культура Документы
Arjunasor Syiem
Roll #: MTV/EC14/
Department of Electronics and Communication Engineering
North-Eastern Hill University(NEHU)
Shillong - 793 022
Meghalaya
Name : ARJUNASOR SYIEM
Roll #: MTV/EC14/01
Laboratory Report
ECV - 917 Circuit Simulation Laboratory
Department of ECE, NEHU, Shillong - 793 022
List of Experiments
1 Experiment - 1 3
1.1 CMOS inveter[NOT] logic gate . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 SPICE Circuit Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Experiment - 2 6
2.1 Simulation of 2-input CMOS NAND gate . . . . . . . . . . . . . . . . . . . . . . 6
2.1.1 SPICE Circuit Description . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 3-input CMOS NAND gate circuit . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.1 SPICE deck for this 3-input NAND gate . . . . . . . . . . . . . . . . . . . 11
2.2.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3 4-input CMOS NAND gate circuit . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3.1 SPICE deck for this 4-input NAND gate . . . . . . . . . . . . . . . . . . . 14
2.3.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3 Experiment - 3 16
3.1 2-input CMOS AND gate circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.1.1 SPICE deck for the 2-input CMOS AND gate . . . . . . . . . . . . . . . . 16
3.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2 3-input CMOS AND gate circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.2.1 SPICE deck for the 3-input CMOS AND gate . . . . . . . . . . . . . . . . 18
3.2.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4 Experiment - 4 20
4.1 2-input CMOS NOR gate circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.1.1 SPICE deck for the 2-input CMOS NOR gate . . . . . . . . . . . . . . . . 20
4.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2 3-input CMOS NOR gate circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.2.1 SPICE deck for the 3-input CMOS NOR gate . . . . . . . . . . . . . . . . 22
4.2.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5 Experiment - 5 24
5.1 2-input CMOS OR gate circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.1.1 SPICE deck for the 2-input CMOS OR gate . . . . . . . . . . . . . . . . . 24
5.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.2 3-input CMOS OR gate circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5.2.1 SPICE deck for the 3-input OR gate . . . . . . . . . . . . . . . . . . . . . 26
5.2.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2060720-02#201400808LJS 1 / 36
Roll #: MTV/EC14/01 ECV - 917 Circuit Simulation Lab. Date: / /2014
6 Experiment - 6 28
6.1 Implementation of combination logic: Y = AB + C . . . . . . . . . . . . . . . . 28
6.1.1 SPICE deck for the 3-input combinational logic circuit . . . . . . . . . . . 28
6.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
7 Experiment - 7 29
7.1 Implementation of combination logic: Y = (A + B).C = A + B + C . . . . . . . 29
7.1.1 SPICE deck for the 3-input combinational logic circuit . . . . . . . . . . . 29
7.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
8 Experiment - 8 30
8.1 Implementation of combination logic: Y = AB + C . . . . . . . . . . . . . . . . . 30
8.1.1 SPICE deck for the 3-input combinational logic circuit . . . . . . . . . . . 30
8.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
9 Experiment - 9 31
9.1 Implementation of combination logic: Y = (A + B).C = A.B.C . . . . . . . . . 31
9.1.1 SPICE deck for the 3-input combinational logic circuit . . . . . . . . . . . 31
9.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
10 Experiment - 10 32
10.1 Implementation of combination logic: Y = AB + C . . . . . . . . . . . . . . . . . 32
10.1.1 SPICE deck for the 3-input combinational logic circuit . . . . . . . . . . . 32
10.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
11 Experiment - 11 33
11.1 Implementation of complex CMOS logic gate: Y = AB + C . . . . . . . . . . . . 33
11.1.1 SPICE deck for the 3-input combinational logic circuit . . . . . . . . . . . 33
11.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
12 Experiment - 12 34
12.1 Implementation of complex CMOS logic gate: Y = (A + B).C . . . . . . . . . . . 34
12.1.1 SPICE deck for the 3-input combinational logic circuit . . . . . . . . . . . 34
12.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
13 Experiment - 13 35
13.1 Implementation of complex CMOS logic gate: Y = AB + CD . . . . . . . . . . 35
13.1.1 SPICE deck for the 3-input combinational logic circuit . . . . . . . . . . . 35
13.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
14 Experiment - 14 36
14.1 Implementation of complex CMOS logic gate: Y = AB + CD . . . . . . . . . . 36
14.1.1 SPICE deck for the 3-input combinational logic circuit . . . . . . . . . . . 36
14.1.2 Observation and Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Note:
The transistor technology used in the experiments is 0.8 technology with the standard basic
CMOS inverter circuit of (W/L)n = (W/L)p = 2 : 1 unless stated otherwise.
Experiment - 1
M2 2/1
A Y =A M1 2/1
Fig. 1.1: CMOS inverter: (a) logic symbol, (b) inverter circuit, and (c) inverter
circuit for SPICE circuit description.
(a)
(b)
1.3.2 Output of the SPICE CMOS inverter deck for various input conditions
Check the output of the circuit for
If we want automatic display of transient analysis graph of branch voltages, for example-
input voltage and output voltage, then the .PLOT card may be included in the SPICE
deck. Hence, the above program is rewritten as
A Y =A A Y =A A Y =A
Fig. 1.3: CMOS inverter for different (W/L)p and (W/L)n ratios.
Experiment - 2
VDD
A
A
Y
B
B
The 2-input NAND gate circuit of Fig. 2.1(b) is redrawn to emphasize nodes, reference node
and transistor labels as shown in Fig. 2.3. Transistor sizing is then done based on the reference
inverter given in Fig. 2.2 in which L = 0.8m and W = 1.6m.
VDD
VDD
5
2/1
M4 M3
4
Y
A Y =A
A M2
2
3
2/1
B M1
1
0
Fig. 2.2: Reference CMOS Inverter. Fig. 2.3: Redrawn circuit with reference node
chosen and transistors labeled on the circuit of
Fig. 2.1(b).
Transistor sizing of the cmos circuit of Fig. 2.3: For the pull-up network, it is found
that all pmos transistors are in parallel. When any one of the transistor, either M 3 or M 4, is
active, the output terminal, Y, will be pulled-up to VDD , that is, the pull-up network (PUN)
shall be able to provide a charging current at least equal to that of a pmos transistor of the
basic inverter. Therefore, M 3 and M 4 will have the same transistor ratio as that of the pmos
of the basic inverter circuit, that is, W/L = 2/1.
As for transistors in the pull-down network (PDN), all of them are in series. Therefore, the worst
case scenario is obtained, that is, the lowest output current which is equal to that of the basic
inverter is resulted, when all nmos in PDN are active. Hence, the equivalent series resistance,
Reqv. , of PDN of Fig. 2.3 is obtained by adding on-resistance of each nmos transistor as
Assuming that all nmos transistors in the PDN have the equal transistor ratio, then, for conve-
nience, it may be denoted as (W/L)n . Thus,
1 1 1 2
= + =
(W/L)eqv. (W/L)n (W/L)n (W/L)n
That is,
W W
=2
L n L eqv.
Hence,
W 2 4
=2 = =4:1
L n 1 1
that is, M 1 and M 2 will have the transistor ratio of W : L = 4 : 1. Complete circuit with
proper transistor sizing is then shown below in Fig. 2.4.
VDD
M4 2/1 M3 2/1
4
Y
A M2 4/1
2
3
B M1 4/1
1
0
(a)
(b)
Fig. 2.5: Output-voltage versus input-voltage of a 2-input CMOS NAND gate with
LEVEL2 device model
2.1.2.2 With various duty cycles of the input PULSEs in the SPICE deck of sub-
section 2.1.1
- When i/p A and B have 30% and 70% duty cycles respectively, input-output waveform
is
2.1.2.3 For different Device Parameters in the SPICE deck of subsection 2.1.1
Let us consider the channel length of each transistor as L = 0.25m while other
parameters like AD=3.2P AS=3.2P PD=5.2U AD=5.2U are introduced, we have the
SPICE deck of the 2-input CMOS NAND gate of Fig. 2.4 as
2-input CMOS NAND Gate for 0.25micron technology
VDD 5 0 DC 2.5V
VA 2 0 PULSE 0.0 2.5 0 1N 1N 5N 12N
VB 1 0 PULSE 0.0 2.5 2.5N 1N 1N 5N 12N
*L=Length of the channnel in meter, W=Width of the channel in meter
M1 3 1 0 0 N L=0.25U W=1.0U AD=3.2P AS=3.2P PD=5.2U AD=5.2U
M2 4 2 3 0 N L=0.25U W=1.0U AD=3.2P AS=3.2P PD=5.2U AD=5.2U
M3 5 2 4 5 P L=0.25U W=0.5U AD=3.2P AS=3.2P PD=5.2U AD=5.2U
M4 5 1 4 5 P L=0.25U W=0.5U AD=3.2P AS=3.2P PD=5.2U AD=5.2U
*Level 2 MOSFET model, Tox=oxide thickness in meter
.MODEL N NMOS Level=2 Tox=1.750000e-08
.MODEL P PMOS Level=2 Tox=1.750000e-08
2.1.2.4 For different Model Parameters in the SPICE deck of subsubsection 2.1.1
VDD VDD
A A M3 6/1
5
4
B B M2 6/1
3
2
C C M1 6/1
1
0
(a) (b)
Transistor sizing: Transistor sizing determination of all transistors in the circuit of Fig. 2.6(a)
is
(a)
(b)
Fig. 2.7: Output-voltage versus input-voltage of a 3-input CMOS NAND gate with
LEVEL2 device model
With various duty cycles of the input PULSEs in the SPICE deck of subsec-
tion 2.1.2.3
- When the duty cycle of both input is 45%, we observe
- When i/p A and B have 30% and 70% duty cycles respectively, input-output waveform is
VDD VDD
A A M4 8/1
7
6
B B M3 8/1
5
4
C C M2 8/1
3
2
D D M1 8/1
1
0
(a) (b)
assuming that all nmos transistors in the PDN have the equal transistor ratio and it is denoted
by (W/L)n .
Finally, for the given basic inverter transistor
W 2
=
L n, INV. 1
that is, M 1, M 2, M 3 and M 4 will have the transistor ratio of W : L = 8 : 1. However, each of
the pmos transistor of Fig. 2.8(a) will have the transistor ratio equal to that of the basic inverter
circuit as all pmos transistors in this PUN are in series. Complete circuit with proper transistor
sizing is then shown in Fig. 2.8(b).
(a)
(b)
Fig. 2.9: Output-voltage versus input-voltage of a 3-input CMOS NAND gate with
LEVEL2 device model
With various duty cycles of the input PULSEs in the SPICE deck of subsection 2.3.1
- When the duty cycle of both input is 45%, we observe
- When i/p A and B have 30% and 70% duty cycles respectively, input-output waveform is
Experiment - 3
(a) (b)
(a)
(b)
Fig. 3.2: Output-voltage versus input-voltage of a 2-input CMOS AND gate with
LEVEL2 device model
With various duty cycles of the input PULSEs in the SPICE deck of subsection 5.1.1
- When the duty cycle of both input is 45%, we observe
- When i/p A and B have 30% and 70% duty cycles respectively, input-output waveform is
(a) (b)
(a)
(b)
Fig. 3.4: Output-voltage versus input-voltage of a 3-input CMOS AND gate with
LEVEL2 device model
With various duty cycles of the input PULSEs in the SPICE deck of subsection 3.2.1
- When the duty cycle of both input is 45%, we observe
- When i/p A and B have 30% and 70% duty cycles respectively, input-output waveform is
Experiment - 4
(a) (b)
(a)
(b)
Fig. 4.2: Output-voltage versus input-voltage of a 2-input CMOS NOR gate with
LEVEL2 device model
With various duty cycles of the input PULSEs in the SPICE deck of subsection 4.1.1
- When the duty cycle of both input is 45%, we observe
- When i/p A and B have 30% and 70% duty cycles respectively, input-output waveform is
(a) (b)
(a)
(b)
Fig. 4.4: Output-voltage versus input-voltage of a 3-input CMOS NOR gate with
LEVEL2 device model
With various duty cycles of the input PULSEs in the SPICE deck of subsection 4.2.1
- When the duty cycle of both input is 45%, we observe
- When i/p A and B have 30% and 70% duty cycles respectively, input-output waveform is
Experiment - 5
(a) (b)
(a)
(b)
With various duty cycles of the input PULSEs in the SPICE deck of subsection 5.1.1
- When the duty cycle of both input is 45%, we observe
- When i/p A and B have 30% and 70% duty cycles respectively, input-output waveform is
(a) (b)
(a)
(b)
With various duty cycles of the input PULSEs in the SPICE deck of subsection 5.2.1
- When the duty cycle of both input is 45%, we observe
- When i/p A and B have 30% and 70% duty cycles respectively, input-output waveform is
Experiment - 6
VDD VDD
5
5
M1 2W M4 2W M8 4W
8
4
A
A M3 2W M7 4W
B 1
7
3 Y
Y 6
C
B M2 2W M5 W M6 W
2 C
0 0
(a) Logic diagram of the given boolean (b) CMOS realization of (a).
function.
The given combinational logic is presented in Fig. 6.1(b) where transistor ratios of the basic
inverter are (W/L)n = W and (W/L)p = 2W . The truth table of the given realization:
A B C Y
0 0 0 0
0 1 0 0
X= don0 t care
1 0 0 0
1 1 0 1
X X 1 0
Experiment - 7
VDD VDD
5
5
2
A M4 4W M5 2W M8 2W
4 Y
8
A B
1
M3 4W M7 2W
3
B 3
7
Y M1 W M2 W C M6 2W
C 6
0 0
(a) Logic diagram of the given boolean (b) CMOS realzation of (a).
function.
The given combinational logic is presented in Fig. 7.1(b) where transistor ratios of the basic
inverter are (W/L)n = W and (W/L)p = 2W . The truth table of the given realization:
A B C Y
X X 0 1
0 0 1 0
X= don0 t care
0 1 1 1
1 0 1 1
1 1 1 1
Experiment - 8
VDD VDD
7
M3 4W M6 4W
6
M8 2W
M5 4W
5
A 8 Y
5
B A M2 2W
1
3 C M4 W M7 W
Y 4
C B M1 2W
2
0
0
The given combinational logic is presented in Fig. 8.1(b) where transistor ratios of the basic
inverter are (W/L)n = W and (W/L)p = 2W . The truth table of the given realization:
A B C Y
0 0 0 0
0 1 0 0
X= don0 t care
1 0 0 0
1 1 0 1
X X 1 1
Experiment - 9
5 5
5
2
A M4 4W M5 2W M8 2W M10 2W
4 8
8 9 Y
1
B M3 4W M7 2W
A 3
3
B 7 M9 W
Y M1 W M2 W C M6 2W
6
C
0 0 0
The given combinational logic is presented in Fig. 9.1(b) where transistor ratios of the basic
inverter are (W/L)n = W and (W/L)p = 2W . The truth table of the given realization:
A B C Y
X X 0 0
0 0 1 1
X= don0 t care
0 1 1 0
1 0 1 0
1 1 1 0
Experiment - 10
5 5
5
M1 2W M4 2W M8 4W M10 2W
8
4
A M3 2W M7 4W 9 Y
A 1
7
B 3
6
Y B M2 2W M5 W M6 W M9 W
2 C
C
0 0 0
The given combinational logic is presented in Fig. 10.1(b) where transistor ratios of the basic
inverter are (W/L)n = W and (W/L)p = 2W . The truth table of the given realization:
A B C Y
0 0 0 1
0 1 0 1
X= don0 t care
1 0 0 1
1 1 0 0
X X 1 1
Experiment - 11
VDD VDD
7 7
M3 M6 M3 4W M6 4W
6 6
M5 M5 4W
5 5
Y Y
A 5 5
B A M2 A M2 2W
1 1
3 C M4 3 C M4 W
Y 4 4
C B M1 B M1 2W
2 2
0 0
(a) Logic diagram of the given (b) CMOS realization of (a). (c) CMOS logic realization with
boolean function. proper transistor sizing.
The given combinational logic is presented in Fig. 11.1(c) where transistor ratios of the basic
inverter are (W/L)n = W and (W/L)p = 2W . The truth table of the given realization:
A B C Y
0 0 0 1
0 1 0 1
X= don0 t care
1 0 0 1
1 1 0 0
X X 1 0
Experiment - 12
A B C Y
X X 0 1
0 0 1 1
X= don0 t care
0 1 1 0
1 0 1 0
1 1 1 0
Transistor sizing of the cmos comobinational logic circuit of Fig. 12.1:
Experiment - 13
A B C D Y
0 0 0 0 1
0 0 0 1 1
.. .. .. .. .. X= don0 t care
. . . . .
X X 1 1 0
1 1 X X 0
1 1 1 1 0
Transistor sizing of the cmos comobinational logic circuit of Fig. 13.1:
Experiment - 14
Y |dual = (A + B)(C + D) M9 2W
B M1 4W D M5 4W
This is the function to be implemented in
the PUN.
A B C D Y
0 0 0 0 0
0 0 0 1 0
.. .. .. .. .. X= don0 t care
. . . . .
X X 1 1 1
1 1 X X 1
1 1 1 1 1
Transistor sizing of the cmos comobinational logic circuit of Fig. 14.1: