subject

An input device transfers data to a CPU at an average rate of 100 KB/sec on a continuous basis. The device is connected to a DMA module that transfers characters directly to main memory using cycle stealing. It takes one clock cycle to transfer one byte of data from the DMA module to the memory. The processor executes instructions at the rate of 16 million instructions per second (16 MIPS). a) Suppose each instruction takes two clock cycles to execute. In the first cycle of each instruction, the CPU fetches the instruction from memory, and in the second cycle, it fetches an operand from main memory to a CPU register. There are no other data fetches or stores. By how much is the processor slowed down due to the DMA activity? Express your answer as a percentage.
b) Now suppose that each instruction takes four clock cycles to execute. In the first cycle, the CPU fetches the instruction from memory; in the second cycle, it fetches an operand from memory; in the third cycle, it executes the operation, which involves no memory access; and in the fourth cycle, it stores the result of the operation into a location in main memory. Suppose the cycle stolen by the DMA device randomly falls during one of the four cycles of instruction execution. In this case, by how much is the processor slowed down due to the DMA activity? As before, express your answer as a percentage.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
If you have a lien on your vehicle, you cannot apply for a duplicate copy of your vehicle’s certificate of title. true or false
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Each time you save a document, you will need to type in the file type in which it should be saved you can select the save button to save it with the same file name if it has been previously saved you will need to select the location to save the file you will need to use the save as dialog box
Answers: 1
question
Computers and Technology, 25.06.2019 05:20
6. write a user-defined matlab function for the following math function: r() = 4cos(4sin ) the input to the function is  (in radians) and the output is r. write the function such that  can be a vector. a) use the function to calculate r(/6) and r(5/6). b) use the function to plot (polar plot) r() for 0 ≤  ≤ 2. hint: use “ polar” and/or for “polar plot in matlab." include the title “'r(\theta)=4cos(4sin(\theta))”
Answers: 1
You know the right answer?
An input device transfers data to a CPU at an average rate of 100 KB/sec on a continuous basis. The...
Questions
Questions on the website: 13722363