1/22
Looks like no tags are added yet.
Why use I/O controllers?
Hide device-specific timing and protocols behind a CPU-accessible interface.
What is a UART?
Universal Asynchronous Receiver Transmitter; converts between serial and parallel data.
What is memory-mapped I/O?
Device registers occupy reserved memory addresses accessed using ordinary load and store instructions.
What is a disadvantage of memory-mapped I/O on a shared bus?
I/O competes with CPU-memory traffic for bus bandwidth.
Why use a separate I/O bus and adapter?
Isolate slower I/O traffic and allow modular and extensible device connections.
What is polling?
The CPU repeatedly checks device status to detect an event.
When is polling useful?
Frequent events where repeated interrupt overhead would be costly.
What is the main disadvantage of polling?
Wastes CPU resources checking for infrequent events.
What is interrupt-driven I/O?
The controller signals the CPU when an event requires attention.
When is interrupt-driven I/O useful?
Infrequent events where the CPU can perform other work until notified.
What is the disadvantage of frequent interrupts?
Handler entry and register saving and kernel transitions create overhead.
What is DMA?
Direct Memory Access; a controller independently transfers data between memory and an I/O device.
What does the CPU do during a DMA transfer?
Sets up the transfer and handles completion notification instead of copying every word.
What do DMA address and length registers hold?
The next memory location and remaining transfer length.
Why is DMA efficient for bulk transfers?
Reduces per-word CPU involvement and interrupt overhead.
Why is bus arbitration necessary with DMA?
The CPU and DMA controller may request the shared memory bus simultaneously.
What does a bus arbiter do?
Grants bus access to one requester at a time.
What are bus request and bus grant signals?
Request asks for bus access; grant authorises a requester to use it.
What is even parity?
Choose a parity bit so the total number of ones is even.
What is odd parity?
Choose a parity bit so the total number of ones is odd.
Which bit errors can single-bit parity detect?
Any odd number of flipped bits.
Which bit errors can single-bit parity miss?
Any nonzero even number of flipped bits.
Can single-bit parity correct errors?
No; it cannot identify which bit changed.