Lecture 0- Logic Families

53
Naser Mohammadzadeh

Transcript of Lecture 0- Logic Families

Page 1: Lecture 0- Logic Families

Naser Mohammadzadeh

Page 2: Lecture 0- Logic Families

Outline Switch Logic

Dynamic Logic

Stack up

Naser Mohammadzadeh 2

Page 3: Lecture 0- Logic Families

Switch Logic Can implement Boolean formulas as networks of switches

Can build switches from MOS transistors— transmission

gates

Transmission gates do not amplify but have smaller

layouts

Naser Mohammadzadeh 3

Page 4: Lecture 0- Logic Families

Types of Switches

Naser Mohammadzadeh 4

Complementary N-MOS P-MOS

Page 5: Lecture 0- Logic Families

Behavior of n-type Switch n-type switch has source-drain voltage drop when

conducting:

conducts logic 0 perfectly

introduces threshold drop into logic 1

Naser Mohammadzadeh 5

Page 6: Lecture 0- Logic Families

n-type Switch Driving Static Logic Switch underdrives static gate, but gate restores logic

levels

Naser Mohammadzadeh 6

VDD

Page 7: Lecture 0- Logic Families

n-type Switch Driving Switch Logic Voltage drop causes next stage to be turned on weakly

Naser Mohammadzadeh 7

Page 8: Lecture 0- Logic Families

Behavior of Complementary Switch Complementary switch products full-supply voltages for

both logic 0 and logic 1:

n-type transistor conducts logic

p-type transistor conducts logic

Naser Mohammadzadeh 8

Page 9: Lecture 0- Logic Families

CMOS TG Electrical Model

Naser Mohammadzadeh 9

Page 10: Lecture 0- Logic Families

Naser Mohammadzadeh 10

VA = VDD VB

How on is “on”? Assume VA = VDD then

Page 11: Lecture 0- Logic Families

TG Circuits: MUX

Naser Mohammadzadeh 11

Page 12: Lecture 0- Logic Families

TG Circuits: 4 to 1 MUX Multiplexers can easily

be done with TG

Never forget that TG are

bi-directional

Compact layout by

combining identical gates

Naser Mohammadzadeh 12

Page 13: Lecture 0- Logic Families

TG Circuits: XOR

Naser Mohammadzadeh 13

8 transistors

6 transistors

Page 14: Lecture 0- Logic Families

Switch Logic Advantage:

Can help save area and parasitics in some specialized

Disadvantages:

Is not universal

Many TG in series provoke large delays

Introduce hard-to-trace electrical problems

Charge Sharing

Naser Mohammadzadeh 14

Page 15: Lecture 0- Logic Families

Charge Sharing The most insidious electrical problem in switch networks

MOS transistors have parasistic capacitances at their

sources and drains thanks to the source/drain diffusion

Solution: design the switch network so that its output is

always driven by a power supply

Naser Mohammadzadeh 15

Page 16: Lecture 0- Logic Families

Charge Sharing

Naser Mohammadzadeh 16

Page 17: Lecture 0- Logic Families

Dynamic Logic Overview:

Domino

DCVSL

NORA

Zipper

Goal

You are familiar with dynamic logic gates and its different

families

You can handle the dynamic logic problems like charge

sharing and timing

Naser Mohammadzadeh 17

Page 18: Lecture 0- Logic Families

Tinkering with Logic Gates Things to like about CMOS gates:

Easy to translate logic to fets

Rail-to-rail switching

Good noise margins

No static power since fets are in cutoff

Sizing not critical to correct operation

Things not to like about CMOS gates:

N inputs 2N fets (i.e., one nfet and one pfet)

Large circuit area, especially for pfets

“Heavy” loading of inputs

Pfet’s are either large or slow relative to nfets

Series connections can get very slow Naser Mohammadzadeh 18

Page 19: Lecture 0- Logic Families

Tinkering with Logic Gates We can replace pfet pullup network with pseudo-NMOS

load (pfet with grounded gate) but

Dissipate static power when output is low

Have to make load fet small to ensure that VOL is low

enough to cut off nfets in next stage

Reduces static power consumption (good!)

Increases output rise time (bad!)

One alternative: Dynamic CMOS gates

Naser Mohammadzadeh 19

Page 20: Lecture 0- Logic Families

Static vs. Dynamic Circuits In static circuits at every point in time (except when switching)

the output is connected to either GND or VDD via a low

resistance path.

Dynamic circuits rely on the temporary storage of signal values

on the capacitance of high impedance nodes.

Naser Mohammadzadeh 20

Page 21: Lecture 0- Logic Families

Dynamic Gates

Naser Mohammadzadeh 21

Precharge Evaluation

Page 22: Lecture 0- Logic Families

Dynamic Gates

Naser Mohammadzadeh 22

Page 23: Lecture 0- Logic Families

Dynamic Gates Inputs must be stable before CLK goes high because once

output has been discharged it won’t go high again until

next cycle

For same reason, noise/glitches on inputs cannot exceed

nfet threshold, a much more stringent requirement than for

static CMOS gates

Naser Mohammadzadeh 23

Page 24: Lecture 0- Logic Families

Good News & Bad News The good news:

Dynamic gates are faster than static gates despite the extra

“evaluate” fet in the pull-down path because of the

reduction in selfloading and the elimination of the pullup

short-circuit current during the first part of the output

transition

The bad news:

Dynamic gates cannot be cascaded

Naser Mohammadzadeh 24

Page 25: Lecture 0- Logic Families

Cascading Problem

Solution: develop techniques that avoid races

CMOS Domino logic

CMOS NORA (no race) logic & CMOS Zipper logic Naser Mohammadzadeh 25

Page 26: Lecture 0- Logic Families

CMOS Domino Logic

Naser Mohammadzadeh 26

Precharge: high

Evaluate: falls (maybe)

Precharge: low

Evaluate: rises (maybe)

Page 27: Lecture 0- Logic Families

CMOS Domino Logic When CLK is low, dynamic node is precharged high

and buffer inverter output is low. Nfets in the next logic

block will be off.

When CLK goes high, dynamic node is conditionally

discharged and the buffer output will conditionally go

high. Since discharge can only happen once, buffer

output can only make one low-to-high transition

Naser Mohammadzadeh 27

Page 28: Lecture 0- Logic Families

CMOS Domino Logic When domino gates are cascaded, as each gate

“evaluates”, if its output rises, it will trigger the

evaluation of the next stage, and so on… like a line of

dominos falling. Like dominos, once the internal node

in a gate “falls”, it stays “fallen” until it is “picked up”

by the precharge phase of the next cycle. Thus many

gates may evaluate in one evaluation cycle.

Naser Mohammadzadeh 28

Page 29: Lecture 0- Logic Families

More Domino-Style Circuits Weak pfet “keeper” keeps dynamic node pulled high during

evaluate phase if it’s not being pulled down through nfets

gate is static in both clock phases.

Naser Mohammadzadeh 29

Page 30: Lecture 0- Logic Families

More Domino-Style Circuits “Latching” pfet acts like keeper above unless dynamic

node gets pulled down during evaluate phase. When buffer

output goes high it switches keeper off saving static

power. Good for leakage current problems...

Naser Mohammadzadeh 30

Note that you can put an even

number of static gates after the

inverter and before the next

domino gate.

Page 31: Lecture 0- Logic Families

Optimizing Domino Logic (I)

Naser Mohammadzadeh 31

Page 32: Lecture 0- Logic Families

Optimizing Domino Logic (I) Since domino gate outputs are low during the precharge

phase, gates which have only domino output nodes as

inputs don’t need the “evaluate” nfet since all the nfets in

the pulldown will be off anyway.

But remember: if evaluate nfet is removed, precharge will

“ripple” through cascaded gates just like evaluates do.

Maybe only remove for gates where nfet stack is tall (i.e.

resistive) enough that pullup will start to “win” anyway

before ripple reaches gates and turns off pulldowns.

Naser Mohammadzadeh 32

Page 33: Lecture 0- Logic Families

Optimizing Domino Logic (II)

Naser Mohammadzadeh 33

In domino logic circuits we want evaluatation phase to

happen as quickly as possible. We can size fets to optimize

evaluation phase speed.

Some designers also “grade” the sizes of the

nfets, smallest at the top (increase in R

offset by decrease in C)

CLK

Page 34: Lecture 0- Logic Families

Optimizing Domino Logic (II) If we make the nfet in the output inverter much smaller

than the pfet then

The load on the internal node decreases, and

The switching threshold of the inverter increases

Both effects make the gate evaluate sooner. If large >>

small, the gate delay can be cut almost in half! However,

the other edge is very slow, so ripple precharge is a

problem.

Naser Mohammadzadeh 34

Page 35: Lecture 0- Logic Families

A Few “Little” Difficulties “Charge sharing” between nodes in the pull-down network

and the dynamic node can unintentionally reduce the voltage

of the dynamic node enough to switch output buffer

The addition of the output inverter makes domino gates non-

inverting. One can often design around this limitation, but

some circuits cannot be implemented solely using domino

logic unless both polarities (true and complement) of the

inputs are available. If both polarities of inputs are available

then we can generate both polarities of internal signals with

two domino gates so subsequent stages will have both

polarities of their inputs available too Naser Mohammadzadeh 35

Page 36: Lecture 0- Logic Families

Charge Sharing (I) Suppose the dynamic node has been

discharged during the previous evaluate

cycle. Then during precharge, all the

intermediate nodes in the pull-down chain

will remain discharged while the dynamic

node is precharged. Calculate the voltage

on the dynamic node when CLK goes

high. When CLK goes high, the voltage

on the dynamic node goes to

36

31.1 3.3

3 6DD DD

CV v for V v

C C

which is low enough to switch the output

inverter.

Naser Mohammadzadeh

Page 37: Lecture 0- Logic Families

Charge Sharing Fortunately this situation is easily detected by CAD tools

and can be resolved by

Adding additional precharge devices to intermediate nodes

Increasing size of output buffer which will increase

capacitance of dynamic node (faster output buffer may

compensate for larger internal capacitance).

Naser Mohammadzadeh 37

Page 38: Lecture 0- Logic Families

Charge

Sharing

Naser Mohammadzadeh 38

Additional precharge

devices to eliminate

charge sharing problems

Page 39: Lecture 0- Logic Families

Domino Logic Design To convert to Domino-style design we need to create

schematic that uses non-inverting gates:

I. Look for CMOS gates followed by inverter

II. Use Demorgan’s Law to create non-inv gates

Naser Mohammadzadeh 39

Page 40: Lecture 0- Logic Families

Domino Logic Design

Naser Mohammadzadeh 40

Page 41: Lecture 0- Logic Families

Dual-rail Domino Logic Domino circuits that generate both polarities of output

Naser Mohammadzadeh 41

Page 42: Lecture 0- Logic Families

DCVS Logic DCVSL = differential cascade voltage switch logic

Static logic—consumes no dynamic power

Uses latch to compute output quickly

Requires true/complement inputs, produces

true/complement outputs

Naser Mohammadzadeh 42

Page 43: Lecture 0- Logic Families

DCVS Structure

Naser Mohammadzadeh 43

Page 44: Lecture 0- Logic Families

DCVS Operation Exactly one of true/complement pull-down networks will

complete a path to the power supply

Pull-down network will lower output voltage, turning on

other p-type, which also turns off p-type for node which is

going down

Naser Mohammadzadeh 44

Page 45: Lecture 0- Logic Families

DCVS Example

Naser Mohammadzadeh 45

Page 46: Lecture 0- Logic Families

CMOS NORA Logic (NP Domino)

46 Naser Mohammadzadeh

Page 47: Lecture 0- Logic Families

CMOS NORA Logic (NP Domino) If we turn a dynamic gate “upside down” and use pfets to

build the logic block, we get a logic gate that “precharges”

low and “discharges” high. By using these gates in an

alternating sequence with regular nfet dynamic gates we

can eliminate the race problem we had with nfet-only

dynamic gate sequences and hence we don’t need the

buffer inverter present in domino gates.

Naser Mohammadzadeh 47

Page 48: Lecture 0- Logic Families

CMOS NORA Logic (NP Domino) Removing the buffer is a mixed blessing

we may need it for drive reasons

we need it to keep compatibility with other domino gates

It makes NORA logic very susceptible to noise

since during the evaluate phase all information is stored

dynamically

Naser Mohammadzadeh 48

Page 49: Lecture 0- Logic Families

CMOS Zipper

Naser Mohammadzadeh 49

Page 50: Lecture 0- Logic Families

CMOS Zipper Similar architecture with CMOS NORA

The clock signals are different

Naser Mohammadzadeh 50

VDD + VTH,p

Page 51: Lecture 0- Logic Families

Domino Life Cycle

Naser Mohammadzadeh 51

Page 52: Lecture 0- Logic Families

Advantages of Dynamic Logic Smaller area than fully static gates

Smaller parasitic capacitances hence higher speed

Reliable operation if correctly designed. Concerns:

Charge sharing with dynamic nodes

Sub-threshold leakage currents in evaluation logic

Alpha particle immunity

Vdd/GND noise and resistance

Naser Mohammadzadeh 52

Page 53: Lecture 0- Logic Families

Pass Transistor Quiz

Naser Mohammadzadeh 53

VDD

A

A’ B’

B

Out

C’

C

C

C’ A

A’ B

B’

VDD

Out A B C

F A BVDD

VDD VDD

VDD-Vt

VDD

Vout=?

2out DD tV V V