Module 1.2
Module 1.2
Dr. E.Papanasam
papanasam.e@vit.ac.in
AP Senior
School of Electronics
VIT Chennai
Number Systems
Positional weight
Binary to Decimal
(11010.11)2 =
Octal to Decimal
(123.4)8 = 1 x 82 + 2 X 81 + 3 x 80 + 4 X 8-1
= (83.5)10
(7392)10 =
Hexadecimal to Decimal
Number Base Conversion
Decimal to Binary
(41)10 = (101001)2
(0.6875)10 = (0.1011)2
Decimal to Octal
(153)10 = (231)8
(0.513)10 = (0.40651….)8
Number Base Conversion
Decimal to Hexadecimal
(540)10 = (21C)16
(0.06640625)10 = (0.110)16
OCTAL AND HEXADECIMAL NUMBERS
Binary to Octal
Binary to Hexadecimal
Binary Codes
Binary Logic
Consists of binary variables and logical operations
The variables are designated by letters of the
alphabet (A, B, C, x, y, Z, etc., )
Each variable having two and only two distinct
possible values: 1 and 0
There are three basic logical operations: AND,
OR, and NOT
AND:
◦ Represented by a dot or by the absence of an
operator
◦ Ex., x·y = z or xy = Z ("x AND y is equal to z.“)
◦ The logical operation AND is interpreted to mean
Binary Logic
OR
◦ Represented by a plus sign
◦ Example, x + y = z ("x OR y is equal to z,“)
◦ z = I if x = I or if y = I or if both x = I and y = I.
◦ If both x = 0 and y = 0, then z = 0.
NOT
◦ Represented by a prime (sometimes by a bar)
◦ Example, x' = z (or x = z) is read "not x is
equal to z,"
◦ z is what x is not.
◦ In other words, if x = I, then z = 0; but if x = 0,
then z = 1
Logic Gates
Binary Signal and Symbols for digital logic
circuit
Input-output signals for Logic gates
Boolean Algebra
AXIOMATIC DEFINITION OF
BOOLEAN ALGEBRA
Boolean algebra is an algebraic structure defined on a
set of elements B together with two binary operators +
and ., provided the following (Huntington) postulates
are satisfied:
Basic Theorems and Properties of Boolean
Algebra
Duality principle
Every algebraic expression deducible from
the postulates of Boolean algebra remains
valid if the operators and identity elements
are interchanged
S. No. Postulate/ Theorem (a) (b)
1 Postulate 2, Identity
2 Postulate 3, Commutative
3 Postulate 4, Distributive
4 Postulate 5, Complements
5 Theorem 1, Idempotent
6 Theorem 2, Null elements
7 Theorem 3, Involution
8 Theorem 4, Associative
9 Theorem 5, DeMorgan
10 Theorem 6, Absorption
Basic Theorems
Basic Theorems (2)
Operators Precedence
(I)Parentheses
(2) NOT
(3) AND
(4) OR
Boolean Functions
Boolean Algebra deals with binary variables and logic
operations
A Boolean function is an expression formed with binary
variables, the two binary operators OR and AND, and
unary operator NOT, parentheses, and an equal sign
For a given value of the variables, the function can be
either 0 or I
Implementation of Boolean function with
Gates
Implementation of Boolean function with
Gates (2)
Algebraic Manipulation
The number of literals in a Boolean function can
be minimized by algebraic manipulations
A literal is a primed or unprimed variable
When a Boolean function is implemented with
logic gates, each literal in the function designates
an input to a gate, and each term is implemented
with a gate
The minimization of the number of literals and
the number of terms results in a circuit with less
equipment
Simplification of Boolean Function
Complement of Function
Complement of Function by Dual
Canonical and Standard forms
minterm (standard product)
◦ Consider two binary variables x and y
combined with an AND operation
◦ There are four possible combinations: x'y’,
x'y, xy', and xy (Since each variable may
appear in either form)
◦ Each of these four AND terms is called
minterm
◦ Each minterm is obtained from an AND
term of the n variables
◦ Each variable being primed if the
Canonical and Standard
forms
maxterms, or standard sums
◦ n variables forming an OR term
◦ Each variable being primed or unprimed,
provide 2n possible combinations
◦ Each variable being unprimed if the
corresponding bit is a 0 and primed if a I
Each maxterm is the complement of its
corresponding minterm, and vice versa
Boolean functions expressed as a sum of min
terms or product of maxterms are said to be in
Minterms and Maxterms for Three Binary
Variables
Minterm and Boolean function
A Boolean function may be expressed
algebraically from a given truth table by
forming a minterm for each combination of
the variables that produces a 1 in the
function, and then taking the OR of all those
terms
Sum of Minterms
Express the Boolean function F = A+B'C as
sum of minterms
F(A, B, C) = ∑ (l, 4, 5, 6, 7)
Product of Maxterms
Express the Boolean function F = xy+x'z in a
product of maxterm form
First, convert the function into OR terms
using the distributive law:
Minterms and Maxterms
Conversion between Canonical Forms
Since MJ =mj’
Ram eat breakfast if he feel hungry and
the food is ready or time is 8 AM past
F = AB+C
http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/
K-map Rules
K-map Rules
K-map Rules
https://www.electricaltechnology.org/2018/05/karnaugh-
2-Variable K-Map
Let us consider the following expression. Y 0 1
X
0
The above expression can be rewritten as
1
The truth table of the function is
Y 0 1
X Y F Minterm X
0 0 0 0 0 1
0 1 1 1 1
1 0 1
1 1 1
3-Variable K-Map
◦ Any two adjacent squares in the map differ by only one variable, which is primed in one
square and unprimed in the other.
1
3-Variable K-Map
◦ We can do groupings of eight 1’s.
◦ Let us consider
1
Example Problem-1
Simplify the Boolean function
YZ 0 0 01 11 10 YZ 0 0 01 11 10
X X
0 0 0 0 1 0
1 1 1 0 1 1
′
𝐹 =𝑧 + 𝑥𝑦 ′ 𝑥𝑦 ′
𝑧′
Example Problem-3
Simplify the Boolean function
◦ Mark given terms in K-map.
◦ No group of eight 1’s. BC 0 0 01 11 10
A
◦ One group of four 1’s (C). 0 1 3 2
0 0 1 1 1
◦ There is one group of two 1’s. (A’ B) 4 5 7 6
′
𝐴𝐵
′
𝐹 =𝐶 + 𝐴 𝐵 𝐶
Example Problem-4
Simplify the Boolean function z 𝑥 ′ 𝑦𝑧 ′
Mark given minterms in K-map.
YZ 0 0 01 11 10
◦ No group of eight 1’s. X
0 1 3 2
◦ No group four 1’s. 0 0 1 0 1
4 5 7 6
◦ No group of two 1’s. 1 1 0 1 0
◦ There are 4 group of one 1’s.
◦ Therefore the simplified function is
𝑥𝑦 𝑧′
′
𝑥𝑦𝑧
′ ′ ′ ′ ′ ′
𝑆=𝑥 𝑦 𝑧+ 𝑥 𝑦 𝑧 + 𝑥 𝑦 𝑧 + 𝑥𝑦𝑧
Practice Problems
Simplify following Boolean functions using 3 variable K-maps
4 Variable K-map
The map for Boolean function with 4 variables.
4 variable Boolean function has minterms.
So the k-map will have 16 squares in format.
Two variables (say AB) associated with rows and another two variables (say
CD) associated with the columns.
Any square in the k-map is represented using 4 variables (say ABCD) in
primed or unprimed format.
The map is considered to lie on a surface where the top and bottom edges,
as well as left and right edges are touching each other to form adjacent
squares.
4 Variable K-map
In 4 variable K-map CD 0 0 01 11 10
AB
Group of one 1’s:
00
◦ 16 distinct groups are possible.
01
◦ Each term has all 4 literals.
11
10
′ ′
𝐹 = 𝐴 𝐵 𝐶 𝐷′
4 Variable K-map
In 4 variable K-map CD 0 0 01 11 10
AB
Groups of two 1’s:
00
◦ Also known as Pair.
01
◦ 32 distinct groups are possible.
◦ Each term is with 3 literals. 1 1
10
′ ′ ′ ′ ′ ′ ′
𝐹= 𝐴 𝐵 𝐶 𝐷 + 𝐴 𝐵 𝐶 𝐷= 𝐴 𝐵 𝐶
4 Variable K-map
In 4 variable K-map CD 0 0 01 11 10
AB
Groups of two 1’s:
00
◦ Also known as Pair.
01
◦ 32 distinct groups are possible.
◦ Each term is with 3 literals. 1 1
10
′ ′ ′ ′ ′ ′
𝐹= 𝐴𝐵 𝐶 𝐷 + 𝐴 𝐵 𝐶 𝐷 = 𝐴 𝐶 𝐷 ′
4 Variable K-map
In 4 variable K-map CD 0 0 01 11 10
AB
Groups of four 1’s:
00
◦ Also known as Quad.
01
◦ 14 distinct groups are possible.
◦ Each term is with 2 literals. 1 1
10
′ ′ ′ ′ ′ ′ ′ ′ ′ ′ ′ ′ ′ ′
𝐹= 𝐴 𝐵 𝐶 𝐷 + 𝐴 𝐵 𝐶 𝐷 + 𝐴 𝐵 𝐶 𝐷 + 𝐴 𝐵 𝐶 𝐷=𝐵 𝐶
4 Variable K-map
In 4 variable K-map CD 0 0 01 11 10
AB
Groups of four 1’s:
00
◦ Also known as Quad.
01
◦ 14 distinct groups are possible.
◦ Each term is with 2 literals. 1 1
10
′ ′ ′ ′ ′ ′ ′ ′ ′ ′ ′ ′ ′
𝐹= 𝐴 𝐵 𝐶 𝐷 + 𝐴 𝐵 𝐶 𝐷 + 𝐴 𝐵 𝐶 𝐷 + 𝐴 𝐵 𝐶 𝐷 =𝐵 𝐷 ′
4 Variable K-map
In 4 variable K-map CD 0 0 01 11 10
Groups of eight 1’s: AB
00
◦ Also known as Octet.
01
◦ 8 distinct groups are possible.
◦ Each term is with 1 literals. 11
10
AB’C’D+AB’CD+AB’CD’=A
4 Variable K-map
In 4 variable K-map CD 00 01 11 10
Groups of sixteen 1’s:AB
00
◦ 1 group is possible.
01
◦ The function equal to 1.
◦ No literals in F. 11
10
Redundancy in K-map
A redundant group is a group, in which all
the elements in this group are covered by
some other groups. CD 0 0 01 11 10
AB
Consider Quad at the center of the Map
00
which covers .
The elements of Quad are already covered 01
by the pairs at each sides.
11
So no need for the Quad in this example.
10
Example Problem-1
Obtain the simplified expression in sum of products for the following Boolean
Function:
From the K-map, We can form 3 Pairs. CD
00 01 11 10
AB
Therefore, the Simplified expression is 0 1 3 2
00
4 5 7 6
01 1
𝐹= 𝐴𝐵𝐷 + 𝐴𝐵𝐶+𝐵𝐶𝐷
12 13 15 14
11 1 1 1
8 9 11 10
10
𝑃1 𝑃3 𝑃2
Example Problem-2
Simplify the Boolean Function YZ 0 0 01 11 10
WX
0 1 3 2
00 1 1 0 1
4 5 7 6
From the K-map, the simplification results
0 1in 1 1 0 1
1 Octet and 2 Quads. 12 13 15 14
11 1 1 0 1
The Simplified expression is 8 9 11 10
10 1 1 0 0
𝑦′ 𝑥𝑧 ′ 𝑤′ 𝑧 ′
Example Problem-3 CD 0 0 01 11 10
Simplify the Boolean Function AB
0 1 3 2
00 1 1 0 1
.
4 5 7 6
01 0 0 0 1
From the K-map, the simplification results in 12 13 15 14
11 0 0 0 0
2 Quads and 1 Pair.
8 9 11 10
The Simplified expression is 10 1 1 0 1
′ ′ ′ ′ ′
𝐹 =𝐵 𝐶 + 𝐵 𝐷 + 𝐴 𝐶𝐷 ′
′ ′
𝐵 𝐷′ 𝐵 𝐶′
′ 𝐴 𝐶𝐷 ′
Example Problem-4
Write the Simplified Boolean Expression for the given Map.
From the K-map, We can form
CD 0 0 01 11 10
2 Quads and 1Pair. AB
The Simplified expression is 00 1 1 1
′ ′ ′ ′ 01 1 1 1
𝐹 = 𝐴 𝐶 + 𝐴 𝐷 + 𝐴𝐵𝐶
11 1 1
10
Practice Problems
Simplify the following Boolean functions, using 4-variable maps:
Prime Implicants
A term in a function is also called as Implicant.
Procedure for combining squares in the map made more systematic by
understanding prime implicant and essential prime implicant.
A Prime Implicant (PI) is a product term obtained by combining the
maximum possible number of adjacent squares in the map (near by
minterms).
If a minterm is covered by only one prime implicant, that PI is said to
be Essential Prime Implicant (EPI).
Prime Implicants
Consider the following 4-variable Boolean function
(OR) 10 1 1 1 1
Prime Implicants-Example
Consider the following 4-variable Boolean
CD 0 0 01 11 10
function
AB
0 1 3 2
00 1 1 1
After the EPI’s, let us try to combine the 4 5 7 6
remaining minterms. 01 1 1
One Possibility is two more Quads. 12 13 15 14
11 1 1
(OR)
8 9 11 10
(OR) 10 1 1 1 1
(OR)
Prime Implicants-Example
Consider the following 4-variable Boolean function
01 0 1 0 0
12 13 15 14
11 0 0 0 0
8 9 11 10
10 1 1 0 1
Example Problem-1
From the K-map, By grouping 0’s complement of POS can be obtained.
F’AB+CD+BD’
CD 0 0 01 11 10
Therefore, the Simplified POS is AB
0 1 3 2
00 1 1 0 1
4 5 7 6
01 0 1 0 0
F
12 13 15 14
11 0 0 0 0
8 9 11 10
10 1 1 0 1
Example Problem-1
Consider the following Boolean expression
Here function is given in terms of Maxterms.YZ 0 0 01 11 10
Fill the maxterms in K-map using 0’s. X
0 1 3 2
0 0 1 1 0
Fill the remaining squares with 1’s.
4 5 7 6
From the K-map, grouping of 0’s gives F’1 1 0 0 1
YZ 0 0 01 11 10
The POS is X
𝐹 =( 𝑥+ 𝑧 ) (𝑥 ′ + 𝑧 ′ ) 0
0
0
1
1
3
1
2
0
From the K-map, grouping of 1’s gives SOP 4 5 7 6
′ ′ 1 1 0 0 1
𝐹 =𝑥 𝑧 + 𝑥 𝑧
Practice Problems
Simplify the following functions to POS form
Don’t Care Conditions
The logical sum of the minterms associated with a Boolean function
specifies the conditions under which the function is equal to 1.
The function is equal to 0 for the rest of the minterms.
This pair of conditions assumes that all the combinations of the
values for the variables of the function are valid.
In practice, in some applications the function is not specified for
certain combinations of the variables.
As an example, the four-bit binary code for the decimal digits has
six combinations that are not used and consequently are considered
to be unspecified.
Functions that have unspecified outputs for some input
combinations are called incompletely specified functions
Don’t Care Conditions
In most applications, we simply don’t care what value is assumed by
the function for the unspecified minterms.
For this reason, it is customary to call the unspecified minterms of a
function don’t-care conditions.
These don’t-care conditions can be used on a map to provide further
simplification of the Boolean expression.
A don’t-care minterm is a combination of variables whose logical
value is not specified.
To distinguish the don’t-care condition from 1’s and 0’s, an X is used.
When simplifying the function, we can choose to include each don’t-
care minterm with either the 1’s or the 0’s, depending on which
combination gives the simplest expression.
Example-1
YZ 00 01 11 10
WX
Simplify the Boolean function which has 0 1 3 2
′ 10 0 0 1 0
𝐹 =𝑤 𝑧 + 𝑦𝑧
Example-1
YZ 00 01 11 10
WX
Simplify the Boolean function which has 0 1 3 2
)
Example-1
YZ 00 01 11 10
WX
Simplify the Boolean function . 0 1 3 2
00 X 1 1 X
From the k-map, the simplified expression is
4 5 7 6
01
12 13 15 14
′ ′ ′ 11 X
𝐹 =𝑤 𝑥 + 𝑥 𝑧 ′ 8 9 11 10
10 X 1
Practice Problems
Simplify the following Boolean function F, together with don’t-care conditions
d, and then express the simplified function in sum-of-minterms form:
1. and
2. and
3. and d
Digital Logic Families
Diode Logic
Diode Transistor Logic (DTL)
Resistor Transistor Logic (RTL)
Transistor Transistor Logic (TTL)
MOS logic
CMOS Logic
RTL Logic
Alllogic implemented using
resistor and transistor
NOT gate
RTL NOR gate
in out
vdd
p1
in out
in p1 n1 out
n1
0 ON OFF 1
1 OFF ON 0
vss
88
CMOS LOGIC - NAND
vdd
a p1 p2 b a b p1 p2 n1 n2 out
0 0 ON ON OFF OFF 1
out
0 1 ON OFF OFF ON 1
a n1
1 0 OFF ON ON OFF 1
c
b n2 1 1 OFF OFF ON ON 0
vss
89
CMOS LOGIC - NOR
vdd
a p1
a b p1 p2 n1 n2 out
0 0 ON ON OFF OFF 1
b p2
0 1 ON OFF OFF ON 0
out
1 0 OFF ON ON OFF 0
a n1 n2 b
1 1 OFF OFF ON ON 0
vss
90
CMOS LOGIC - AND
91
4 INPUT CMOS NOR
A
B
C
D
Y
92