100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COS3721 ASSIGNMENT 1 SOLUTIONS 2023 $17.33   Add to cart

Exam (elaborations)

COS3721 ASSIGNMENT 1 SOLUTIONS 2023

 51 views  3 purchases
  • Course
  • Institution

COS3721 ASSIGNMENT 1 SOLUTIONS 2023

Preview 1 out of 11  pages

  • March 31, 2023
  • 11
  • 2022/2023
  • Exam (elaborations)
  • Unknown
avatar-seller
COS3721 ASSIGNMENT 1 SOLUTIONS 2023


QUESTION 1


1.1 Direct memory access is used for high-speed I/O devices in order to avoid increasing the


CPU’s execution load.


a. How does the CPU interface with the device to coordinate the transfer? (2)


To initiate a DMA transfer, the CPU first sets up the DMA registers, which contain a pointer


to the source of a transfer, a pointer to the destination of the transfer, and a counter of the

number of bytes to be transferred. Then the DMA controller proceeds to place addresses on

the bus to perform transfers, while the CPU is available to accomplish other work.


b. How does the CPU know when the memory operations are complete? (2)


When the device is finished with its operation, it interrupts the CPU to indicate the

completion of the operation. Both the device and the CPU can be accessing memory

simultaneously. The memory controller provides access to the memory bus in a fair manner

to these two entities.


c. The CPU is allowed to execute other programs while the DMA controller is

transferring


data. Does this process interfere with the execution of the user programs? If so, describe


what forms of interference are caused?(4)


Both the CPU and the DMA controller are bus masters. A problem would be created if both

the CPU and the DMA controller want to access the memory at the same time. Accordingly,

the CPU should be momentarily prevented from accessing main memory when the DMA

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller hiltontutorials. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $17.33. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67096 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$17.33  3x  sold
  • (0)
  Add to cart