The Gateway to Computer Science Excellence
0 votes
254 views

in CO and Architecture by Active (2.5k points)
edited by | 254 views

1 Answer

0 votes
One Cycle takes 500ns.

First we calculate total number of cycle to transfer one byte of data from IO.

Transfer of control from processor to Io and IO to processor takes 250 ns that means 1/2 cycle for each transfer of control .

Given data transfer speed is 50KBps

50 KB data is transfered in --------> 1 second

1KB data can be tranfered in-------> 1/50 second

1 Byte data can be transfered in ---->1/(50*1024) seconds

or

1 byte data can be transferd in ---------> (1*10^9)/(50*1024) ns =>19531.25 ns

or

total no of cycle used in 1 byte data transfer ----->19531.25/500 =39.0625 cycles

So, total cycle used in 1 byte data transfer =( cycle used in control transfer from processor to io + cycle used in 1 byte transfer  + transfer of control from io to processor)

                                                                    =(1/2  +  39.0625 +  1/2)

                                                                    =40.0625 cycles

total cycle for 128 byte data transfer = 128 * 40.0625

                                                          = 5128 cycles

total time = 5128*500 ns

               =2564000 ns

               =2.564 ms
by (407 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,322 answers
198,394 comments
105,144 users