You are on page 1of 3

EE2323

Assignment #1

EE2323: Microprocessors & Computer Architecture

Assignment # 1
(Due-Date: Sec-3: April 11, 2011, Due in Class) (Due-Date: Sec-2: April 12, 2011, Due in Class) (Due-Date: Sec-1: April 13, 2011, Due in Class)

NOTE: This is an individual assignment. You have to submit it in handwriting. No Computer print outs will be accepted. No Late Submission is allowed!!

Q # 1. Do the following Conversions and show all intermediate steps :

(35-Points)

(a). Convert the following from Octal to Hexadecimal (347.65)8 (251.473)8 (b). Convert the following from Hexadecimal to decimal (C98.45)16 (1FE.125)16 (c ). Convert the following from Decimal to BCD 135 7956 (d). Convert the following from Decimal fraction to Single precision Floating point representation and show result in hexadecimal form 79.35 -143 0.0325

Page 1 of 3

EE2323 Q #2. Do the following arithmetic

Assignment #1

(20-Points)

(a) Do the following computation in 2s complement arithmetic and convert result back into decimal i. 64 71 in 2s complement

ii. 34 + 55 in 2s complement (b) Do the following computation in BCD arithmetic and convert result back into decimal i. 35+49

ii. 73-57

Q #3. Show how the following 8-bit , 16-bit and 32-bit data in hex is stored in a byte

addressable memory starting from address 0x01F2. Data will be stored in same sequence it is written. (20-Points) 0xA0C0 , 0x42526272 , 0x7F , 0x4321 , 0x5A , 0x49 , 0xBBAA9988 (a). If memory is Little endian (b). If memory is Big endian NOTE: You may show the memory in tabular form as below : Address . . 0x02F8 0x02F7 0x02F6 . . Data (8-bits)

(c ). Which of the data in part (a) & (b) is stored at aligned addresses and which data is stored at mis-aligned addresses

Page 2 of 3

EE2323 Q # 4.

Assignment #1

(20-Points)

(a). Compute value of 20-bit Physical address for following Base and Offset pairs:

0x1050 : 0x1236 0xA125 : 0x4075 0x0A68 : 0x70B6 0xB1AB : 0x802A

Which of the physical addresses are alias of each other ?

(b). Compute the unknowns in following physical address calculations: 0x850A : 0x1245 = PA ? 0xD765 : ? : ? = 0xDABC0

0xCD21 = 0x32D21

Page 3 of 3

You might also like