retagged by
1,167 views
0 votes
0 votes

Here device transfer rate is 416.7 us and cpu executing an instruction in .5 us.

So how to decide the clock cycle time, to calculate the fraction of cpu slows down?

retagged by

2 Answers

Best answer
2 votes
2 votes

DMA can transffer in Cycle steeling Mode = 1 BYTE

 But can trasfer = $\frac{19200}{8}$ = 2400 B

Processor can transmit = 2 Million instruction. 

So slow down = $\frac{2400}{2M}$ = 1200 $\times$ 10-6  = 0.0012 $\times$ 100= 0.12 %

selected by
0 votes
0 votes
here for every 1 byte it will steal one cycle of time

so for 1 byte how much time it will take 8/19200=416 micro sec

 

 

the cpu is fetching with 2 million per sec

1 sec ------------- 2 million instructions

1 instr-------------0.5 micro sec (cycle time)

in 416 micro sec it will steal one cycle (or one instruction of time) so total instructions will be 832 instructions

so the cpu slow down will be 1/832 * 100 = 0.12%

Related questions

2 votes
2 votes
1 answer
2
Avir Singh asked Nov 20, 2018
2,377 views
Consider a device of 1MBPS is operating in a cycle stealing mode of DMA .Whenever 16 B word is available it is transferred into memory in 4 microseconds. What is the % of...
1 votes
1 votes
2 answers
4
sidsunny asked Jan 26, 2017
864 views
I have gone through these types of questions but I'm unable to understand. how to appraoch these questions? And during the dma transfer, cpu is considered to be idle. bef...