DIGITAL LOGIC DESIGN [MCT-241L]
LAB 1: NUMBER SYSTEMS & CONVERSION
CALCULATIONS
Name : Date :
Regd-No :
OBJECTIVES:
▪ Practicing different Number Conversions studied in Theory.
CLO:
▪ CLO-1: Express numerical data and convert between different number systems (Cog-2)
SUGGESTED READING:
▪ Chapter 1: Digital Systems and Binary Numbers, Digital Logic Design by M. Morris Mano
& Michael D. Ciletti.
▪ Chapter 2: Number Systems, Operations, and Codes, Digital Fundamentals by Floyd.
---------------------------------------------------------------------------------------------------------------------
I - Decimal to Binary:
9710 97/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
14510 145/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
23310 233/2 = remainder →
1|Page
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
50110 501/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
87210 872/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
/2 = remainder →
2|Page
II - Decimal to Hexadecimal:
8110 81/16 = remainder →
/16 = remainder →
25510 255/16 = remainder →
/16 = remainder →
1180510 11805/16 = remainder →
/16 = remainder →
/16 = remainder →
/16 = remainder →
3399010 33990/16 = remainder →
/16 = remainder →
/16 = remainder →
/16 = remainder →
1145524010 11455240/16 = remainder →
/16 = remainder →
/16 = remainder →
/16 = remainder →
/16 = remainder →
3|Page
III - Binary to decimal:
101101112 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
001100002 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
011100002 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
001100102 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
011111002 =
x 27 + x 26 + x 25 + x 24 + x 23 + x 22 + x 21 + x 20
IV - Hexadecimal to decimal
D316 = x 161 + x 160 =
1BF16 = x 162 + x 161 + x 160 =
A9616 = x 162 + x 161 + x 160 =
9AFC16 = x 163 x 162 + x 161 + x 160 =
EFD416 = x 163 x 162 + x 161 + x 160 =
V - Encode these decimal numbers in BCD (Binary Coded Decimal).
(1) 9715
(2) 5017
(3) 58794
(4) 69321
(5) 894683
VI - Convert the following hexadecimal numbers to Octal.
(1) BAC416
(2) C416
(3) E1FC16
(4) 68D9AB16
(5) 32FC8A9A16
VII - Convert the following BCD numbers to decimal. Indicate if a
number cannot be a BCD number and explain why.
(1) 0010100111100000
(2) 1001011000110101
(3) 10010111100000111001100
(4) 110101000100100110000011
(5) 0110101001101010010100100101100101010100
VIII -Fill in the parity bits for the binary words below:
Odd parity Even Parity Data Word
1111101010110100
1111101101111011
0001001011000110
0101011010110111
0101100110110111
IX -Decimal to Binary (signed notation)- Assume 6-Bits
(If not Possible, write the reason)
The Number Magnitude Binary of Magnitude Binary of Original Number
-12
12
-30
-25
35
-40
X -Binary to Decimal- Assume 6-Bits
The Binary In Unsigned Notation 2’s Complement In Signed Notation
Number
1101
111000
11000
111111
11111
110