+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
Question number One:
A hard drive has 4 surfaces, with 512 tracks per surface and constant 64 sectors per track. Sector size is 2K byte. The average seek time is 3 ms, the drive runs at 3,600 rpm.
Solution:
The drive capacity will be as follows:
Hard drive has surfaces = 4
Tracks per surface = 512
Constant sector per track = 64
Sector size = 2K byte
What is the drive capacity=?
Capacity = 4 x 512 x 64 x 2k
= 262.144MB
The second part of the question is as follows:
The Average seek time =3ms
Drives runs at = 3,600 rpm
What is average access time for the drive=?
Rotational latency = Rotational time/2
= 60 = 8.3ms
3,600x2
Average access time= Seek time + Rotational latency
= 3ms + 8.3
=11.3ms
Question number Two:
Use the hamming code to encode the following 4-bit values.
Also write down the encoding scheme.
Solution:
Encoding:
Traditional Hamming code are (7, 4) codes, encoding four bits of data into seven bit blocks (a Hamming code word). The extra three bits are the parity bits. Each of the three parity bits is parity for three of the four data bits, and no parity bits are for the same three data bits. All of the parity bits are even parity bits.
Step 1:
Represent each data bit with a column vertex as follows:
0
d1 = 1
1
0
1
0
d2 = 0
1
0
d3 = 0
0
0
1
1
d4 = 1
1
Step 2:
Represent each parity bit with a column vector containing a 1 in the row corresponding to each data bit included in the computation and a zero in all other rows. Using the parity bit definition:
1
P1= 0
0
1
0
P2 = 1
1
0
1
P3 = ` 1
1
1
Step 3:
Now we will encode the data value 0110 using the Hamming code :
1 0 1 0 1 0 1
0 1 1 1 0 0 1
[0110] 0 1 1 1 0 0 1
1 0 1 0 1 0 1
= (0*1) + (1*0) + (1*1) + (0*0)
(0*1) + (1*0) + (1*0) + (0*1)
(0*1) + (1*0) + (1*0) + (0*1)
(0*1) + (1*0) + (1*1) + (0*0)
(0*1) + (1*1) + (1*0) + (0*1)
(0*1) + (1*1) + (1*0) + (0*1)
(0*1) + (1*1) + (1*0) + (0*1)
0 + 0 + 1 + 0 = 1
0 + 0 + 0 +0 = 0
0 + 0 + 0 + 0= 0
0 + 0 + 1 + 0 = 1
0 + 1 + 0 + 0 = 1
0 + 1 + 0 + 0 = 1
0 + 1 + 0 + 0 = 1
Hence the encoded value of the data value of 0110 is = 100111
Tags:
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)
+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)CS501 Advance Computer Architecture Assignment#05 Solution
See the attached file please
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post