Open In App

Boolean Functions

Last Updated : 11 Dec, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Boolean Algebra was given by George Boole. It is a set of rules used to simplify a given logical expression without changing its functionality. It is mainly used when several variables present are less. The algebraic expression used in Boolean Algebra is known as Boolean Expression and it is used to describe Boolean Function. The Boolean expression generally consists of value 0 or 1, binary variables, and logical operation.

Truth Table Formation

The truth table is a table that comprises all the possible outcomes of a Boolean function used in Boolean algebra. It is used to establish a relation between various variable that contributes to the Boolean function. 1 in the Truth table represents true value and 0 represents false value. Truth Table provides us with an easy method to test whether a given argument is valid or not for legitimate input.

Total no. of combinations = 2n

where, n = no. of variables.

Truth Table for 2 Variables

Total no. of combinations = 22 = 4

A

B

A V B

A É… B

~A

~B

0

0

0

0

1

1

0

1

1

0

1

0

1

0

1

0

0

1

1

1

1

1

0

0

Methods to Solve Boolean Function

1. Karnaugh-map or K-map

karnaugh-map is used to minimize the number of logic gates that are required in a digital circuit. The cells are arranged in a way so that simplification of a given expression is simply a matter of properly grouping the cells.

SUM OF PRODUCT (SOP)

SOP as the name itself suggests sum of products. It is the sum of all the products where the output is 1. It is denoted by Σ which tells about the minterms ‘m’. When two or more terms are multiplied via AND gate and their respective resultants are added with the help of OR gate is defined as Sum Of Products.

In case of SOP, consider the following:

A = 1

A’ = 0
Let us understand it with an example.

A

B

C

Y

m0

0

0

0

1

m1

0

0

1

0

m2

0

1

0

1

m3

0

1

1

1

m4

1

0

0

0

m5

1

0

1

0

m6

1

1

0

1

m7

1

1

1

1

In SOP, we consider only those expression where value of Y is 1 (high).

SOP = Σ (m0, m2, m3, m6, m7)

= A’B’C’ + A’BC’ + A’BC + ABC’ + ABC

= A’B’C’ + BC'(A + A’) + BC (A + A’)

= A’B’C’ + BC’ + BC

= A’B’C’ + B(C’ + C)

= A’B’C’ + B

PRODUCT OF SUM (POS)

POS stands for product of sum and it is used when the output is 0. It is denoted by Π which tells about the maxterms ‘M’.

It consists of two or more OR gates that are ANDed together.

In case of POS, consider the following:

A = 0

A’ = 1

Let us understand it with an example.

A

B

C

Y

M0

0

0

0

0

M1

0

0

1

1

M2

0

1

0

1

M3

0

1

1

0

M4

1

0

0

0

M5

1

0

1

1

M6

1

1

0

1

M7

1

1

1

0

POS = Π (M0, M3, M4, M7)

= (A + B + C) . (A + B’ + C’) . (A + B’ + C’) . (A’ + B’ + C’)

Example of Karnaugh-map

F( A, B, C) = Σm ( 0, 1, 2, 4, 7)

A

B

C

F

m0

0

0

0

1

m1

0

0

1

1

m2

0

1

0

1

m3

0

1

1

0

m4

1

0

0

1

m5

1

0

1

0

m6

1

1

0

0

m7

1

1

1

1

F( A, B, C) = ABC + A’B’ + B’C’ + A’C’

K-Map

k-map

2. NAND GATES

NAND gate is Negation of the AND gate. It gives the values opposite to the AND gate. It gives the value 0 only when all the inputs are 1. Below is the Truth Table for AND and NAND gate.

A

B

A∧B

~A∧B

0

0

0

1

0

1

0

1

1

0

0

1

1

1

1

0

Let us understand solving Boolean functions with the help of NAND gate

F (A, B, C) = ABC + A’B’ + B’C’ + A’C’

NAND GATE

FAQs on Boolean Functions

1. What are Logic gates?

In digital circuits, a Logic gate is a basic switching circuit which evaluates whether an input pulses can pass through from the output.

2. What do Logic gates do?

Logic gates are used to carry out Boolean operations on binary input to get a desired output.

3. Name different types of Logic gates?

There are seven basic Logic gates in Digital Logic : AND, OR, XOR, NOT, AND, NAND, NOR and XNOR.

4. What is the relation between AND and NAND gate and OR and NOR gate?

NAND and NOR Logic gates are negation of AND and OR Logic gates.

5. Why NAND and NOR gates are called as Universal gates?

NAND and NOR gates are known as UNIVERSAL GATES because they have the property that they can be used to implement any logic circuit independently.

6. What’s the use of Logic gates in everyday life?

In real life Logic gates are used in push button lock, burglar alarm, safety thermostat etc.



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads