Professional Documents
Culture Documents
AND TECHNOLOGY
REGULATION : 2017
SUBJECT:DIGITAL LOGIC CIRCUITS
CODE: EE8351
OBJECTIVES
• To study various number systems and simplify
the logical expression functions.
UNIT-I
Number systems and Digital logic families
13 10 = 11012
DECIMAL TO OCTAL
• Divide the number by 16
• Get the integer quotient for the next iteration
• Get the remainder for the octal digit
• Repeat the steps until the quotient is equal to 0
Eg: Convert decimal number 210 10 to Octal
Division by 8 Quotient Remainder
210/8 26 2
26/8 3 2
3/2 1 1
1/2 0 1
13 10 = 11218
Decimal to hex
• Divide the number by 8
• Get the integer quotient for the next iteration
• Get the remainder for the hex digit
• Repeat the steps until the quotient is equal to 0
Eg: Convert decimal number 7562 10 to hex
Division by 16 Quotient Remainder Remainder
(hex)
7562/16 472 10 A
472/16 29 8 8
29/16 1 13 D
1/16 0 1 1
7562 10 = 1D8A2
Binary to decimal
• Write down the binary number and determine
the positions, namely the power of 2
• Represent the number in terms of its
positions.
Eg: Convert (101011) 2 to decimal
= 1×2^5+0×2^4+1×2^3+0×2^2+1×2^1+1×2^0
= 32+0+8+0+2+1
=43
(101011) 2 = (43) 10
Binary to octal
BINARY OCTAL
000 0
001 1
010 2
011 3
100 4
101 5
110 6
111 7
• Take binary number
• Divide the binary digit into groups of three (starting from right for integer)
part and start from left for fraction part
• Convert each group of three binary digits to one octal digit.
For example:
00011010 + 00001100 = 00100110
1 1 carries
Binary Subtraction
Input A Input B Subtract A-B Borrow
0 0 0 0
0 1 0 1
1 0 1 0
1 1 0 0