Docsity

digital circuit slides, Slides of Circuit Theory

Partial preview of the text

Download digital circuit slides and more Slides Circuit Theory in PDF only on Docsity!

Lecture 06: 논리식의 간소화 (Part 2)

IT융합대학교 컴퓨터공학과

Spring 2025

Content

09. NAND와 NOR 게이트로의 변환

10. XOR와 XNOR 게이트

07. Quine-McCluskey 간소화 알고리즘

❑ 용어정리 (Terminology)

QM 간소화 알고리즘

Implicant :

A single 1 or group of 1 s which are adjacent and can be combined in the k-map

K-map에서 서로 인접하여 하나로 묶일 수 있는 단일 1 또는 1 들의 그룹

Implicants:
Implicants:

07. Quine-McCluskey 간소화 알고리즘

❑ 용어정리 (Terminology)

QM 간소화 알고리즘

Prime Implicant (PI):

The largest group of 1 s which can be circled to cover a particular 1

PI:

07. Quine-McCluskey 간소화 알고리즘

❑ 예시:^ find^ the^ all^ the^ EPI^ in^ the^ following:

QM 간소화 알고리즘 Lets first find all PIs 12,13 can be grouped in two ways, generating 2 PIs more

07. Quine-McCluskey 간소화 알고리즘

❑ 예시:^ find^ the^ all^ the^ EPI^ in^ the^ following^ (…continuing)

QM 간소화 알고리즘

(non- EPIs)

(EPI)

(EPI)

All the 1s in the PI: 12- 13 - 15 - 14 PI: 12- 13 - 8 - 9 are covered by other PIs, so they are non EPI

Using EPI and non EPIs we can find the minimum solution !!!

07. Quine-McCluskey 최소화 알고리즘

❑ QM 방법을 이용한 간소화 과정

PI 차트를 이용하여
EPI 집합을 구한다.
PI 들을 구한다.
AB + AB = A

Quine-McCluskey 방법 ❶ 진리표에서 최소항을 모두 찾는다. Find all the minterms from the truth table. ❷ 최소항 중에서 입력변수에 1 이 나타나는 개수에 따라서 인덱스(index)를 매겨 그룹 을 만든다. Group the minterms by indexing them according to the number of 1s in their input variables. ❸ 각 그룹내의 항들을 모두 비교하여 한 비트만 다른 항들을 찾아서 간소화하 고, 간소화에 사용된 항들을 표시한다. Compare all terms within each group to find and simplify those that differ by only one bit, and mark the terms used in the simplification. ❹ 3 의 과정을 반복하여 더 이상 간소화 되지 않을 때까지 계속한다. Repeat step ❸ until no further simplification is possible. ❺ 간소화 과정이 끝나고 표시되지 않은 항들이 PI(prime implicants, 주항)가 된 다. After simplification, the unmarked terms become the prime implicants (PI) ❻ 중복된 PI를 찾기 위하여 차트를 만들고, EPI(essential prime implicants, 필수 주항)를 찾 는다. Create a chart to identify duplicate PIs and find the essential prime implicants (EPI) ❼ EPI에 포함되는 PI들을 제거한다. Eliminate the PIs that are covered by the EPIs. ❽ EPI에 포함되지 않은 항들에 대해서 최소 개 수의 SOP 식을 찾는다. For the terms not covered by the EPIs, find the minimum number of SOP expressions. 단계 1 단계^2 단계^3

07. Quine-McCluskey 최소화 알고리즘

❑ QM 방법을 이용한 간소화 과정

  • 두 항을 결합하기 위한 QM 방법의 첫 번째 규칙은 오직 한 비트만 다를 때 제거된다는 것이다. The first rule of the QM method for combining two terms is that they can be combined only if they differ by exactly one bit.
F A B C D ( , , , ) m (0011, 1011)
ABCD ABCD BCD
A B C D
  • 0 1 1
A B C D
변수가 결합되는 경우 변수가^ 결합되지^ 못하는^ 경우
F A B C D ( , , , ) m (0111, 1011)
ABCD ABCD

두 자리 이상 다르면 결합할 (combine) 수 없다. 한 자리만 다르면 결합할(combine) 수 있다. Quine-McCluskey 방법

XY+ XY’=X

(Distributive + complement laws)

13

07. Quine-McCluskey 최소화 알고리즘

minterm 10 진^2 진^ index ( 0 ) 0 0 0 0 ( 1 ) 0 0 1 1 ( 4 ) 1 0 0 1 ( 5 ) 1 0 1 2

ABC
ABC
ABC
ABC

표 1 Group index Minterm decimal A B C 0 (0) 0 0 0 1 (1) (4) 0 0 1 1 0 0 2 (5) 1 0 1 ( , , ) (0,1, 4,5) (000, 001,100,101) F A B C ABC ABC ABC ABC m m = + + + =  =  QM 방법을 이용한 간소화

  • QM 방법에서의 인덱스 분류 (예시 2 ) ❷ 최소항 중에서 입력변수에 1 이 나타나는 개수에 따라서 인덱스(index)를 매겨 그룹을 만든다. Group the minterms by indexing them according to the number of 1s in their input variables. ❶ 진리표에서 최소항을 모두 찾는다. Find all the minterms from the truth table.

07. Quine-McCluskey 최소화 알고리즘

F ( A , B , C )= AB + BC + BC + AB

표 1 index decimal A B C 0 (0) 0 0 0 ✓ 1 (1) (4) 0 0 1 1 0 0 ✓ ✓ 2 (5) 1 0 1 ✓ 표 2 index decimal A B C 0 (0,1) (0,4) 0 0 -

  • 0 0 1 (1,5) (4,5)
  • 0 1 1 0 - 표 1 index (^) decimal A B C 0 (0) 0 0 0 ✓ 1 (1) (4) 0 0 1 1 0 0 ✓ ✓ 2 (5) 1 0 1 ✓ 표 2 index (^) decimal A B C 0 (0,1) (0,4) 0 0 -
  • 0 0 ✓ ✓ 1 (1,5) (4,5)
  • 0 1 1 0 - ✓ ✓ 표 3 index decimal A B C 0 (0,1, 4,5) - 0 -
F ( A , B , C )= B

1 1 1 A BC 00 01 11 10 0 1 1 QM 방법을 이용한 간소화

2 QM 방법을 이용한 간소화 단계 2: 간소화

𝐹(𝐴, 𝐵, 𝐶) = ෍ 𝑚( 0 , 1 , 4 , 5 )

16

다음 식을 QM방법을 이용하여 간소화 하시오.
풀이 (^ ,^ ,^ ,^ )^ (0, 1, 2, 3,5,7,8,10,12,13,15)
F A B C D m
m

F A B C D ( , , , ) =  m (0, 1, 2, 3,5,7,8,10,12,13,15)

표 1 index decimal A B C D 0 (0) 0 0 0 0 1 (1) (2) (8) 0 0 0 1 0 0 1 0 1 0 0 0 2 (3) (5) (10) (12) 0 0 1 1 0 1 0 1 1 0 1 0 1 1 0 0 3 (7) (13) 0 1 1 1 1 1 0 1 4 (15) 1 1 1 1

07. Quine-McCluskey 최소화 알고리즘 QM^ 방법을^ 이용한^ 간소화

표 1 index decimal A B C D 0 (0) 0 0 0 0 ✓ 1 (1) (2) (8) 0 0 0 1 0 0 1 0 1 0 0 0 ✓ ✓ ✓ 2 (3) (5) (10) (12) 0 0 1 1 0 1 0 1 1 0 1 0 1 1 0 0 ✓ ✓ ✓ ✓ 3 (7) (13) 0 1 1 1 1 1 0 1 ✓ ✓ 4 (15) 1 1 1 1 ✓ 표 2 index decimal A B C D 0 (0,1) (0,2) (0,8) 0 0 0 - 0 0 - 0

  • 0 0 0 1 (1,3) (1,5) (2,3) (2,10) (8,10) (8,12) 0 0 - 1 0 - 0 1 0 0 1 -
  • 0 1 0 1 0 - 0 1 - 0 0 2 (3,7) (5,7) (5,13) (12,13) 0 - 1 1 0 1 - 1
  • 1 0 1 1 1 0 - 3 (7,15) (13,15)
  • 1 1 1 1 1 - 1

07. Quine-McCluskey 최소화 알고리즘 QM^ 방법을^ 이용한^ 간소화

Column 1 index decimal A B C D 0 (0) 0 0 0 0 ✓ 1 (1) (2) (8) 0 0 0 1 0 0 1 0 1 0 0 0 ✓ ✓ ✓ 2 (3) (5) (10) (12) 0 0 1 1 0 1 0 1 1 0 1 0 1 1 0 0 ✓ ✓ ✓ ✓ 3 (7) (13) 0 1 1 1 1 1 0 1 ✓ ✓ 4 (15) 1 1 1 1 ✓ Column 2 index decimal A B C D 0 (0,1) (0,2) (0,8) 0 0 0 - 0 0 - 0

  • 0 0 0 ✓ ✓ ✓ 1 (1,3) (1,5) (2,3) (2,10) (8,10) (8,12) 0 0 - 1 0 - 0 1 0 0 1 -
  • 0 1 0 1 0 - 0 1 - 0 0 ✓ ✓ ✓ ✓ ✓  2 (3,7) (5,7) (5,13) (12,13) 0 - 1 1 0 1 - 1
  • 1 0 1 1 1 0 - ✓ ✓ ✓  3 (7,15) (13,15)
  • 1 1 1 1 1 - 1 ✓ ✓ Column 3 Index decimal A B C D 0 (0,1,2,3) (0,2,8,10) **0 0 - -
  • 0 - 0**   1 (1,3,5,7) 0 - - 1  2 (5,7,13,

- 1 - (^1) 

07. Quine-McCluskey 최소화 알고리즘 QM^ 방법을^ 이용한^ 간소화

감소화 할수 없음 → 사용하지 안한 term들 표시

IMPLICANTS 0 1 2 3 5 7 8 10 12 13 15 Decimal (^) A B C D (0,1,2,3) 0 0 - - (0,2,8,10) - 0 - 0 (1,3,5,7) 0 - - 1 (5,7,13,15) - 1 - 1 (8,12) 1 – 0 0 (12,13) 1 1 0 - AB BD AD BD ACD ABC

  • EPI 찾기

07. Quine-McCluskey 최소화 알고리즘

F A B C D ( , , , ) = AB + BD + AD + BD + ACD + ABC QM^ 방법을^ 이용한^ 간소화 F A B C D ( , , , ) = (^)  m (0, 1, 2, 3,5,7,8,10,12,13,15)

사용하지 안한 term들을 통해 새로운 표 만듬