ie1204 digital design: l3: cmos circuits, implementation ......transmission gate (pass gate) a q e a...
TRANSCRIPT
![Page 1: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/1.jpg)
IE1204 Digital Design:
L3: CMOS circuits,Implementation Technologies
Masoumeh (Azin) Ebrahimi ([email protected])
Elena Dubrova([email protected])KTH / ICT / ES
![Page 2: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/2.jpg)
Transistor - a switch with no movingparts
Schematic diagram ofthe SiGe transistor
(KTH)
Source Drain
Gate
IE1204 Digital Design, Autumn2015 2
![Page 3: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/3.jpg)
• CMOS transistors are easy to manufacture
• CMOS transistors are made from ordinary sand=> cheap raw materials
• A transistor is easy to get to work as a switch
Why CMOS?
IE1204 Digital Design, Autumn2015 3
![Page 4: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/4.jpg)
PMOS and NMOS
PMOS NMOS
• A PMOS transistor (p-channel MOS) isconducting (switch isclosed) if gate voltage (VGS)is close to VSS.
• An NMOS (n-channel) isconducting (switch isclosed) if gate voltage (VGS)is close to VDD.
Gate
Drain
Source Source
Drain
Gate
IE1204 Digital Design, Autumn2015 4
![Page 5: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/5.jpg)
The structure of a CMOS circuit
IE1204 Digital Design, Autumn2015
VSS
Vf
VDD
Pull-down network
Pull-up network
Vx1
Vxn
PMOS makes theoutput ”1”
NMOS makes theoutput ”0”
5
![Page 6: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/6.jpg)
PMOS and NMOS Transistors
IE1204 Digital Design, Autumn2015
”Pull Up”
”Pull Down”
01
6
![Page 7: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/7.jpg)
CMOS inverter
(A) Circuit
Vf
VDD
Vx
(B) Truth table and transistor states
onoff
offon
10
01
fx
T1
T2T1 T2
IE1204 Digital Design, Autumn2015
• CMOS circuits are composed of bothPMOS and NMOS transistors
• CMOS stands for Complementary MOS
• Area: AInverter= 2 Transistors
7
![Page 8: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/8.jpg)
CMOS inverter
(A) Circuit
Vf
VDD
Vx
(B) Truth table and transistor states
onoff
offon
10
01
fx
T1
T2T1 T2
IE1204 Digital Design, Autumn2015
• CMOS circuits are composed of bothPMOS and NMOS transistors
• CMOS stands for Complementary MOS
• Area: AInverter= 2 Transistors0
0n
0ff
1
8
![Page 9: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/9.jpg)
CMOS inverter
(A) Circuit
Vf
VDD
Vx
(B) Truth table and transistor states
onoff
offon
10
01
fx
T1
T2T1 T2
IE1204 Digital Design, Autumn2015
• CMOS circuits are composed of bothPMOS and NMOS transistors
• CMOS stands for Complementary MOS
• Area: AInverter= 2 Transistors1
0ff
0n0
9
![Page 10: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/10.jpg)
CMOS inverter voltage transfercharacteristic
IE1204 Digital Design, Autumn2015
Vin
Vout
VOH = VDD
VDD
VT VIL VIH VDD-VT
VDD/2
45 degree tilt
Power Supply 5.0V 3.3V 1.8VVOH 5.0 3.3 1,8VIH 2,9 1,9 1.0VIL 2,1 1,4 0.8VOL 0.0 0.0 0.0
Input
Out
put
VOL = 0 V
”1”
”0”
VT = 0.2VDD
Low Noise Margin: NML= VIL-VOL
High Noise Margin NMH= VOH-VIH
10
![Page 11: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/11.jpg)
One point is unstable!• CMOS circuit has a very stabletransfer function
• At Vinto= VDD/2 there is anunstable point, then both T1 and T2are conducting
• If a circuit temporarily stuck inthis mode, it enters a state calledmetastability
• If this state lasts for a long time,the transistors in the circuit may bedamaged by the high current
Metastability will be discussedin later lectures
Vinto
Vout
Unstable point
VDD
VDD
IE1204 Digital Design, Autumn2015 11
![Page 12: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/12.jpg)
CMOS–Dynamic power consumption!
IE1204 Digital Design, Autumn2015
Classical CMOS has only losses exactly at the vidswitching point. The Power dissipation PF is proportionalto the clock-frequency!
VoltageSupplyVencyClockfrequf
lossesPowerPVfP
DD
C
F
DDCF2×µ”1” ”0”
”1”® ”0”
”1”¬ ”0”
C
C
f
f
×2
12
![Page 13: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/13.jpg)
NAND gate
VDD
VOH
VSS
VA
VB
VA VB VOH
VSS(0) VSS(0) VDD(1)VSS(0) VDD(1) VDD(1)VDD(1) VSS(0) VDD(1)VDD(1) VDD(1) VSS(0)
Area: ANAND= 4 Transistors
IE1204 Digital Design, Autumn2015 13
![Page 14: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/14.jpg)
NAND gate
Area: ANAND= 4 Transistors
IE1204 Digital Design, Autumn2015
VA
VB
VA VB VOH
VSS(0) VSS(0) VDD(1)0
0
on
off
on
off
1
14
![Page 15: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/15.jpg)
NAND gate
Area: ANAND= 4 Transistors
IE1204 Digital Design, Autumn2015
VA
VB
0
on
off
VA VB VOH
VSS(0) VSS(0) VDD(1)VSS(0) VDD(1) VDD(1)
1
off
on
1
15
![Page 16: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/16.jpg)
NAND gate
Area: ANAND= 4 Transistors
IE1204 Digital Design, Autumn2015
VA
VB0
on
on
off
1
offVA VB VOH
VSS(0) VSS(0) VDD(1)VSS(0) VDD(1) VDD(1)VDD(1) VSS(0) VDD(1)
1
16
![Page 17: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/17.jpg)
NAND gate
Area: ANAND= 4 Transistors
IE1204 Digital Design, Autumn2015
VA
VB
VA VB VOH
VSS(0) VSS(0) VDD(1)VSS(0) VDD(1) VDD(1)VDD(1) VSS(0) VDD(1)VDD(1) VDD(1) VSS(0)
1
off
on
1
off
on0
17
![Page 18: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/18.jpg)
NOR gate
VDD
VOH
VSS
VA
VB
VA VB VOH
VSS(0) VSS(0) VDD(1)VSS(0) VDD(1) VSS(0)VDD(1) VSS(0) VSS(0)VDD(1) VDD(1) VSS(0)
Area: ANOR= 4 Transistors
IE1204 Digital Design, Autumn2015 18
![Page 19: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/19.jpg)
NOR gate
Area: ANOR= 4 Transistors
IE1204 Digital Design, Autumn2015
VA
VB
VA VB VOH
VSS(0) VSS(0) VDD(1)0
0
on
on
offoff
1
19
![Page 20: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/20.jpg)
NOR gate
Area: ANOR= 4 Transistors
IE1204 Digital Design, Autumn2015
VA
VB
VA VB VOH
VSS(0) VSS(0) VDD(1)VSS(0) VDD(1) VSS(0)
0
1
off
on
offon
0
20
![Page 21: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/21.jpg)
NOR gate
Area: ANOR= 4 Transistors
IE1204 Digital Design, Autumn2015
VA
VB
VA VB VOH
VSS(0) VSS(0) VDD(1)VSS(0) VDD(1) VSS(0)VDD(1) VSS(0) VSS(0)
0
1
on
off
onoff
0
21
![Page 22: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/22.jpg)
NOR gate
Area: ANOR= 4 Transistors
IE1204 Digital Design, Autumn2015
VA
VB
VA VB VOH
VSS(0) VSS(0) VDD(1)VSS(0) VDD(1) VSS(0)VDD(1) VSS(0) VSS(0)VDD(1) VDD(1) VSS(0)
1
1
off
off
onon
0
22
![Page 23: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/23.jpg)
Group work
IE1204 Digital Design, Autumn2015
Illustrate the CMOS circuit of F=X1+X2X3
PDN network: F=X1+X2X3 = X1(X2+X3)
23
![Page 24: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/24.jpg)
Negative logic
• You can also reverse the logic and let L (lowvoltage) represent the logic 1 and H (highvoltage) represent the logic 0– This is called negative logic
• An AND function becomes an OR function andvice versa– It is not important which logic is used - negative or
positive, but positive logic is more traditional
![Page 25: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/25.jpg)
Three-state?
IE1204 Digital Design, Autumn2015
A CMOS-gate in addition to "1" or"0" is also provided with a thirdoutput state - the three-state ”Z”. ( =unconnected output).
If many outputs are connected to thesame line ("bus"), you can use one ofthe out-puts at a time . The otheroutputs are held in the Three-statecondition.
25
![Page 26: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/26.jpg)
Three-state?
IE1204 Digital Design, Autumn2015
A CMOS-gate in addition to "1" or"0" is also provided with a thirdoutput state - the three-state ”Z”. ( =unconnected output).
If many outputs are connected to thesame line ("bus"), you can use one ofthe out-puts at a time . The otheroutputs are held in the Three-statecondition.
”0”
”1”off
off ”Z”
on
off
26
![Page 27: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/27.jpg)
Three-state?
IE1204 Digital Design, Autumn2015
A CMOS-gate in addition to "1" or"0" is also provided with a thirdoutput state - the three-state ”Z”. ( =unconnected output).
If many outputs are connected to thesame line ("bus"), you can use one ofthe out-puts at a time . The otheroutputs are held in the Three-statecondition.
A”1”
off
on
on”0”
on
27
![Page 28: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/28.jpg)
High Impedance ('Z')
IE1204 Digital Design, Autumn2015
AY = ''ZY =
Output is not connected28
![Page 29: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/29.jpg)
Transmission gate (pass gate)
A Q
E
VA VE VOH
L L ZL H LH L ZH H H
A Q
E
E
E
IE1204 Digital Design, Autumn2015
• The pass gate acts as a switch controlled by E• If E = 0, the switch is open, Q = Z• If E = 1, the switch is closed, Q = A• Pass gates have a smaller driving capacity
than ordinary gates
Area: ATG= 2 Transistors
29
![Page 30: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/30.jpg)
Transmission gate (pass gate)
A Q
E
A Q
E
E
E
IE1204 Digital Design, Autumn2015
• The pass gate acts as a switch controlled by E• If E = 0, the switch is open, Q = Z• If E = 1, the switch is closed, Q = A• Pass gates have a smaller driving capacity
than ordinary gates
Area: ATG= 2 Transistors
0
1
off
off
VA VE VOH
L L ZL H LH L ZH H H
30
![Page 31: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/31.jpg)
Transmission gate (pass gate)
A Q
E
VA VE VOH
L L ZL H LH L ZH H H
A Q
E
E
E
IE1204 Digital Design, Autumn2015
• The pass gate acts as a switch controlled by E• If E = 0, the switch is open, Q = Z• If E = 1, the switch is closed, Q = A• Pass gates have a smaller driving capacity
than ordinary gates
Area: ATG= 2 Transistors
1
0on
on
31
![Page 32: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/32.jpg)
Multiplexer
A
B Q
S
A
BQ
S
The inverter is denoted by a circle
Example: MUX is a dataselector
10
X
Y
S
Q Q = XS + YS
IE1204 Digital Design, Autumn2015 32
![Page 33: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/33.jpg)
Transmission gateMUX Implementation
A
B FSel
Area: Amux= 6 Transistors
IE1204 Digital Design, Autumn2015 33
![Page 34: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/34.jpg)
Transmission gateMUX Implementation
Area: Amux= 6 Transistors
IE1204 Digital Design, Autumn2015
X
Y Q
Sel2 MOS
2 MOS
2 MOS”0”
on
off X
34
![Page 35: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/35.jpg)
Transmission gateMUX Implementation
Area: Amux= 6 Transistors
IE1204 Digital Design, Autumn2015
X
Y Q
Sel2 MOS
2 MOS
2 MOS
off
”1”
on Y
35
![Page 36: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/36.jpg)
XOR implementation with pass gates
A
B
F = a ⊕ b
Area: Amux= 8 Transistors
IE1204 Digital Design, Autumn2015 36
![Page 37: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/37.jpg)
XOR implementation with pass gates
Area: Amux= 8 Transistors
IE1204 Digital Design, Autumn2015
A
B
F = B
2 MOS
2 MOS
2 MOS
2 MOS
”1”
off
onF = A Å B
37
![Page 38: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/38.jpg)
XOR implementation with pass gates
Area: Amux= 8 Transistors
IE1204 Digital Design, Autumn2015
A
B
F = B
2 MOS
2 MOS
2 MOS
2 MOS
”0”
on
offF = A Å B
38
![Page 39: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/39.jpg)
XOR implementation with pass gates
IE1204 Digital Design, Autumn2015
011101110000FBA
F B=
F B=
39
![Page 40: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/40.jpg)
Things Take Time ...About delays in circuits
IE1204 Digital Design, Autumn2015 40
![Page 41: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/41.jpg)
• Each wires in an electronic circuits has a capacitance• Capacitance has a negative effect on the speed of
operation of logic circuits
Delays in circuits
IE1204 Digital Design, Autumn2015 41
![Page 42: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/42.jpg)
Typical delays
NAND, NOR TNOT ½ T, T (if implemented using
NAND-gate)AND, OR 2T (2 NANDs in a row)XOR, XNOR, MUX 3T...5TXOR, MUX (Pass-Gate) 2T
![Page 43: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/43.jpg)
Optimized structures (MUX)
Area: AMUX= 2+6+6+6=20TransistorsDelay: TMUX= 5TNAND
Area: AMUX= 2+4+4+4 =14TransistorsDelay: TMUX= 3TNAND
DeMorgan
Area: AMUX= 2+2+2=6TransistorsDelay: TMUX= ~ 2TNAND
IE1204 Digital Design, Autumn2015
AND-OR NAND-NAND
Best!43
![Page 44: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/44.jpg)
Optimized structures (XOR)
Area: AMUX= 2+2+6+6+6=22TransistorsDelay: TMUX= 5TNAND
Area: AMUX= 2+2+4+4+4=16 TransistorsDelay: TMUX= 3TNAND
DeMorgan
Area: AMUX= 2x4=8 TransistorsDelay: TMUX= ~ 2TNAND
Area: AMUX= 16 TransistorsDelay: TMUX= 3TNAND
NAND only
IE1204 Digital Design, Autumn2015
Best!44
![Page 45: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/45.jpg)
Fan-in
• Fan-in is the number of inputs to the gate.• If a gate has many inputs, it has a larger internal
capacitance => its internal delay Ti (also calledthe intrinsic delay) becomes larger.
28IE1204 Digital Design, HT14
![Page 46: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/46.jpg)
Gates with more than 2 inputs
VA
VB
VC
VQ
3-input NAND
• Gates with more thanthree or four inputs areused rarely
• The internal capacitancebecomes too large andgates too slow
• A long line of transistorsconnected in series giveslong delay!
VDD
VSS
IE1204 Digital Design, Autumn2015 46
![Page 47: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/47.jpg)
High fan-in is solved with tree-structures
DeMorgan
IE1204 Digital Design, Autumn2015
)( cbacba ××=××
)()( dcbadcba ×××=××× dcbadcba ×××=×+× )()(
47
![Page 48: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/48.jpg)
More tree structures ...
IE1204 Digital Design, Autumn2015
)()( dcbadcba +++=+++
)()( dcbadcba ÅÅÅ=ÅÅÅ
)()( dcbadcba ÅÅÅ=ÅÅÅ
48
![Page 49: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/49.jpg)
• Fan-out is number of other gates that a specificgate drives
• Each of driven gates increases the capacitiveload on f
Fan-out
(B) Equivalent circuit for timing purposes
xf
(A) Inverter that drives n other inverters
To the inputs ofn other inverters
To the inputs ofn other invertersx
VfN1
Cn= NC
IE1204 Digital Design, Autumn2015 49
![Page 50: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/50.jpg)
Effect of fan-out on propagation delay
• The propagation time for different fan-outs
for n =1Vf
for n = 4Vf
VDD
Gnd
Time0
IE1204 Digital Design, Autumn2015 50
![Page 51: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/51.jpg)
• A buffer is a circuit that implements thefunction f(x) = x
• Buffers are used to increase performance• They have larger transistors and can drive
higher-than-normal capacitive loads• They are also used when high current flow
is needed to drive external devices
Buffering
IE1204 Digital Design, Autumn2015 51
![Page 52: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/52.jpg)
High Fan-out: Use Buffers
Non-Inverting Buffer Tri-State Buffer
When En = 0, f isdisconnected from x
When En = 1, f = x
High-Fan-Out Buffer
W3W
En
x f
fx
En x En f0 0 Z0 1 01 0 Z1 1 1
IE1204 Digital Design, Autumn2015 52
![Page 53: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/53.jpg)
Critical Path (Longest path)
f = Sm (3,2,0) = x2x1x0+ x2x1x0+ x2x1x0
f
x0
x1
x2
IE1204 Digital Design, Autumn2015 53
![Page 54: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/54.jpg)
Critical Path (cont'd.)
IE1204 Digital Design, Autumn2015
f
x0x1x2
2120210 xxxxxxxf ++=
x0 x1 x2 all pass NOT , AND, and OR,On their way to the output f, but x2 has the load of threeinputs (it is two for x0 and x1). ”Critical path” becomesfrom x2 to f!
54
![Page 55: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/55.jpg)
3 * Tinv
Signal Racing
f(x) = x x = x x = 0f(x)x
If a signal has severalpaths to the exit, socalled signal racingmay happen
f (x)
f2(x)
x
f2(x) = x
Tand Tand
IE1204 Digital Design, Autumn2015 55
![Page 56: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/56.jpg)
• NMOS and PMOS circuits consume both staticand dynamic power– Static power is dissipated by the current that flows in
the steady state– Dymanic power is dissipated when the current flows
because of changes in signal level• CMOS circuits consume only dynamic power
Power consumption of CMOS
IE1204 Digital Design, Autumn2015 56
![Page 57: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/57.jpg)
7400 Series Standard Chips
IE1204 Digital Design, Autumn2015 57
![Page 58: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/58.jpg)
Implementation of a logic function
An implementation of f = x1x2 + x2x3
VDD
x1x2x3
f
7404
7408 7432
IE1204 Digital Design, Autumn2015 58
![Page 59: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/59.jpg)
Look-up tables (LUT)
0/1
0/1
0/1
0/1x1
x2
f
Two-input LUT
Programmablecell 1
0
1
0
1
0
A LUT with n inputs canrealize all combinationalfunctions with up to ninputs
The usual size in anFPGA is n = 4
IE1204 Digital Design, Autumn2015 59
![Page 60: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/60.jpg)
Example: XOR gate
0
1
1
0x1
x2
f
Two-input LUT
Programmedvalues 1
0
1
0
1
0
Multiplexer
IE1204 Digital Design, Autumn2015
011101110000
21 fxx
60
![Page 61: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/61.jpg)
Three-way light control
IE1204 Digital Design, Autumn2015
Brown/Vranesic: 2.8.1Suppose that we need to be ableto turn on / off the lamp fromthree different places.
x1x2x3
fx1
x2
x3f
61
![Page 62: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/62.jpg)
Three-way light control
IE1204 Digital Design, Autumn2015
321321321321)7,4,2,1( xxxxxxxxxxxxmf +++==å
62
![Page 63: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/63.jpg)
NAND-NAND
IE1204 Digital Design, Autumn2015
7404 7410 7410 7420
If we change toNAND-NAND allnecessary gates areincluded with thesimulator.
63
![Page 64: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/64.jpg)
IE1204 Digital Design, Autumn2015
#1 #2 #3 #4
1:1
You must enter the pin number in the schematic - otherwiseyou can get lost!
1:2
2:1
7410 7410 7420
1:31:4
2:22:13
2:12
1:131:12
2:102:112:9
2:8
3:13:133:23:33:43:5
3:12
3:6
4:14:24:44:5
4:6
x1 x2
x3
64
![Page 65: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/65.jpg)
Simulate!
IE1204 Digital Design, Autumn2015 65
![Page 66: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/66.jpg)
How many transistors are inside an iPhone6?
Make a guess!
IE1204 Digital Design, Autumn2015
2,000,000,000
66
![Page 67: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/67.jpg)
What would the world be without theCMOS?!
IE1204 Digital Design, Autumn2015 67
![Page 68: IE1204 Digital Design: L3: CMOS circuits, Implementation ......Transmission gate (pass gate) A Q E A Q E E E IE1204 Digital Design, Autumn2015 • The pass gate acts as a switch controlled](https://reader033.vdocuments.site/reader033/viewer/2022060917/60aa071c51e68a16bc25541c/html5/thumbnails/68.jpg)
• Logic gates can be implemented withCMOS technology
• Logic circuits have a delay• CMOS circuits have relatively low power
consumption
Summary
IE1204 Digital Design, Autumn2015 68