0% found this document useful (0 votes)
253 views

Bolean Algebra & K-MAP

1) By applying Boolean rules: F = A'B'C + A'B'CD + A'BC + ABCD 2) By using a Karnaugh map: F = A'B'C + A'B'CD + A'BC + ABCD The Karnaugh map solution groups the ones as follows: CD AB 00 01 11 10 00 1 1 0 0 01 0 1 1 1 11 0 0 0 0 10 1 0 0 0

Uploaded by

Ann Razon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
253 views

Bolean Algebra & K-MAP

1) By applying Boolean rules: F = A'B'C + A'B'CD + A'BC + ABCD 2) By using a Karnaugh map: F = A'B'C + A'B'CD + A'BC + ABCD The Karnaugh map solution groups the ones as follows: CD AB 00 01 11 10 00 1 1 0 0 01 0 1 1 1 11 0 0 0 0 10 1 0 0 0

Uploaded by

Ann Razon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

BOOLEAN ALGEBRA

In our Algebra subjects in mathematics, if we add 1 + 1 the result is 2, if we add 1 + 1


+ 1 the result is 3. In Boolean algebra, these results are invalid because the rules here are
not the same as the rules in our usual algebra. Boolean algebra follows the rules in logic
gates that were previously discussed.

The following notations are used in Boolean Algebra.


True :1
False :0
A OR B :A+B
A AND B :A•B

BOOLEAN LAWS
1. Commutative Law
A+B=B+A
A•B=B•A

2. Associative Law
A + B + C = A + (B + C) = (A + B) + C
A • B • C = A • (B • C) = (A • B) • C

3. Distributive Law
A • (B + C) = A • B + A • C
A+(B • C) = (A + B) • (A + C)

OTHER RULES OF BOOLEAN ALGEBRA:


A+0 =A A+ A =1
A+1 =1 A• A =0
A•0 =0 1 =0
A•1 =A 0 =1
A+A =A Á =A
1+1 =1 A + AB = A
1+0 =1 A + AB = A + B
A•A =A A + BC = (A + B)(A + C)
1•1 =1
1•0 =0

De Morgan’s Theorems:
A+ B = A• B
AB = A+ B

SIMPLIFYING BOOLEAN FUNCTIONS


Complicated logic circuits in some way can be transformed into a simpler circuit by
way of simplifying Boolean functions. One method is by the application of Boolean rules.
Example:
1. Simplify the Boolean expression Q= ABC + A BC + A BC + A B́ Ć
Solution:
Q= ABC + A BC + A BC + A B́ Ć
Q=BC( A + A )+ A B(C +C)
Q=BC+ A B

2. Simplify the Boolean expression Q= Á B́ C+ A BC + A B C+ ABC


Solution:
Q= Á B́ C+ A BC + A B C+ ABC
Q= A C ( B+ B)+ AC ( B+ B)
Q= A C + AC
Q=C ( A+ A)
Q=C

3. Simplify the Boolean expression Q= X́ Ý Z+ X Y Z + X Ý Ź


Solution:
Q=Y Z ( X + X )+ X Ý Ź
Q=Y Z+ X Ý Ź
Q=Y (Z + X Z)
Q=Y (Z + X )(Z+ Z )
Q= X Y + Y Z

KARNAUGH MAP
Another method of simplifying Boolean functions is by using Karnaugh Map or simply
K-map. It is a diagram consisting of a rectangular array of squares, each representing a
different combination of the variables of a Boolean function. This method is usually used for
Boolean functions having two to four variables. Each output of a given truth table
corresponds to one box in the K-map meaning, if the Boolean function has two input
variables, there are 22 or 4 boxes in the Karnaugh map. If there are three variables, K-map
has 23 or 8 boxes and if there are four variables, K-map has 2 4 or 16 boxes. Boxes
containing 1s are grouped according to the following rules:
1. A group must contain 2n adjacent 1s where n = 0, 1, 2, 3 and 4. That is, a group must
contain 1, 2, 4, 8 or 16 1s. One group corresponds to one simplified minterm.
2. A group of adjacent 1s must be in the shape of a square or a rectangle. “L” shape is
not allowed. Rectangular shape can either be horizontal and/or vertical not diagonal.
3. The larger the group, the simpler the reduced expression will be. Meaning, look first
for a group of 16 1s, then a group of 8 1s, then a group of 4 1s, then a group of two
1s, then finally a single 1, until all 1s have been grouped. “1” can be a member of two
or more groups.
4. Finally, write the simplified expression by adding the minterms of every group.
Below are examples of a two input, three input and four input variable K-map. Take
note of the specific arrangements where the outputs of mintermsm0 to m15 are to be
placed.
B
A
0 1
0 m0 m1

1 m2 m3

BC
A 00 01 11 10
0 m0 m1 m3 m2

1 m4 m5 m7 m6

CD
AB 00 01 11 10
00 m0 m1 m3 m2

01 m4 m5 m7 m6

m1 m1 m1 m1
11
2 3 5 4
m1 m1
10 m8 m9
1 0

Let us simplify our previous examples using K-map.


Example 1. Simplify the Boolean expression Q= ABC + A BC + A BC + A B́ Ć
Solution:

BC
11
A 00 01 11 10
0 0 0 0

1 1 1 0

Q= A B+ BC

Example 2.Simplify the Boolean expression Q= Á B́ C+ A BC + A B C+ ABC


Solution:

BC
A
1
00 01 11 10

0 0 1 0 Q=C

1 0 1 1 0

Example 3.Simplify the Boolean expression Q= X́ Ý Z+ X Y Z + X Ý Ź


Solution:

YZ
11
X 00 01 11 10
0 0 0 0 Q= X Y + Y Z

1 1 0 0

One important characteristic of K-map is that the top, bottom, left and right can be
rolled so that the four corners will meet each other and will form a group if applicable. This
characteristic is illustrated in the following discussion. Suppose we are going to derive the
simplified Boolean expression of the given truth table below.

A B C D F
0 0 0 0 1
0 0 0 1 0
0 0 1 0 1
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 1
1 0 0 1 0
1 0 1 0 1
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
Solution:
Draw first the K-map and write the outputs. Then, the four 1s at the corners can be
grouped as one when they are rolled as shown.

CD
AB
00 01 11 10
00
1 0 0 1

01 0 0 0 0

11 0 0 0 0

10
0 0
1 1

So, the resulting simplified Boolean expression will be F= B́ D́ .

DON’T CARE OUTPUTS

There are instances wherein the outputs of some input combinations are not defined.
These outputs are called don’t care outputs and are usually denoted by “x”. In using K-map
these outputs can be considered as 1 or 0, whichever results in a more simplified
expression.
Consider the truth table shown below and obtain a simplified Boolean expression.

A B C D F
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 0
1 0 1 1 0
1 1 0 0 x
1 1 0 1 x
1 1 1 0 x
1 1 1 1 x
The K-map and the groupings should be,

CD
AB 00 01 11 10
00 0 0 0 0

01 0 0 1 1

11 X X X1 X

10 1 1 0 0

so, F= A C+ BC

Exercises:
Obtain the simplified Boolean function of the following k-map. Use F as the output.
CD
1)
AB 00 01 11 10
00 0 1 0 0

01 0 1 1 1

11 1 1 1 0

10 0 0 1 0

ANSWER:

F= AB Ć + Á Ć D+ Á BC + ACD

CD
2) AB 00 01 11 10
00 1 0 0 1
01 1 0 0 1

11 1 0 0 1

10 1 0 0 1

ANSWER:

F= D́

3)
CD
AB
00 01 11 10
00 1 1 0 0

01 0 1 1 0

11 0 0 0 0

10 1 0 x 1

ANSWER:

F= Á B́ Ć + Á BD + A B́ D́

CD
AB
4) 00 01 11 10
00 1 x 1 x

01 1 0 0 1

11 0 0 0 0

10 0 X 0 0

ANSWER:

F= Á B́+ Á D́

EXERCISES:
Obtain a simplified Boolean expression from the given truth table below using the following
methods:
1. By applying Boolean rules
2. By using Karnaugh map

A B C D F
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 0
0 1 1 0 1
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 0
1 0 1 1 1
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy