switching circuits composed of switching elements called gates that implement logical blocks or...

42
Switching circuits •Composed of switching elements called “gates” that implement logical blocks or switching expressions •Positive logic convention (active high): – High voltage or H Boolean 1 – Low voltage or L Boolean 0 •Negative logic convention (active low): – Low voltage or L Boolean 1 – High voltage or H Boolean 0

Upload: jose-jeffers

Post on 31-Mar-2015

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Switching circuits

• Composed of switching elements called “gates” that implement logical blocks or switching expressions

• Positive logic convention (active high):– High voltage or H Boolean 1– Low voltage or L Boolean 0

• Negative logic convention (active low):– Low voltage or L Boolean 1– High voltage or H Boolean 0

Page 2: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Switching circuits

• Logic variables inputs/outputs “signals”

• Signals “asserted” when the voltage level assumes the corresponding “1” value– Positive logic asserted by H– Negative logic asserted by L

• Logic variables are written complemented when they are active low– Active high signals: a, b, c– Active low signals: ā, ē, ū

Page 3: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates

• Logic gates switching functions• Gate symbols – two sets

Page 4: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates

• Gate symbols – two sets

Page 5: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates

• The NAND logic function and gate

Page 6: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates

• The NAND gate can be used to implement all 3 elementary operations of switching algebra: AND, OR, NOT

Page 7: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates

• The set {AND, OR, NOT} implements any switching function (by definition): it is functionally complete

• Therefore, the “NAND” gate can be used to implement any switching function– It is functionally complete, or “primitive”

Page 8: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates

• The NOR logic function and gate

Page 9: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates

• The NOR function can be used to implement all 3 elementary operations of switching algebra: AND, OR, NOT– It is functionally complete too

Page 10: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates

• The NOR logic function and gate

Page 11: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates and equivalence

• CMOS is “inverting” logic– NOR and NAND are easier to implement than OR

and AND– They are implemented as NOR or NAND followed

by an inverter

• More than one representation is possible for the same switching function

• Different circuits of logic gates might perform the same switching function– Simpler networks are preferable– Need to analyze for equivalence and transform

Page 12: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates and equivalence

• Equivalent logic networks

Page 13: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic gates and equivalence

• Proving the equivalence

Page 14: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Digital circuits

• Analysis– Given a circuit, abstract the Boolean function it is

implementing and try to improve the implementation or verify the function• From gate diagrams• From timing diagrams

• Synthesis– Given a switching function, obtain the

corresponding switching network

Page 15: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Analysis

• Timing diagram

Page 16: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Analysis

• Truth table

Page 17: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Analysis

• Switching network

Page 18: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Combinational analysis

... derives truth table

Page 19: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Signal expressions

Multiply out:F = ((X + Y) Z) + (X Y Z) = (X Z) + (Y Z) + (X Y Z)

Page 20: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

New circuit, same function

Page 21: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

F = ((X + Y’)Z) + X’YZ’Note: [X’YZ’]Z = 0 (X + Y’)X’YZ’ = 0 (X’YZ’)(X’YZ’) = X’YZ’So, F = [(X + Y’) + X’YZ’][Z + X’YZ’] =(X + Y’ + X’)(X + Y’ + Y)(X + Y’ + Z’)(Z + X’)(Z + Y)(Z + Z’) =(1)(1)(X + Y’ + Z’)(X’ + Z)(Y + Z)(1) = (X + Y’ + Z’)(X’ + Z)(Y + Z)

Circuit:

Any number of manipulations can yield equivalent circuitse.g.

Page 22: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Push bubbles to obtain cancellations

Page 23: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Push bubbles to obtain cancellations

Page 24: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Conclude:given circuit ==> many equivalent equations

circuit does not determine equation

Page 25: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Two-level AND-OR

Three-level equivalent

Two-level NAND-NAND

Also, equation does not determine circuit:

Page 26: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Combinational analysisgiven circuit, determine function

Combinational synthesisgiven function, determine circuit

Page 27: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Prime number detector: F = (1, 2, 3, 5, 7, 11, 13)

AND-OR design'' 0033 NNNN

Page 28: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Derive truth table or expand:

A = P + E EX’ (W D G)’ = P + E EX’ (W’ + D’ + G’)= P + E EX’ W’ + E EX’ D’ + E EX’ G’

Alarm:

Page 29: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

A = P + E EX’ W’ + E EX’ D’ + E EX’ G’

Page 30: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

NANDs, NORs have fewer transistors than ANDs, ORsAND-OR converts readily to NAND-NAND

Page 31: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Complication if some inputs go directly to second stage:

Page 32: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

OR-AND to NOR-NOR

Page 33: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Bubble-pushing produces non-standard gateSolution: inverters

Page 34: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Bubble-pushing produces non-standard gateSolution: inverters

Page 35: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Bubble-pushing produces non-standard gateSolution: inverters

Page 36: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Propagation delay

Page 37: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Propagation delay

Page 38: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active
Page 39: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Synthesis

• SOP functions -> AND – OR networks• POS functions -> OR – AND networks• Not always possible to design directly

– Fan-in and out restrictions

• Most designs are modular and multi-level• Modern designs are too complex• Design and testing by computers

– VLSI - CAD

Page 40: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active
Page 41: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Logic simulation

• Two states only for an ideal logic signal– Two gates driving the same line in opposite

directions– Input left not connected or “floating”

• Third state ‘X’ is added to the set of states• Truth tables change

Page 42: Switching circuits Composed of switching elements called gates that implement logical blocks or switching expressions Positive logic convention (active

Synthesis approaches illustrated to this point:

Truth table derivation of minterms

Ad hoc construction of logic equation

Need systematic approach that minimizes hardware

Karnaugh maps

Quine-McCluskey algorithm