The situation: Your program is in the middle of iterating through a giant array, adding a constant to each value. In oth

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

The situation: Your program is in the middle of iterating through a giant array, adding a constant to each value. In oth

Post by answerhappygod »

The situation: Your program is in the middle of iterating
through a giant array, adding a constant to each value. In other
words: load-add-store, over and over. (Assume this will continue
throughout the DMA transfer.) The instruction stream is getting a
100% hit rate in the instruction cache, but all of the references
to the array elements have to access the memory. The processor is
not pipelined. It does have a standard five-stage execution
(Fetch-Decode-Execute-Memory-Writeback) with each stage taking one
bus cycle.
The DMAC is then ready to transfer 8 bytes from the host memory
to an I/O device. It is currently using transparent mode. Assuming
the DMAC gets every bus cycle not used by the
CPU, it will take ___________ cycles to complete the transfer.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply