Sie sind auf Seite 1von 11

WESTERN UNIVERSITY

Dept. of Electrical & Computer Engineering

DIGITAL LOGIC SYSTEMS


ECE 2277a: Digital Number Systems (Unit 1)
Q & A (Sep. 20, 2020)
Arash Reyhani
areyhani@uwo.ca
Q0. Convert decimal 25 (Dec 25) into octal.

ECE 2277a: Unit 1-Q&A (I) A. Reyhani 2


Q1.1a. List the octal and the hexadecimal numbers from 16 to 32.

Dec. 16 17 18 19 20 21 22 23
Oct.

Hex.

Dec. 24 25 26 27 28 29 30 31 32
Oct.

Hex.

ECE 2277a: Unit 1-Q&A (I) A. Reyhani 3


Q1.1b. Using A, B, and C for the last two three, list the numbers from 8 to 28 in
base 13.

Dec. 8 9 10 11 12 13 14 15 16 17 18
Base-
13

Dec. 19 20 21 22 23 24 25 26 27 28
Base-
13

ECE 2277a: Unit 1-Q&A (I) A. Reyhani 4


Q1.3 - Convert the following numbers with the indicated bases to decimal:
(735)8

(525)6

ECE 2277a: Unit 1-Q&A (I) A. Reyhani 5


Q1.4 - What is the largest binary number that can be expressed with 14 bits?
What is the equivalent decimal and hexadecimal?

ECE 2277a: Unit 1-Q&A (I) A. Reyhani 6


Q1.8a - Convert the decimal number 431 to binary in two ways: (a) Convert
directly to binary;
(431)10= (x8 … x1x0)2 =(110101111)2
Quotient Remainder
431
215 1= x0(LSb)
107 1
53 1
26 1
13 0
6 1
3 0
1 1
0 1= x8(MSb)
ECE 2277a: Unit 1-Q&A (I) A. Reyhani 7
Q1.8b - Convert the decimal number 431 to binary in two ways: (b) convert first
to hexadecimal and then from hexadecimal to binary. Which method is faster?
(431)10=(y2y1y0)16 =(1AF)16 =(0001 1010 1111) 2
Quotient Remainder
431

26 15=F =11112 → y0(LSD)

1 10=A =10102
0 1 =00012 → y2(MSD)
ECE 2277a: Unit 1-Q&A (I) A. Reyhani 8
Q1.8 - Convert the decimal number 431 to binary in two ways: (b) convert first
to hexadecimal and then from hexadecimal to binary. Which method is faster?
(431)10=(y2y1y0)16 =(1AF)16=(0001 1010 1111) 2
Quotient Remainder Quotient Remainder
431 431
215 1= x0(LSb)
107 1
53 1
26 1 26 15=F =11112 → y0(LSD)
13 0
6 1
3 0
1 1 1 10=A =10102
0 1= x8(MSb) 0 1 =00012 → y2(MSD)
ECE 2277a: Unit 1-Q&A (I) A. Reyhani 9
Q1.10 - Convert the following binary numbers to hexadecimal and to decimal:
(a) 1.100102, (b) 110.0102. Explain why the decimal answer in (b) is 4 times that
in (a).

ECE 2277a: Unit 1-Q&A (I) A. Reyhani 10


Perform the following binary operations:

1101
x 1011

ECE 2277a: Unit 1-Q&A (I) A. Reyhani 11

Das könnte Ihnen auch gefallen