29
Combinational Logic Circuit Yong Heui Cho @ Mokwon University Some of slides are referred to: [1] 전전전 , 논논논논 논논논논 , 전전전전전전 . [2] Imran Waris, Digital and Logic Design, slideshare, 2014.

Combinational Logic Circuit

Embed Size (px)

Citation preview

Page 1: Combinational Logic Circuit

Combinational Logic Circuit

Yong Heui Cho @ Mokwon University

Some of slides are referred to:[1] 전재욱 , 논리회로 설계실험 , 성균관대학교 .[2] Imran Waris, Digital and Logic Design, slideshare, 2014.

Page 2: Combinational Logic Circuit

2

Basic Computer Design

2. Introduction to Arduino

3. Basic Computer Archi-tecture4. Combinational Logic Circuit5. Sequential Logic Circuit

Page 3: Combinational Logic Circuit

3

Analog & Digital

3

V

T0

V

T0

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 Circuit

4

Analog

4

Input Signal Output Signal

arithmetic sum

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

Page 5: Combinational Logic Circuit

5

Digital

5

Input Signal Output Signal

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

Page 6: Combinational Logic Circuit

6

Binary System○ Binary System

– 0 or 1– Notation: 10001001(2)

– Bit (binary digit)– Byte = 8 bits

○ Decimal to Binary Conversion

6

65232 … 116 … 008 … 004 … 002 … 001 … 0

22222

1000001128 64 32 16 8 4 2

10 1 0 0 0 0 0 1Binary :

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

Page 7: Combinational Logic Circuit

7 7

Power of 2

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

Page 8: Combinational Logic Circuit

8 8

Decimal & Hexadecimal

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

Page 9: Combinational Logic Circuit

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 Y0 0 00 1 11 0 11 1 1

Truth Table

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

Page 10: Combinational Logic Circuit

10

Venn Diagram

10

XY

XY XY

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

John Venn

Page 11: Combinational Logic Circuit

11

De Morgan Law

11

A + B = A • B

A • B = A + B

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

Augustus De Morgan

Page 12: Combinational Logic Circuit

12 12

Logic Signals

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

Page 13: Combinational Logic Circuit

13

Buffer & NOT Gate

13

NOT Gate Buffer

Input Out-put

0 11 0

Input Output Input Output

Input Out-put

0 01 1

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

Page 14: Combinational Logic Circuit

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 Circuit

15 15

Gate?• Logic gate– Physical device implementing a Bool-

ean function• “Gate” is the terminal name of a

vacuum tube.

Page 16: Combinational Logic Circuit

16

AND & NAND Gate

16

AND Gate NAND (NOT + AND) Gate

Input AInput B Output

Input AInput B Output

Input A

Input B

Out-put

0 0 00 1 01 0 01 1 1

Input A

Input B

Out-put

0 0 10 1 11 0 11 1 0

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

Page 17: Combinational Logic Circuit

17

Analog AND Gate Circuit

17

BC

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 Circuit

18

OR & NOR Gate

18

OR Gate NOR (NOT + OR) Gate

Input A

Input BOutput

Input A

Input BOutput

Input A

Input B

Out-put

0 0 00 1 11 0 11 1 1

Input A

Input B

Out-put

0 0 10 1 01 0 01 1 0

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

Page 19: Combinational Logic Circuit

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 Circuit

20

XOR & XNOR Gate

20

XOR (Exclusive OR) Gate XNOR Gate

Input A

Input BOutput

Input A

Input BOutput

Input A

Input B

Out-put

0 0 00 1 11 0 11 1 0

Input A

Input B

Out-put

0 0 10 1 01 0 01 1 1

A ⊙ B = YA B = Y□ Courtesy to 전재욱 , 논리회로 설계실험 , 성균관대학교 .

Page 21: Combinational Logic Circuit

21

Combinational Logic

21

Input A

Input B

Input C

Input D

Output

(A+B) (CD) = Output

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

Page 22: Combinational Logic Circuit

22 22

Classification

Page 23: Combinational Logic Circuit

23

Half Adder

23

HalfAdder

Input A

Input B

Sum

Carry

Input A

Input B

Sum Carry

0 0 0 00 1 1 01 0 1 01 1 0 1

0+000

0+101

1+001

1+110

0010011+1000001

1010010

HalfAdder

HalfAdder

HalfAdder

HalfAdder

HalfAdder

HalfAdder

HalfAdder

Carry ?

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

Page 24: Combinational Logic Circuit

24

Circuit of Half Adder

24

Input A

Input BSUM

CARRY

(A B) = SUMA • B = CARRY

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

Page 25: Combinational Logic Circuit

25

Full Adder

25

HalfAdder

HalfAdder

Input A

Input B

SUM

CARRYInput C

Input A

Input B

Input C SUM CARR

Y

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 CARR

Y

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 Circuit

26

Circuit of Full Adder

26

Carry

Input AInput B

SUM

CarryInput

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

Page 27: Combinational Logic Circuit

27

Combination of Full Adder

27

FullAdder

HalfAdder

FullAdder

FullAdder

FullAdder

FullAdder

FullAdder

FullAdder

A1 B1A2 B2A3 B3A4 B4A5 B5A6 B6A7 B7A8 B8

SUM1SUM2SUM3SUM4SUM5SUM6SUM7SUM8CARRY

10010011+10010001100100100

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

Page 28: Combinational Logic Circuit

28 28

Encoder & Decoder

Page 29: Combinational Logic Circuit

29 29

Digital Door Lock