Docsity

Introduction to the Processor Design - Study Guide | CS 3220, Exams of Computer Science

Partial preview of the text

Download Introduction to the Processor Design - Study Guide | CS 3220 and more Exams Computer Science in PDF only on Docsity!

Boolean Logic Optimizationg^

p

• We^ saw^ for^ equations

with^ up^ to^ 4,^ 5,^ maybe

even^6

variables^ we^ can^ use^

Karnaugh^ Maps

variables,^ we^ can^ use^

Karnaugh Maps– Still not perfect… not always^ easy^ to^ ensure^ that

you choose^ the^ minimal^ covering

g

• What^ do^ you^ do^ for

7 variables?^17 variables?– One approach: the Quine‐McCluskey Algorithmpp y^ g

Brief Terminologygy^ • Literals:^ basic^ input

variables – x2, x1, x

• Minterm:^ a^ single^ boolean expression

involving^ all

input^ variablesinput^ variables^ – For^ f(x2,x1,x0),^ x2^ &^ !x

&^ !x0^ is^ a^ min‐term,^ !x2^ &

x0^ is^ not

• Implicant:^ any^ “covering”

of^ part^ of^ the^ function

• Implicant:^ any^ covering

of^ part^ of^ the^ function

– Minterm is^ an^ implicant• Prime^ Implicant:^ any^ implicant which

cannot^ be

• Prime^ Implicant:^ any

implicant which^ cannot

be

covered^ by^ another^ implicant with

fewer^ literals^4

Example for part 1p^ p^

• F(x3,x2,x1,x0)^ =^ Σ^ m(1,3,4,5,6,7,10,11,12,13)

Example for part 2p^ p^ • I’ll^ do^ this^ on^ the^ white

board,^ this^ is^ for^ you^ to

follow

alongalong:^1 3 4 (^ )

5 6 7 10 11 12 13 1,3,5,7(0^ ‐ ‐^ 1) 4,5,6,7(0^1 ‐ ‐) 4 5 12 13(‐^1 0 ‐)4,5,12,13(‐^1 0 ‐) 3,11(‐^0 1 1) 10,11(1^0 1 ‐),^ (^ )

Another Example (from Midterm)p^

(^ )

• F(x3,x2,x1,x0)^ =^ S^ m(1,3,5,7,8,9,12,13,14,15) x^ ,^ x^1 0 f(x^ ,^ x^ ,^32 x^ ,^ x^ )^00 10 11 01100 0 1 100 21 0 0 110 x^ ,^31 1 1 1 x^11 0 0 1

Another Example - with Don’t Caresp^ • f(D,C,B,A)^ =^ Σ^ m(4,5,6,8,9,10,13)

+^ d(0,7,15)

P^ t^ i^ th^ (i^ l d^

th^ d^ ’t^ )

  • Part^1 is^ the^ same^ (include

the^ don’t^ cares)

  • Part^2 is^ the^ same,^ but^

exclude^ the^ don’t^ cares

  • CS3220: Processor DesignCS3220: Processor Design October 21,
  • Part 1^1^0 0 0 00 0 0 0^0 1 0 01 0 0 00 1 0 10 1 1 01 0 0 11 0 1 01 0 1 0^0 1 1 1^1 1 0 1^1 1 1