Вы находитесь на странице: 1из 64

1

Designing Combinational
Logic Circuits
DISEDIAKAN OLEH: AZMAN BIN MAT HUSSIN

JABATAN KEJURUTERAAN ELEKTRIK

POLITEKNIK TUANKU SYED SIRAJUDDIN


2
Combinational Sequential
Output = f ( In )
Output = f ( In, Previous In )
Combinational
Logic
Circuit
Out In
Combinational
Logic
Circuit
Out
In
State
3
4
6
V
DD

F(In1,In2,InN)
In1
In2
InN
In1
In2
InN
PUN
PDN
PMOS only
NMOS only
PUN and PDN are dual logic networks
7
Transistors can be thought as a switch controlled by its gate signal
NMOS switch closes when switch control input is high
X Y
A B
Y = X if A and B
X
Y
A
B
Y = X if A OR B
NMOS Transistors pass a strong 0 but a weak 1
8
X
Y
A B
Y = X if A AND B = A + B
X
Y
A
B
Y = X if A OR B = AB
PMOS Transistors pass a strong 1 but a weak 0
PMOS switch closes when switch control input is low

A stick diagram is a cartoon of a layout.
Does show all components/vias (except
possibly tub ties), relative placement.
Does not show exact placement, transistor
sizes, wire lengths, wire widths, tub
boundaries.

NMOS is formed when a polysilicon line is placed across an N-
diffusion line.





PMOS is formed when a polysilicon line is placed across a
P-diffusion line.

Stick Diagram Rules
No electrical connection happens when 2 different layers
crossing each other (e.g polysilicon crosses metal).





To connect 2 different layers (e.g. polysilicon and metal), a
contact is placed on the crossing line with a black circle or X
sign.

Stick Diagram Rules
Schematic Diagram Stick Diagram
VDD
GND
S D
S D
A
Y
Stick diagram of a complex CMOS logic circuit
can be obtained using the method called Euler
Path.
Euler-Path Method:
1. Label all the transistor terminals.
2. Determine the shortest path.
3. Transfer all the transistor terminals
onto the stick diagram according to the
shortest path.
4. Make a connection using metal layer.

Example: 2-input NAND gate
1
2
3 4
2
4
5
6
1
2
3
2
4
2
4
5
6
PMOS
1 1
2 4
3 3
NMOS
3 6
2 4
5 5
PMOS
1 1
2 4
3 3
NMOS
3 6
2 4
5 5
2 4
VDD
GND
A B
1 3
1
3 5
6
2 4
VDD
GND
A B
1 3
1
3 5
6
F
-
-
-
-
-
-
-
Example: 2-input NAND gate
Transistors can be used as switches
g
s d
g = 0
s d
g = 1
s d
0 strong 0
Input Output
1 degraded 1
g
s d
g = 0
s d
g = 1
s d
0 degraded 0
Input Output
strong 1
g = 1
g = 1
g = 0
g = 0
NMOS is good at transferring logic 0
from input to output without voltage
drop.

PMOS is good at transferring logic 1
from input to output without voltage
drop.


Two (2) combinations of NMOS & PMOS as
switches:
Parallel Combination
Transmission Gate

Series Combination
Inverter

1. Clock pulse is supplied to NMOS transistor, and PMOS is given the inverted
clock pulse.
2. If the clock pulse is low (logic 0), both NMOS & PMOS transistor if OFF. No
data is transferred to the output.
3. If the clock pulse is high (logic 1), both NMOS & PMOS transistor if ON. If the
input is logic 0, NMOS will transfer the data to the output. If the input is logic
1, PMOS will transfer the data to the output.
SYMBOL
SCHEMATIC LAYOUT
TRANSMISSION GATE
22
23
24
Standard Cells
General purpose logic
Can be synthesized
Same height, varying width
Datapath Cells
For regular, structured designs (arithmetic)
Includes some wiring in the cell
Fixed height and width
25
26
signals
Routing
channel
V
DD
GND
27
M2
No Routing
channels
V
DD
GND
M3
V
DD
GND
Mirrored Cell
Mirrored Cell
28
Cell boundary
N Well
Cell height 12 metal tracks
Metal track is approx. 3 + 3
Pitch =
repetitive distance between objects

Cell height is 12 pitch
2
Rails ~10
In
Out
V
DD
GND
29
In
Out
V
DD
GND
In Out
V
DD
GND
With silicided
diffusion
With minimal
diffusion
routing
Out In
V
DD
M
2
M
1
30
A
Out
V
DD
GND
B
2-input NAND gate
B
V
DD
A
31
High noise margins :
V
OH
and V
OL
are at V
DD
and GND , respectively.
No static power consumption :
There never exists a direct path between V
DD
and
V
SS
( GND ) in steady-state mode .
Comparable rise and fall times:
(under appropriate sizing conditions)
Full rail-to-rail swing; high noise margins
Logic levels not dependent upon the relative
device sizes; ratioless
Always a path to Vdd or Gnd in steady state;
low output impedance
Extremely high input resistance; nearly zero
steady-state input current
No direct path steady state between power
and ground; no static power dissipation
Propagation delay function of load
capacitance and resistance of transistors
32
33
34
I
n
p
u
t
s
Switch
Network
Out
Out
A
B
B
B
N transistors
No static consumption
35
B
B
A
F = AB
0
36
V
DD
In
Out
x
0.5m/0.25m
0.5m/ 0.25m
1.5m/ 0.25m
0 0.5 1 1.5 2
0.0
1.0
2.0
3.0
Time [ns]
V
o
l

t
a
g

e



[
V
]

x
Out
In
37
A = 2.5 V
B
C = 2.5 V
C
L
A = 2.5 V
C = 2.5 V
B
M
2
M
1
M
n
Threshold voltage loss causes
static power consumption
V
B
does not pull up to 2.5V, but 2.5V - V
TN
NMOS has higher threshold than PMOS (body effect)
38
M
2
M
1
M
n
M
r
Out
A
B
V
DD
V
DD
Level Restorer
X
Advantage: Full Swing
Restorer adds capacitance, takes away pull down current at X
Ratio problem
39
0 100 200 300 400 500
0.0
1.0
2.0
W / L
r
=1.0/0.25
W / L
r
=1.25/0.25
W / L
r
=1.50/0.25
W / L
r
=1.75/0.25
V
o

l
t

a
g

e

[
V
]

Time [ps]
3.0
Upper limit on restorer size
Pass-transistor pull-down
can have several transistors in
stack
40
Out
V
DD
V
DD
2.5V
V
DD
0V
2.5V
0V
WATCH OUT FOR LEAKAGE CURRENTS
41
A
B
A
B
B B B B
A
B
A
B
F=AB
F=AB
F=A+B
F=A+B
B B
A
A
A
A
F=AB
F=AB
OR/NOR
EXOR/NEXOR AND/NAND
F
F
Pass-Transistor
Network
Pass-Transistor
Network
A
A
B
B
A
A
B
B
Inverse
(a)
(b)
42
A
B
C
C
A B
C
C
B
C
L
C = 0 V
A = 2.5 V
C = 2.5 V
43
V
out
0 V
2.5 V
2. 5 V
R
n
R
p
0.0 1.0 2.0
0
10
20
30
V
out
, V
R
e
s
i
s
t
a
n
c
e
,

o
h
m
s
R
n
R
p
R
n
|| R
p
44
A
M2
M1
B
S
S
S
F
VDD
GND
V
DD

In
1
In
2
S S
S
S
45
A
B
F
B
A
B
B
M1
M2
M3/M4
46
V
1 V
i-1
C
2.5 2.5
0 0
V
i V
i+1
C
C
2.5
0
V
n-1 V
n
C
C
2.5
0
In
V
1
V
i V
i+1
C
V
n-1 V
n
C
C
In
R
eq
R
eq
R
eq
R
eq
C C
(a)
(b)
C
R
eq
R
eq
C C
R
eq
C C
R
eq
R
eq
C C
R
eq
C
In
m
(c)
47
48
In static circuits at every point in time
(except when switching) the output is
connected to either GND or V
DD
via a low
resistance path.
fan-in of n requires 2n (n N-type + n P-type)
devices

Dynamic circuits rely on the temporary
storage of signal values on the capacitance
of high impedance nodes.
requires on n + 2 (n+1 N-type + 1 P-type)
transistors
49
51
In
1
In
2
PDN

In
3
M
e
M
p
Clk

Clk

Out

C
L
Out

Clk

Clk

A

B

C

M
p
M
e
Two phase operation
Precharge (Clk = 0)
Evaluate (Clk = 1)

on

off

1

off

on

((AB)+C)

Once the output of a dynamic gate is
discharged, it cannot be charged again until
the next precharge operation.
Inputs to the gate can make at most one
transition during evaluation.

Output can be in the high impedance state
during and after evaluation (PDN off), state
is stored on C
L
52
Logic function is implemented by the PDN
only
number of transistors is N + 2 (versus 2N for static
complementary CMOS)
Full swing outputs (V
OL
= GND and V
OH
= V
DD
)
Non-ratioed - sizing of the devices does not
affect the logic levels
Faster switching speeds
reduced load capacitance due to lower input capacitance (C
in
)
reduced load capacitance due to smaller output loading (Cout)
no I
sc
, so all the current provided by PDN goes into
discharging C
L
53
Overall power dissipation usually higher than
static CMOS
no static current path ever exists between V
DD
and
GND (including P
sc
)
no glitching
higher transition probabilities
extra load on Clk
PDN starts to work as soon as the input
signals exceed V
Tn
, so V
M
, V
IH
and V
IL
equal to
V
Tn

low noise margin (NM
L
)
Needs a precharge/evaluate clock
54
55
C
L
Clk

Clk

Out

A

M
p
M
e
Leakage sources

CLK

V
Out
Precharge

Evaluate

Dominant component is subthreshold current
56
C
L
Clk

Clk

M
e
M
p
A

B

Out

M
kp
Same approach as level restorer for pass-transistor logic

Keeper

57
C
L
Clk

Clk

C
A
C
B
B=0

A

Out

M
p
M
e
Charge stored originally on C
L
is
redistributed (shared) over C
L
and
C
A
leading to reduced robustness
58
C
L
=50fF
Clk

Clk

A

A

B
B
B

!B

C

C

Out

C
a
=15fF
C
c
=15fF
C
b
=15fF
C
d
=10fF
59
M
p
M
e
V
DD
|
Out
|
A
B = 0
C
L
C
a
C
b
M
a
M
b
X
C
L
V
DD
C
L
V
out
t
( )
C
a
V
DD
V
Tn
V
X
( )

( )
+ =
or
AV
out
V
out
t
( )
V
DD

C
a
C
L
-------- V
DD
V
Tn
V
X
( )

( )
= =
AV
out
V
DD
C
a
C
a
C
L
+
----------------------
\ .
|
| |
=
case 1) if AV
out
< V
Tn
case 2) if AV
out
> V
Tn
B
=
0
Clk
X
C
L
C
a
C
b
A
Out
M
p
M
a
V
DD
M
b
Clk
M
e
60
Clk

Clk

M
e
M
p
A

B

Out

M
kp
Clk

Precharge internal nodes using a clock-driven transistor (at the cost
of increased area and power)
61
C
L1
Clk

Clk

B=0

A=0

Out1

M
p
M
e
Out2

C
L2
In

Dynamic NAND

Static NAND

=1

=0

-1
0
1
2
3
0 2 4 6
62
Time, ns

Clk

In

Out1

Out2

63
C
L
Clk

Clk

B

A

Out

M
p
M
e
Coupling between Out and Clk
input of the precharge device due
to the gate to drain capacitance.
So voltage of Out can rise above
V
DD
. The fast rising (and falling
edges) of the clock couple to Out.
64
-0.5
0.5
1.5
2.5
0 0.5 1
Clk

Clk

In
1
In
2
In
3
In
4
Out

In &
Clk

Out

Time, ns

Clock feedthrough

Clock feedthrough

Capacitive coupling
Substrate coupling
Minority charge injection
Supply noise (ground bounce)
65

Вам также может понравиться