Docsity
Docsity

Prepare-se para as provas
Prepare-se para as provas

Estude fácil! Tem muito documento disponível na Docsity


Ganhe pontos para baixar
Ganhe pontos para baixar

Ganhe pontos ajudando outros esrudantes ou compre um plano Premium


Guias e Dicas
Guias e Dicas


Minimização de Funções Booleanas: K-Maps e Quine-McCluskey, Resumos de Direito Digital

Digital technologies are electronic tools, systems, devices and resources that generate, store or process data. Well known examples include social media, online games, multimedia and mobile phones. Digital learning is any type of learning that uses technology. It can happen across all curriculum learning areas

Tipologia: Resumos

2023

Compartilhado em 04/01/2023

rayenmah
rayenmah 🇧🇷

5 documentos

1 / 83

Toggle sidebar

Esta página não é visível na pré-visualização

Não perca as partes importantes!

bg1
Chapter 3
Simplification of Switching Functions
S.Isrie, MSc.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53

Pré-visualização parcial do texto

Baixe Minimização de Funções Booleanas: K-Maps e Quine-McCluskey e outras Resumos em PDF para Direito Digital, somente na Docsity!

Chapter 3

Simplification of Switching Functions

Simplification Goals

  • (^) Goal -- minimize the cost of realizing a switching function
  • (^) Cost measures and other considerations
    • (^) Number of gates
    • (^) Number of levels
    • (^) Gate fan in and/or fan out
    • (^) Interconnection complexity
    • (^) Preventing hazards
  • (^) Two-level realizations
    • (^) Minimize the number of gates (terms in switching function)
    • (^) Minimize the fan in (literals in switching function)

Minimization Methods

  • (^) Commonly used techniques
    • (^) Boolean algebra postulates and theorems
    • (^) Karnaugh maps
    • (^) Quine-McCluskey method
    • (^) Petrick’s method
    • (^) Generalized concensus algorithm
  • (^) Characteristics
    • (^) Heuristics (suboptimal)
    • (^) Algorithms (optimal)

Minimum SOP and POS Representations

  • (^) The minimum sum of products (MSOP) of a function, f , is a SOP

representation of f that contains the fewest number of product terms

and fewest number of literals of any SOP representation of f.

  • (^) Example -- f(a,b,c,d) =m (3,7,11,12,13,14,15) = ab + acd + acd

= ab + cd

  • (^) The minimum product of sums (MPOS) of a function, f , is a POS

representation of f that contains the fewest number of sum terms and

the fewest number of literals of any POS representation of f.

  • (^) Example -- f(a,b,c,d) =M (0,1,2,4,5,6,8,9,10)

= (a + c)(a + d)(a  + b + d)(b + c 

+ d) = (a +c)(a + d)(b + c)(b + d)

Figure 3.1 Venn diagram and equivalent K-map for two variables

( d )
A B f ( A B )

m 0 m 2 m 1 m 3

A
B

0 2 1 3

A
B
B
A

0 2 1 3

( a ) ( b ) ( c )
( e ) ( f )
B
A

0 2 1 3

( g )
A B B
A
B
A
A B A B A B

m 2 m 1 m 3

A B

m 0

Figure 3.2 Venn diagram and equivalent K-map for three variables m (^0)

B

m 2 m (^6) m 1 m 3 m 7 m (^5) 0 2 6 4 1 3 7 5

B
A
A B
C
A B
( a )
( d )
A B C
A B C A B C
A B C
A B C m^0 m^1

m (^2) m (^3) m (^4) m (^5) m (^6) m (^7) m (^4)

C
A
C
C
A B

0 2 6 4 1 3 7 5

C
A B C
A B C
A B C
C
A B
( b ) ( c )
( e ) ( f )

Figure 3.3 (e) -- (f) K-maps for six variables ( e ) ( f ) A E F B C D 0 0 0 0 0 1 0 1 1 0 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 0 0 1 0 1 1 0 1 0 1 0 0 1 0 1 1 1 1 1 1 0 1 6 2 0 2 8 2 4 1 7 2 1 2 9 2 5 1 9 2 3 3 1 2 7 1 8 2 2 3 0 2 6 3 2 3 6 4 4 4 0 3 3 3 7 4 5 4 1 3 5 3 9 4 7 4 3 3 4 3 8 4 6 4 2 1 0 0 1 0 1 1 1 1 1 1 0 4 8 5 2 6 0 5 6 4 9 5 3 6 1 5 7 5 1 5 5 6 3 5 9 5 0 5 4 6 2 5 8 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 E 2 6 1 4 1 0 C C B 3 2 3 6 4 4 4 0 3 3 3 7 4 5 4 1 3 5 3 9 4 7 4 3 3 4 3 8 4 6 4 2 D E D 4 8 5 2 6 0 5 6 4 9 5 3 6 1 5 7 5 1 5 5 6 3 5 9 5 0 5 4 6 2 5 8 1 6 2 0 2 8 2 4 1 7 2 1 2 9 2 5 1 9 2 3 3 1 2 7 1 8 2 2 3 0 2 6 F A F

Plotting (Mapping) Functions in Canonical Form

on a K-map

  • (^) Let f be a switching function of n variables where n  6.
  • (^) Assume that the cells of the K-map are numbered from 0 to 2 n^ where the numbers correspond to the rows of the truth table of f.
  • (^) If mi is a minterm of f, then place a 1 in cell i of the K-map_._
  • (^) Example -- f(A,B,C) =m (0,3,5)
  • (^) If Mi is a maxterm of f , then place a 0 in cell i.
  • (^) Example -- f(A,B,C) =M (1,2,4,6,7)
  • (^) If di is a don’t care of f, then place a d in cell i.

Figure 3.5 K-maps for f(a,b,Q,G) in Example 3.

(a) Minterm form. (b) Maxterm form. Q G a b 1 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 b G 1 1 1 1 1 1 1 1 1 a Q Q G a b 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 b G 0 0 a Q 0 0 0 0 ( a ) ( b ) f(a,b,Q,G) =m (0,3,5,7,10,11,12,13,14,15) =  M (1,2,4,6,8,9)

Figure 3.6 K-map of Figure 3.5(a) with variables

reordered: f(Q,G,b,a).

b a Q G 0 0 0 1 1 1 1 0

0 0 0 1 1 1 1 0 G a 1 1 Q b 1 1 1 1 1 1 1 1

f(Q,G,b,a) =  m (0,12,6,14,9,13,3,7,11,15) =  m (0,3,6,7,9,11,12,13,14,15)

Figure 3.7 -- Example 3.6.

(a) Venn diagram form. (b) Sum of minterms. (c) Maxterms. C A B 0 0 0 1 1 1 1 0 0 2 6 4 1 3 7 5 0 1 B 0 C^0 A C A B 0 0 0 1 1 1 1 0 0 2 6 4 1 3 7 5 0 C^1 A B ( b ) ( c ) U n i v e r s a l s e t B C A B (^) A B A B C B C 1 1 1 0 0 ( a ) 0 f(A,B,C) = AB + BC

Figure 3.8 -- Example 3.7.

(a) Maxterms, (b) Minterms, (c) Minterms of f .

C D A B 0 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D 0 0 0 0 0 0 0 C ( A + C )^ A ( B + C + D ) C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D 1 1 1 1 1 1 1 1 C A ( a ) ( b ) C D A B 1 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D 1 1 1 1 1 1 1 C A C^ A B C D ( B + C ) B C ( c ) f(A,B,C,D) = (A + C)(B + C)(B+ C+ D)

S.Isrie, MSc.

Simplification of Switching Functions

Using K-maps

  • (^) K-map cells that are physically adjacent are also logically adjacent. Also, cells on an edge of a K-map are logically adjacent to cells on the opposite edge of the map.
  • (^) If two logically adjacent cells both contain logical 1s, the two cells can be combined to eliminate the variable that has value 1 in one cell’s label and value 0 in the other.
  • (^) This is equivalent to the algebraic operation, a P + a P =P where P is a product term not containing a or a.
  • (^) Example -- f(A,B,C,D) =m (1,2,4,6,9)

Figure 3.10 K-map for Example 3. C D A B 0 0 0 1 1 1 1 0 0 4 1 2 8 1 5 1 3 9 3 7 1 5 1 1 2 6 1 4 1 0 0 0 0 1 1 1 1 0 B D 1 1 1 1 1 A C S t e p 2 S t e p 1 S t e p 3 f(A,B,C,D) =m (1,2,4,6,9)