0% found this document useful (0 votes)
4 views

Mit Assi 2

Uploaded by

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

Mit Assi 2

Uploaded by

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

QUESTION 1

ADDITION OF UNSIGNED HEXADECIMAL NUMBERS

A. 2 2 216 +816=10 16=A 16; hence the sum does not overflow the two hex
+ 8 digit result
2 10
2 A

B. 7 3 316 +C 16=316 +1216=1516 = F 16


+2 C The sum does not overflow
9 F

C. 7 F F 16+ F 16=1516 +1516=30 16; 30 – 16 = 14 where 14 16=E16 and the


+7 F 16 goes to the next column as a carry (1)
F E The sum overflows
716 +7 16=1516=F 16; Sum does not overflow

D. C 2 216 +4 16=6 16; does not overflow


+A 4 C 16+ A 16=1216+ 1016=2216 ; 2216−16 16=616 and the carry goes to
1 6 6 the next column, the sum overflows.

QUESTION 2: IMPLEMENTATION OF FUNCTIONS USING A SINGLE 16X3 ROM AND


USING DOT NOTATION TO INDICATE THE ROM CONTENTS
TRUTH TABLES:
X = AB + BC`D + A`B`

A B C D AB A`B` C` BD BC`D X
0 0 0 0 0 1 1 0 0 1
0 0 0 1 0 1 1 0 0 1
0 0 1 0 0 1 0 0 0 1
0 0 1 1 0 1 0 0 0 1
0 1 0 0 0 0 1 0 0 0
0 1 0 1 0 0 1 1 1 1
0 1 1 0 0 0 0 0 0 0
0 1 1 1 0 0 0 1 0 0
1 0 0 0 0 0 1 0 0 0
1 0 0 1 0 0 1 0 0 0
1 0 1 0 0 0 0 0 0 0
1 0 1 1 0 0 0 0 0 0
1 1 0 0 1 0 1 0 0 1
1 1 0 1 1 0 1 1 1 1
1 1 1 0 1 0 0 0 0 1
1 1 1 1 1 0 0 1 0 1
Y = AB + BD

A B C D AB BD Y
0 0 0 0 0 0 0
0 0 0 1 0 0 0
0 0 1 0 0 0 0
0 0 1 1 0 0 0
0 1 0 0 0 0 0
0 1 0 1 0 1 1
0 1 1 0 0 0 0
0 1 1 1 0 1 1
1 0 0 0 0 0 0
1 0 0 1 0 0 0
1 0 1 0 0 0 0
1 0 1 1 0 0 0
1 1 0 0 1 0 1
1 1 0 1 1 1 1
1 1 1 0 1 0 1
1 1 1 1 1 1 1

Z=A+B+C+D

A B C D Z
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
THE DECODER

0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
A 0 1 0 1
B 0 1 1 0
C 0 1 1 1
D 1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1

X Y Z

QUESTION 3

Given 8 surfaces, 512 tracks/surface, 64 sectors/track; 1kB/sector, average seek time= 8ms,
track-to-track access time= 1.5ms, speed= 3600rpm
a. Disk capacity = Number of surfaces * (Number of track/surface) * (Number of
sectors/track) * sector size
= 8 surfaces* (512tracks/ surface) * (64sectors/track) * 1KB
=8*512*64*1KB
262144 KB
=
1024
=256MB

b. Average access time


=seek time + rotational delay + track-to-track access time
Rotational latency/delay = 3600 rpm = 60 rps = 16.67 ms/rev
16.67
Hence average rotational latency = = 8.33ms/rev
2
=8ms + 8.33ms + 1.5ms
=17.33ms
c. Time required to transfer a 5MB file
Being given that the disk has 8 surfaces, then each cylinder consists of 8 tracks, 64
sectors per track with the accommodation of 1KB on each sector.
Thus, one cylinder is able to transfer
= 8 tracks  64 sectors/track  1KB/sector
= 8 64 1
= 512KB
and 5MB  1024 = 5120KB
Since 1 cylinder = 512KB
5120 KB 1 cylinder
Then 5120 KB =
512 KB
= 10 Cylinders

The disk will need average seek time of 8ms for cylinder i
To find sector O, rotation latency is 8.3ms
60
To read all 8 tracks on one cylinder= 8
3600
=0.13333s
=133.3ms

d. Burst Transfer rate

number of bytes /track


=
rotational latency

64∗1024 bytes
=
8.3 ms
= 7895903.614 Bytes/s
=7710.843373 Kilobytes/s
=7.531 Megabytes/s

You might also like