I/O

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

23 Terms

1
New cards

Why use I/O controllers?

Hide device-specific timing and protocols behind a CPU-accessible interface.

2
New cards

What is a UART?

Universal Asynchronous Receiver Transmitter; converts between serial and parallel data.

3
New cards

What is memory-mapped I/O?

Device registers occupy reserved memory addresses accessed using ordinary load and store instructions.

4
New cards

What is a disadvantage of memory-mapped I/O on a shared bus?

I/O competes with CPU-memory traffic for bus bandwidth.

5
New cards

Why use a separate I/O bus and adapter?

Isolate slower I/O traffic and allow modular and extensible device connections.

6
New cards

What is polling?

The CPU repeatedly checks device status to detect an event.

7
New cards

When is polling useful?

Frequent events where repeated interrupt overhead would be costly.

8
New cards

What is the main disadvantage of polling?

Wastes CPU resources checking for infrequent events.

9
New cards

What is interrupt-driven I/O?

The controller signals the CPU when an event requires attention.

10
New cards

When is interrupt-driven I/O useful?

Infrequent events where the CPU can perform other work until notified.

11
New cards

What is the disadvantage of frequent interrupts?

Handler entry and register saving and kernel transitions create overhead.

12
New cards

What is DMA?

Direct Memory Access; a controller independently transfers data between memory and an I/O device.

13
New cards

What does the CPU do during a DMA transfer?

Sets up the transfer and handles completion notification instead of copying every word.

14
New cards

What do DMA address and length registers hold?

The next memory location and remaining transfer length.

15
New cards

Why is DMA efficient for bulk transfers?

Reduces per-word CPU involvement and interrupt overhead.

16
New cards

Why is bus arbitration necessary with DMA?

The CPU and DMA controller may request the shared memory bus simultaneously.

17
New cards

What does a bus arbiter do?

Grants bus access to one requester at a time.

18
New cards

What are bus request and bus grant signals?

Request asks for bus access; grant authorises a requester to use it.

19
New cards

What is even parity?

Choose a parity bit so the total number of ones is even.

20
New cards

What is odd parity?

Choose a parity bit so the total number of ones is odd.

21
New cards

Which bit errors can single-bit parity detect?

Any odd number of flipped bits.

22
New cards

Which bit errors can single-bit parity miss?

Any nonzero even number of flipped bits.

23
New cards

Can single-bit parity correct errors?

No; it cannot identify which bit changed.