Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COS3721 ASSIGNMENT 1 SOLUTIONS 2023

Rating
-
Sold
3
Pages
11
Uploaded on
31-03-2023
Written in
2022/2023

COS3721 ASSIGNMENT 1 SOLUTIONS 2023

Institution
Course

Content preview

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

Written for

Institution
Course

Document information

Uploaded on
March 31, 2023
Number of pages
11
Written in
2022/2023
Type
Exam (elaborations)
Contains
Unknown

Subjects

$19.15
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
hiltontutorials University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
1905
Member since
7 year
Number of followers
1219
Documents
858
Last sold
9 months ago

3.7

359 reviews

5
145
4
83
3
56
2
28
1
47

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions