canonical form
canonical form
▪ Digital systems play a prominent role in everyday life. The present technological period is referred
to as “Digital Age”.
▪ Digital system is a system that manipulates discrete elements of information represented internally
in binary form.
▪ Any set that is restricted to a finite number of elements is called discrete information.
▪ E.g.: 10 decimal digits, 26 alphabets etc. are discrete information.
▪ Examples for digital systems include digital telephones, digital televisions, digital versatile discs
(DVD), digital cameras, digital computers.
▪ In order to understand the operation of digital systems, it is necessary to have a basic knowledge
of digital circuits and their logic functions.
1
NUMBER SYSTEM
▪ Number system is an ordered set of symbols known as digits with rules defined for performing arithmetic
operations like addition ,subtraction , multiplication and division.
There are mainly two types of Number system
1.Non-Positional Number System
2. Positional Number Systems
3
CLASSIFICATION OF POSITIONAL NUMBER
SYSTEM
There are mainly 4 commonly used positional number system
1.Decimal Number System
2.Hexadecimal Number System
3.Binary Number System
4.Octal Number System
▪ A number in a number system mainly has 2 parts
1.Integer Part
2.Fractional Part
▪ The integer and the fractional part is separated by a radix point(.)
▪ The value of coefficient ‘a’ range in the value 0 to r-1.
4
DECIMAL NUMBER SYSTEM
Characteristics
▪ A positional number system
▪ Has 10 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7,8, 9). Hence, its base = 10.
▪ The maximum value of a single digit is 9 (one , less than the value of the base)
▪ Each position of a digit represents a specific power of the base (10)
▪ It is used in our day-to-day life activities.
▪ Eg: 4598 = 4000+500 +90+8
=4x1000 +5x100+ 9×10 + 8 x1
=4X103 +5X10² +9×10¹ +8×10°
96.248 =90+6+0·2+0.04 + 0.008
= 9x10+6x1 + 2/ 10 + 4/100 +8/1000
=9×10¹ +6×10° +2×10-¹ +4×10-²+ 8×10-3
5
BINARY NUMBER SYSTEM
Characteristics
▪ A positional number system
▪ Has only 2 symbols or digits (0 and 1). Hence its base = 2
▪ The maximum value of a single digit is 1 (one less than the value of the base)
▪ Each position of a digit represents a specific power of the base (2)
▪ It is used in computers.
▪ Eg: 11011 = 1x24+1x23 +0x2²+1×21 + 1 x 2°
= 1x16 +1x8+ 0x4 + 1x2 + 1x 1
= 16 + 8 + 0 + 2 + 1
= (27)
111.0101 = 1x2² + 1 x 21 + 1 x 2° +0x2-1 +1x2-2+ 0× 2-³ + 1x2-4
= 4 + 2 +1+0 +0·5 + 0.0625
=7.5625
6
HEXADECIMAL NUMBER SYSTEM
Characteristics
▪ A positional number system
▪ Has total 16 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F). Hence its base = 16
▪ The symbols A, B, C, D, E and F represent the decimal values 10, 11, 12, 13, 14 and 15 respectively
▪ The maximum value of a single digit is 15 (one less than the value of the base).
▪ Hexadecimal Numbers are extensively used in microprocessors. Hexadecimal numbers are much shorter than
binary numbers and are useful in electronic representation of numbers Using hexadecimal numbers makes it very
easy to convert back and forth from binary numbers, because each hexadecimal digit corresponds to exactly 4 bits.
▪ It is also called as alpha numeric number system.
eg: 8A0F = 8x16³ +Ax162+0X161+FX16°
= 8x4096+Ax 256+0+Fx1
=4096 +10 x 256 +0 +15
=32,768 + 2560 +15
=(35,343)10
7
OCTAL NUMBER SYSTEM
Characteristics
▪ A positional number system.
▪ Has total 8 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7).
▪ Hence, its base = 8
▪ The maximum value of a single digit is 7 (one less than the value of the base)
▪ Each position of a digit represents a specific power of the base (8)
▪ Since there are only 8 digits, 3 bits (2³ = 8) are sufficient to represent any octal number in binary
Example:
2057 = (2 x 8³) + (0 x 8²) + (5 x 81¹) + (7 x 8°)
=1024+0+ 40 + 7
=(1071)10
8
SUMMARY OF NUMBER SYSTEM
9
SUMMARY OF NUMBER SYSTEM
10
11
CONVERTING ANY BASE TO DECIMAL
The given formula in the general equation that is used for converting any base system to Decimal Number
system.
12
CONVERSION OF ANY BASE TO DECIMAL
13
CONVERSION OF ANY BASE TO DECIMAL
Example 2:
(101.1101)2
N = 1×2 2 + 0×2 1 + 1×2 0 + 1×2 -1 + 1×2 -2 + 0×2 -3 + 1×2 -4
=4+0+1+0.5+0.25+0+0.0625
=(5.8125)10
Example 3:
101011₂ =1 × 25+0x24+1x23+0x22+1x21+1x20
=32+0+8+0+2+1
=(43)10
14
CONVERSION OF ANY BASE TO DECIMAL
17
CONVERSION OF DECIMAL NUMBER SYSTEM TO ANY
BASE
2.Convert fractional part(Successive Multiplication Method)
Steps in Successive Multiplication Method
▪ Multiply the fractional part of decimal number by desired base number
▪ Record the integer part of product as carry and fractional part as new fractional part
▪ Repeat steps 1 and 2 until fractional part of product becomes 0 or until you have many digits as
necessary for your application
▪ Read carries downwards to get desired base number.
18
CONVERSION OF DECIMAL TO BINARY NUMBER
SYSTEM
19
CONVERSION OF DECIMAL TO BINARY NUMBER
SYSTEM
20
CONVERSION OF DECIMAL TO OCTAL NUMBER
SYSTEM
Problem 1 Problem 2
(110)10=(156)8
(7.16)10=(7.12172)8
21
CONVERSION OF DECIMAL TO HEXADECIMAL
NUMBER SYSTEM
22
CONVERSION OF BINARY NUMBER TO OCTAL
NUMBER SYSTEM
DIRECT METHOD
The base of an octal number is 8. As 8 = 2³ for binary to Octal conversion groups of 3 bits are
formed .Binary numbers can be converted into equivalent octal numbers by making groups of three
bits starting from LSB and moving towards MSB for integer part of the number and then replacing
each group of three bits by its octal representation.
For fractional part the groupings of three bits are made starting from the binary point.
23
CONVERSION OF BINARY NUMBER TO
HEXADECIMAL NUMBER SYSTEM
The base of a hexadecimal
number is 16 = 24 ,for binary to
hexadecimal conversions
groups of four bits are made in
the binary number starting
from the least (LSB) and
moving significant number
towards MSB for integers part
and then replacing each group
of four bits by its hexadecimal
representation
For fractional part the bits are
grouped from the binary point.
24
CONVERSION OF BINARY NUMBER TO OCTAL
NUMBER SYSTEM
Octal number system provides convenient way of converting large binary numbers into more
compact and smaller groups. There are various ways to convert a binary number into octal number.
1.Indirect Method
2.Direct Method
INDIRECT METHOD
(10010110)2=1x27+0x26+0x25+1x24+0x2³+1x2²+1x2¹+0x2⁰
=128+0+0+16+0+4+2+0
= (150)10
Then, convert it into octal number
(150)10
=(226)8
25
CONVERSION OF OCTAL TO BINARY NUMBER
SYSTEM
Octal numbers can be converted into equivalent binary numbers by replacing each octal digit. by its
3-bit binary equivalent.
26
CONVERSION OF OCTAL TO HEXADECIMAL NUMBER
SYSTEM
27
CONVERSION OF HEXADECIMAL NUMBER SYSTEM
TO BINARY NUMBER SYSTEM
Hexadecimal numbers can be converted into equivalent binary numbers by replacing each
hexadecimal digit by its 4-bit binary equivalent.
28
CONVERSION OF HEXADECIMAL NUMBER SYSTEM
TO OCTAL NUMBER SYSTEM
In order to convert an hexadecimal number to Octal number .
First the hexadecimal number is converted to binary and then convert it to octal.
29
Boolean Algebra
• An algebraic system defined on the set {0,1} with two binary
operations AND and OR, and one unary operation NOT
• AND operation also called logical product is denoted by “.” or ^
• OR operation also called logical sum is denoted by “+” or “V”.
• NOT operation also called complement is denoted by single quote
or “~” or “-”.
Boolean Algebra (cont..)
▪Boolean Variables:
Variables that can take on values 0 and 1
▪Boolean Expression:
An expression consisting of switching variables, constants and
operators
Boolean Algebra (cont..)
• Given an Boolean expression, how to prove it?
a) By verifying the expression for all possible values of variables.
• Called truth table verification or perfect induction.
b) By using algebraic equation using some rules.
Basic Laws of Boolean Algebra
Basic Laws of Boolean Algebra (Contd..)
Proof of Boolean laws using Logical Gat
Proof of Boolean laws using Logical Gat
(cont..)
Proof of Boolean expression using Logic
1. A+AB = A
2. A+A’B = A+B
Proof of Boolean expression
using Logical Gates (cont..)
• (A+B).(A+C) = A+BC
0
NAND & NOR as universal logic
gates
• A universal gate is a gate which can implement any Boolean function
without need to use any other gate type.
• The NAND and NOR gates are universal gates. In practice, this is
advantageous since NAND and NOR gates are economical and easier
to fabricate and are the basic gates used in all IC digital logic families.
• In fact, an AND gate is typically implemented as a NAND gate followed
by an inverter not the other way around!!
• Likewise, an OR gate is typically implemented as a NOR gate followed
by an inverter not the other way around!!
40
41
42
43
44
Principles of Duality
• Principle of duality states that:
▪ A switching expression T2 can be obtained from a given switching expression T1 by
interchanging operations AND & OR, and constants 0 & 1.
▪ T1 & T2 are said to be dual of each other.
• Examples:
▪ x+1 = 1 is the dual of x.0 = 0
▪ x+x.y = x is the dual of x.(x+y) = x
▪ x+x’.y = x+y is the dual of x.(x’+y) = xy
Duality theorem
Simplification Example
• F = A’.B.C+ A.B’.C+A.B.C’+A.B.C
= A’.B.C+ A.B’.C+A.B(C’+C)
= A’.B.C+ A.B’.C+A.B (3 terms where each term is having 3 variables)
• Can the above expression be simplified further?
Simplification (Practice)
• F = A.B’ + A.B + B.C
= A(B’+B) + B.C
= A +BC
f(x,y,z) = (x+y+z).(x+y+z’).(x+y’+z).(x’+y+z)
f(x,y,z) = ∏(0,1,2,4)
Write the truth table for following functi
• f(a,b,c) = a’bc’ + ab’c + abc
a b c f
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1
Write the truth table for following ∏ notation and write its
canonical maxterm boolean expression
• f(a,b,c) = ∏(1,4,7)
= (a+b+c’).(a’+b+c).(a’+b’+c’)
a b c f
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
Algebraic Procedure to Obtain Canonical
s-o-p
• Examine each term of sum-of-products expression; if it is not a minterm,
go to next step.
• For all the missing variable xi, multiply the term by (xi ‘+ xi).
• Multiply all products and eliminate redundant terms.
Example
Algebraic Procedure to Obtain Canonical
p-o-s
• Examine each term of product-of-sums expression; if it is not a maxterm,
go to next step.
• For all the missing variable xi, multiply the term by xi ‘. xi.
• Obtain the sum terms and eliminate redundant terms.
Example
f(a,b,c) = a’(b’+c’)
= (a’+bb’+cc’).(b’+c+aa’)
= ((a’+b)(a’+b’)+cc’).(b’+(a+c)(a’+c))
=(a’+b+c)(a’+b+c’)(a’+b’+c)(a’+b’+c’)(a+b’+c)(a’+b’+c)
= (a’+b+c)(a’+b+c’)(a’+b’+c)(a’+b’+c’)(a+b’+c)
Transforming one form to another
• Double complement the given function and apply De Morgan’s theorem.
Converting to Gate Level Realization (s-
Converting to Gate Level Realization (p-