0% found this document useful (0 votes)
3 views5 pages

DLD Lab 01 - Number Base Calcs

This document outlines a lab session focused on number conversion calculations in digital logic design. It includes exercises for converting decimal to binary and hexadecimal, binary to decimal, hexadecimal to decimal, encoding decimal numbers in BCD, converting hexadecimal to octal, and converting BCD numbers to decimal. Additionally, it requires filling in parity bits for given binary words.

Uploaded by

Anas Sabir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

DLD Lab 01 - Number Base Calcs

This document outlines a lab session focused on number conversion calculations in digital logic design. It includes exercises for converting decimal to binary and hexadecimal, binary to decimal, hexadecimal to decimal, encoding decimal numbers in BCD, converting hexadecimal to octal, and converting BCD numbers to decimal. Additionally, it requires filling in parity bits for given binary words.

Uploaded by

Anas Sabir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Digital Logic Design

Lab Session: 01
Number Conversion Calculations
CLOs: CLO 1

Name: Roll Number:

Your grade will be based on all problems so I suggest you double check your work.

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 


/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 

Page 1 of 5
/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 

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 

Page 2 of 5
/16 = remainder 

III - Binary to decimal:

101101112 =

x 27 + x 26 + x 25 + x 24 + x 23 + ____ 22 + x 21 + x 20

001100002 =

x 27 + x 26 + x 25 + x 24 + x 23 + ____ 22 + x 21 + x 20

011100002 =

x 27 + x 26 + x 25 + x 24 + x 23 + ____ 22 + x 21 + x 20

001100102 =

x 27 + x 26 + x 25 + x 24 + x 23 + ____ 22 + x 21 + x 20

011111002 =

x 27 + x 26 + x 25 + x 24 + x 23 + ____ 22 + x 21 + x 20

IV - Hexadecimal to decimal

D316 = x 161 + x 160 =

1BF16 = x 162 + x 161 + _________ 160 =

A9616 = x 162 + x 161 + _________ 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

Page 3 of 5
(2) 5017

(3) 58794

(4) 69321

(5) 894683

VI - Convert the following hexadecimal numbers to Octal.

BAC416

C416

E1FC16

68D9AB16

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

Page 4 of 5
(3) 10010111100000111001100

(4) 110101000100100110000011

(5) 0110101001101010010100100101.100101010100

VIII - Fill in the parity bits for the binary words below:
Odd parity Even Parity Data Word

1111101010110100

1111101101111011

0001001011000110

0101011010110111

0101100110110111

Page 5 of 5

You might also like