14:332:231 DIGITAL LOGIC DESIGN Ivan Marsic, Rutgers University - - PDF document

14 332 231 digital logic design
SMART_READER_LITE
LIVE PREVIEW

14:332:231 DIGITAL LOGIC DESIGN Ivan Marsic, Rutgers University - - PDF document

14:332:231 DIGITAL LOGIC DESIGN Ivan Marsic, Rutgers University Electrical & Computer Engineering Fall 2013 Lecture #5: Combinational Circuit Analysis Combinational Circuit Analysis Combinational circuit : Output depends only on the


slide-1
SLIDE 1

1

14:332:231 DIGITAL LOGIC DESIGN

Ivan Marsic, Rutgers University Electrical & Computer Engineering Fall 2013

Lecture #5: Combinational Circuit Analysis

2 of 13

Combinational Circuit Analysis

  • Combinational circuit: Output depends only on

the current input values (called an input combination)

– Sequential circuit’s output depends not only on its current input but also on the past sequence of inputs that have been applied to it.

  • I.e., a sequential circuit has memory of past events
  • Combinational circuit analysis: we are given a

logic diagram and need to find its formal description (truth table, logic expression)

slide-2
SLIDE 2

2

3 of 13

Kinds of Combinational Analysis

  • Exhaustive (truth table)
  • Algebraic (expressions)
  • Simulation / test bench (in the laboratory)

4 of 13

Exhaustive — Truth Table

X Y Z F Find truth table by all input combinations: X Y Z F

00001111 00001111 00110011 01010101 11001100 11001111 11110000 01010101 01000101 00100000 10101010 00110011 01100101

    Given:

slide-3
SLIDE 3

3

5 of 13

Exhaustive — Truth Table

X Y Z F

00001111 00001111 00110011 01010101 11001100 11001111 11110000 01010101 01000101 00100000 10101010 00110011 01100101

   

1 1 1 1 X 1 1 1 1 1 2 1 1 3 4 7 6 5 Row 1 1 1 1 1 1 F Z Y

Find truth table by all input combinations:

6 of 13

Algebraic — Signal Expressions

 Use theorems to transform F into another form  E.g., “multiplying out”: F = ((X+Y)Z) + (XYZ) = (XZ) + (YZ) + (XYZ)

X+Y (X+Y)Z XYZ

F = ((X+Y)Z) + (XYZ) X Y Z

X Y Z

slide-4
SLIDE 4

4

7 of 13

Algebraic — Signal Expressions

X Y Z F = ((X+Y)Z) + (XYZ)

Two-level AND-OR circuit

X+Y YZ XYZ

…and obtain a new circuit but the same function:

X Y Z

8 of 13

“Add out” Logic Function

 Two-level OR-AND circuit: “Add out” logic function is OR-AND circuit:

X Z Y F = (X+Y+Z)  (X+Z)  (Y+Z)

Y+Z X+Z X+Y+Z Z X Y

F = ((X + Y)  Z) + (X  Y  Z) = (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)

 two-level AND-OR circuit  two-level OR-AND circuit

slide-5
SLIDE 5

5

9 of 13

Another Example

G(W, X, Y, Z) = WXY + YZ

W X Y Z G WXY YZ

two-level AND-OR

W X Y Z G (WXY) (YZ)

two-level NAND-NAND

W X Y Z G WXY YZ

with 2-input gates only

(WX) Y 10 of 13 F = [ ((WX)Y) + (W+X+Y) + (W+Z) ]

Yet Another Example (1)

(WX) ((WX)Y) (W+X+Y) W X Y W X Y Z (W+Z)

using NAND and NOR gates:

slide-6
SLIDE 6

6

11 of 13

[RECALL from Lecture #4] DeMorgan Symbols

X  Y X (X  Y) (X  Y) X  Y X (X  Y) X X + Y X  Y (X + Y) (X)

OR INVERTER BUFFER NAND AND NOR

12 of 13 F = [ ((WX)Y) + (W+X+Y) + (W+Z) ] F =((W+X)Y)  (W+X+Y)  (W+Z)

Yet Another Example (1)

(WX) ((WX)Y) (W+X+Y) W X Y W X Y Z (W+Z) W+X ((W+X)Y) (W+Y+Y) W X Y W X Y Z (W+Z)

using NAND and NOR gates: after substitution of some NAND and NOR gates:

…same function, according to the generalized DeMorgan’s theorem

slide-7
SLIDE 7

7

13 of 13

Yet Another Example (2)

here, majority are AND and OR gates

W+X (W+X)Y W+X+Y F =((W+X)Y)  (W+X+Y)  (W+Z) W X Y W X Y Z W+Z

different circuit but the same function:

bubble-to-bubble: