combinational logic circuitcontents.kocw.net/kocw/document/2015/mokwon/choyongheui/... ·...

29
Combinational Logic Circuit Yong Heui Cho @ Mokwon University

Upload: others

Post on 15-Mar-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

Combinational Logic Circuit

Yong Heui Cho @ Mokwon University

Page 2: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

2

Basic Computer Design

2. Introduction to Arduino

3. Basic Computer Architecture

4. Combinational Logic Circuit

5. Sequential Logic Circuit

Page 3: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

3

Analog & Digital

3

V

T 0

V

T 0

Analog (유사성) Digital (숫자 집합)

- Continuous @ time and amplitude - Precise representation - Sensitive to noise - Old theory

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

- Discrete @ time or amplitude - Approximate presentation - Robust to noise - Modern theory

Page 4: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

4

Analog

4

Input Signal Output Signal

arithmetic sum

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 5: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

5

Digital

5

Input Signal Output Signal

logical sum

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 6: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

6

Binary System ○ Binary System

– 0 or 1

– Notation: 10001001(2)

– Bit (binary digit)

– Byte = 8 bits

○ Decimal to Binary Conversion

6

65 2

32 … 1

16 … 0

08 … 0

04 … 0 02 … 0 01 … 0

2

2 2

2

2

1000001 128 64 32 16 8 4 2 1

0 1 0 0 0 0 0 1 Binary :

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 7: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

7

Power of 2

7 □ Courtesy to Imran Waris, Digital and Logic Design, slideshare.

Page 8: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

8

Decimal & Hexadecimal

8 □ Courtesy to Imran Waris, Digital and Logic Design, slideshare.

Page 9: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

9

Boolean Algebra • Logical Sum : + ► A + B = Y

0 + 0 = 0

0 + 1 = 1

1 + 1 = 1

• Logical Product : • ► A • B = Y

0 • 0 = 0

0 • 1 = 0

1 • 1 = 1

• Logical Not : ~, ‾, n,’ ► A ( ~A, nA, A’) = Y

0’ = 1

1’ = 0

9

A B Y

0 0 0

0 1 1

1 0 1

1 1 1

Truth Table

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 10: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

10

Venn Diagram

10

XY

XY XY

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

John Venn

Page 11: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

11

De Morgan Law

11

A + B = A • B

A • B = A + B

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Augustus De Morgan

Page 12: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

12

Logic Signals

12 □ Courtesy to Imran Waris, Digital and Logic Design, slideshare.

Page 13: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

13

Buffer & NOT Gate

13

NOT Gate Buffer

Input Output

0 1

1 0

Input Output Input Output

Input Output

0 0

1 1

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 14: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

14

Analog NOT Gate Circuit

14

Input

Output

B

C

E

B = 0

B = 1

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

A NOT gate is a transistor (TR)!

Page 15: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

15

Gate? • Logic gate

– Physical device implementing a Boolean function

• “Gate” is the terminal name of a vacuum tube.

15

Page 16: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

16

AND & NAND Gate

16

AND Gate NAND (NOT + AND) Gate

Input A

Input B Output

Input A

Input B Output

Input A Input B Output

0 0 0

0 1 0

1 0 0

1 1 1

Input A Input B Output

0 0 1

0 1 1

1 0 1

1 1 0

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 17: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

17

Analog AND Gate Circuit

17

B

C

E

=> B

C E

Output

Input A Input B

< TR > < Switch >

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

An AND gate is series wire connection!

+5 [V]

Page 18: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

18

OR & NOR Gate

18

OR Gate NOR (NOT + OR) Gate

Input A

Input B Output

Input A

Input B Output

Input A Input B Output

0 0 0

0 1 1

1 0 1

1 1 1

Input A Input B Output

0 0 1

0 1 0

1 0 0

1 1 0

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 19: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

19

Analog OR Gate Circuit

19

Input A Input B

Output

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

An OR gate is parallel wire connection!

+5 [V]

Page 20: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

20

XOR & XNOR Gate

20

XOR (Exclusive OR) Gate XNOR Gate

Input A

Input B Output

Input A

Input B Output

Input A Input B Output

0 0 0

0 1 1

1 0 1

1 1 0

Input A Input B Output

0 0 1

0 1 0

1 0 0

1 1 1

A ⊙ B = Y A B = Y

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 21: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

21

Combinational Logic

21

Input A

Input B

Input C

Input D

Output

(A+B) (CD) = Output

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 22: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

22

Classification

22

Page 23: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

23

Half Adder

23

Half Adder

Input A

Input B

Sum

Carry

Input A

Input B Sum Carry

0 0 0 0

0 1 1 0

1 0 1 0

1 1 0 1

0 +0 00

0 +1 01

1 +0 01

1 +1 10

0010011 +1000001

1010010

Half Adder

Half Adder

Half Adder

Half Adder

Half Adder

Half Adder

Half Adder

Carry ?

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 24: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

24

Circuit of Half Adder

24

Input A

Input B SUM

CARRY

(A B) = SUM A • B = CARRY

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 25: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

25

Full Adder

25

Half Adder

Half Adder

Input A

Input B

SUM

CARRY Input C

Input A

Input B Input C SUM CARRY

0 0 0 0 0

0 1 0 1 0

1 0 0 1 0

1 1 0 0 1

Input A

Input B Input C SUM CARRY

0 0 1 1 0

0 1 1 0 1

1 0 1 0 1

1 1 1 1 1

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 26: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

26

Circuit of Full Adder

26

Carry

Input A

Input B SUM

Carry Input

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 27: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

27

Combination of Full Adder

27

Full Adder

Half Adder

Full Adder

Full Adder

Full Adder

Full Adder

Full Adder

Full Adder

A1 B1 A2 B2 A3 B3 A4 B4 A5 B5 A6 B6 A7 B7 A8 B8

SUM1 SUM2 SUM3 SUM4 SUM5 SUM6 SUM7 SUM8 CARRY

10010011 +10010001 100100100

□ Courtesy to 전재욱, 논리회로 설계실험, 성균관대학교.

Page 28: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

28

Encoder & Decoder

28

Page 29: Combinational Logic Circuitcontents.kocw.net/KOCW/document/2015/mokwon/choyongheui/... · 2016-09-09 · Combinational Logic Circuit Yong Heui Cho @ Mokwon University . 2 Basic Computer

29

Digital Door Lock

29