signals and systemsdesign process for combinational systems. step 1: represent each of the inputs...

69
Chapter 2 Signals and Systems Digital Logic System Prof. Wonhee Kim

Upload: others

Post on 11-Apr-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Chapter 2

Signals and SystemsDigital Logic System

Prof. Wonhee Kim

Page 2: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems Step 1: Represent each of the inputs and outputs in binary

Step 1.5: If necessary, break the problem into smaller subproblems

Step 2: Formalize the design specification either in the form of a truth table or of an algebraic expression

Step 3: Simplify the description

Step 4: Implement the system with the available components

2

System

Digital input

Digital output

Page 3: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems 1: High, High voltage, True

0: Low, Low voltage, False

X: Don’t care It does not matter what output is when a and b are inputtedex) It does not matter what output is when a =1 and b = 1

3

Page 4: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems CE1) A system with four inputs, A, B, C, and D, and one output,

Z, such that Z=1 iff three of the input are 1.

4

System

Input A

Output ZInput B

Input C

Input D

Page 5: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems CE1) A system with four inputs, A, B, C, and D, and one output,

Z, such that Z=1 iff three of the input are 1. Concern: Only three ones?

5

Page 6: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems CE2) A single light (that can be on or off) that can be controlled

by any one of three switches. One switch is the master on/off switch. If it is down, the light is off. When the master switch is up, a change in the position of one of the other switches (from up to down or from down to up) will cause the light to change state.

6

System

Input A(Master)

Output ZInput B

Input C

Page 7: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems CE2) A single light (that can be on or off) that can be controlled

by any one of three switches. One switch is the master on/off switch. If it is down, the light is off. When the master switch is up, a change in the position of one of the other switches (from up to down or from down to up) will cause the light to change state.

7

Page 8: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems CE3) A system to do 1 bit of binary addition. It has three inputs

(the 2 bits to be added plus the carry from the next lower order bit) and produces two outputs: a sum bit and a carry to the next higher order position.

8

Systemcout

b

cin

a

s

Page 9: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems CE3) A system to do 1 bit of binary addition. It has three inputs

(the 2 bits to be added plus the carry from the next lower order bit) and produces two outputs: a sum bit and a carry to the next higher order position.

9

Page 10: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems CE4) A display driver; a system that has as its input the code for

a decimal digit and produces as its output the signals to drive a seven-segment display, such as those on most digital watches and numeric displays.

10

Page 11: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems CE4) A display driver; a system that has as its input the code for

a decimal digit and produces as its output the signals to drive a seven-segment display, such as those on most digital watches and numeric displays.

11

Page 12: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Design Process for Combinational Systems CE5) A system with nine inputs, representing two 4-bit binary

numbers and a carry input, and one 5-bit output, representing the sum. (Each input number can range from 0 to 15; the output can range from 0 to 31.)

12

Page 13: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Switching Algebra Boolean Algebra: Use 0 (false) or 1 (true).

Switching circuit: Use 0 (false) or 1 (true). High or low voltage

1) OR (written as +) a + b (read a OR b) is 1 if and only if a = 1 or b = 1 or both

2) AND (written as · or simply two variables catenated) a · b = ab (read a AND b) is 1 if and only if a = 1 and b = 1

3) NOT (written ')

a' (read NOT a) is 1 if and only if a = 0

13

Two valued switching circuits

Digital input

Digital output

Page 14: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Switching Algebra

14

Page 15: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Example

if A=B=C=1 and D=E=0, then

Switching Algebra

15

Page 16: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

True table example

Switching Algebra

16

Page 17: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

AND gate used in industries

Switching Algebra

17

AND gate

Page 18: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Basic Properties of Switching Algebra

18

Page 19: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Basic Properties of Switching Algebra

19

Page 20: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Basic Properties of Switching Algebra

20

Page 21: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Literal

Appearance of a variable or its complement

Determining the complexity of an expression

Ex) a, b'

Ex) ab' + bc'd + a'd + e': 8 literals

Product term

One or more literals connected by AND operators

Single literal is a product term

Ex) ab', bc'd, a'd, e'

Ex) ab' + bc'd + a'd + e': 4 product terms

Standard product term (Miniterm)

Product term that includes each variable of the problem

Ex) For w,x,y, and z, w'xyz'and wxyz are standard product terms, but wy'zis not.

Manipulation of Algebraic Functions

21

Page 22: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Sum of products expression (SOP)

One or more product terms connected by OR operators

Ex) ab' + bc'd + a'd + e'

Canonical sum (Sum of standard product terms)

Just a sum of products expression where all of the terms are standard product terms

Ex) w'xyz' + wx'y'z' + wx'yz + wxyz (O)x + w'y + wxy'z (X)x' + y + z (X)

Minimum sum of products expression

One of those SOP expressions for a function that has the fewest number of product terms.

Manipulation of Algebraic Functions

22

Page 23: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Manipulation of Algebraic Functions

23

Minima

Page 24: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Manipulation of Algebraic Functions

24

Not minima!

Page 25: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Sum term

One or more literals connected by OR operators

Ex) a + b, a' + b

Standard sum term (Maxterm)

Sum term that includes each variable of the problem

Ex) For w,x,y, and z, w' + x + y + z'

Product of sums expression (POS)

One or more sum terms connected by AND operators

Ex) (w + x)(w + y) 2 termsw(x + y) 2 termsw 1 term

Canonical product, or product of standard sum terms

Just a POS expression in which all of the terms are standard sum terms

Minimum product of sums expression

Manipulation of Algebraic Functions

25

Page 26: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Example)

SOP

x ' y + xy ' + xyz

POS

(x + y ')(x ' + y)(x + z‘)

Both

x ' + y + z or xyz'  

Neither

x(w' + yz) or z' + wx'y + v (xz + w‘)

Manipulation of Algebraic Functions

26

Page 27: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Implementation of Functions with AND, OR, AND NOT Gates

27

f = xyz + xyz + xyz+ xyz + xyz

two-level circuit

Page 28: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Implementation of Functions with AND, OR, AND NOT Gates

28

Minima (SOP):

f = xy + xy + x z

three-level circuit

Page 29: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Implementation of Functions with AND, OR, AND NOT Gates

29

POS:

f = (x + y)(x + y+ z)

Page 30: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Implementation of Functions with AND, OR, AND NOT Gates

30

h = z+ wxy + v(xz + w)

Page 31: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Implementation of Functions with AND, OR, AND NOT Gates

31

f = xy + xy + x z f = xy + x(y + z)

Page 32: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Implementation of Functions with AND, OR, AND NOT Gates

32

IC used in industries 7404: 6(hex) NOT gates

7408: 4(quadruple) 2-input AND 게이트

7411: 3(triple) 3-input AND 게이트

7421: 2(dual) 4-input AND 게이트

7432: 4(quadruple) 2-input OR 게이트

Page 33: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Implementation of Functions with AND, OR, AND NOT Gates

33

Page 34: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Implementation of Functions with AND, OR, AND NOT Gates

34

Page 35: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Implementation of Functions with AND, OR, AND NOT Gates

35

Page 36: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression

36

f = ab + ab + ab= a+ab= a+b

Page 37: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression

37

Page 38: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression

38

Page 39: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression

39

Page 40: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression

40

Page 41: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression

41

CE1) A system with four inputs, A, B, C, and D, and one output, Z, such that Z=1 iff three of the input are 1.

Page 42: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression CE2) A single light (that can be on or off) that can be controlled

by any one of three switches. One switch is the master on/off switch. If it is down, the light is off. When the master switch is up, a change in the position of one of the other switches (from up to down or from down to up) will cause the light to change state.

42

Page 43: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression

43

CE3) A system to do 1 bit of binary addition. It has three inputs (the 2 bits to be added plus the carry from the next lower order bit) and produces two outputs: a sum bit and a carry to the next higher order position.

Page 44: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression

44

Page 45: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

From the Truth Table to Algebraic Expression

45

Page 46: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

NAND, NOR, AND Exclusive-OR Gates

46

Page 47: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

NAND, NOR, AND Exclusive-OR Gates

47

Page 48: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

NAND, NOR, AND Exclusive-OR Gates

48

The most important reason is that with either NAND or NOR, only one type of gate is required.

These operators are said to be functionally complete.

Page 49: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

NAND, NOR, AND Exclusive-OR Gates

49

Page 50: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

NAND, NOR, AND Exclusive-OR Gates

50

Page 51: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

NAND, NOR, AND Exclusive-OR Gates

51

Page 52: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

NAND, NOR, AND Exclusive-OR Gates

52

Page 53: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

NAND, NOR, AND Exclusive-OR Gates

53

Page 54: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

NAND, NOR, AND Exclusive-OR Gates

54

Page 55: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Simplification of Algebraic Expression

55

Page 56: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Simplification of Algebraic Expression

56

Page 57: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Simplification of Algebraic Expression

57

Page 58: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Simplification of Algebraic Expression

58

Page 59: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Simplification of Algebraic Expression

59

Page 60: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Simplification of Algebraic Expression

60

Page 61: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Simplification of Algebraic Expression

61

Page 62: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Simplification of Algebraic Expression

62

Page 63: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Manipulation of Algebraic Functions and NAND Gate implementation

63

Page 64: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Manipulation of Algebraic Functions and NAND Gate implementation

64

Page 65: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Manipulation of Algebraic Functions and NAND Gate implementation

65

POS SOP

Page 66: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Manipulation of Algebraic Functions and NAND Gate implementation

66

POS SOP

Page 67: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Manipulation of Algebraic Functions and NAND Gate implementation

67

Page 68: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Manipulation of Algebraic Functions and NAND Gate implementation

68

Page 69: Signals and SystemsDesign Process for Combinational Systems. Step 1: Represent each of the inputs and outputs in binary. Step 1.5: If necessary, break the problem into smaller subproblems

Manipulation of Algebraic Functions and NAND Gate implementation

69