Lecture 10 Flashcards

1
Q

How do the processor and I/O devices exchange data?

A
  1. Devices can input (keyboard, network card, USB port, scanner) or output (printer, display card, speakers, NIC) data with different I/O rates.
  2. CPU and RAM have the fastest I/O rates.
  3. Slower devices send interrupt signals to get the CPU’s attention.
  4. Direct Memory Access (DMA) allows data transfer between devices and memory without CPU intervention.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe the steps for data exchange between the processor and I/O devices.

A

CPU processes data/codes in its caches.
CPU caches get data from RAM.
RAM gets data/codes from input devices.
Data passes through buses to CPU/RAM/devices.
CPU issues instructions on which device should communicate.
Devices use IRQ signals to get CPU’s attention.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Shared I/O Arrangement?

A

Address and data lines from the CPU are shared between memory and I/O devices using control lines.
Address decoder circuitry and status registers identify I/O devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Advantages of Shared I/O Arrangement

A

Advantage: Separation of memory address space and I/O devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Disadvantages of Shared I/O Arrangement

A

Disadvantage: Special input and output instructions are needed in the processor’s instruction set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Memory-Mapped I/O Arrangement?

A

Processor’s read and write instructions perform I/O operations without special I/O instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Advantage of Memory-Mapped

A

Advantage: Eliminates need for special I/O instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Disadvantage of Memory-Mapped

A

Disadvantage: Reduces available memory address space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe Programmed I/O.

A

Processor executes input instruction from a device.
Address decoder circuitry in each input device checks if it is the identified device.
Enabled buffers in the specified device output data on the data bus.
Instruction decoding channels data from the data bus into a specific CPU register.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Interrupt-Driven I/O?

A

Devices send interrupt signals to get the CPU’s attention.
CPU serves the interrupting condition and then resumes its previous activity.
Interrupts can be from hardware or operating systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe the steps of Direct Memory Access (DMA).

A

Device driver sets up DMA channel’s address and count registers and data transfer direction.
DMA controller initiates data transfer.
Data moves, addresses increment, and word count reduces.
DMA informs the CPU of transfer completion via an interrupt.
CPU regains access to the memory bus.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How can devices get their data to the CPU for processing?

A

I/O Polling: CPU regularly checks device status indicators.
Interrupt-Driven I/O: Device or OS sends interrupt signals to the CPU.
Direct Memory Access (DMA): Devices transfer data directly to/from memory without CPU intervention.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a bus in computer terminology?

A

A physical connection used to carry signals (address, data, control, or power) from one point to another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the types of buses?

A

Address bus: Carries memory location addresses.
Data bus: Carries data to/from devices, RAM, CPU.
Control bus: Carries control signals to data paths.
Power bus: Carries power-supply/ground voltage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are synchronous and asynchronous buses?

A

Synchronous bus: Data transfer is in rhythm with the system clock.
Asynchronous bus: Data transfer is based on data availability using handshaking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an interface in computer systems?

A

A data path between two separate devices.
Can be either serial ports (transferring 1 bit of data at a time) or parallel ports (transferring multiple bits at once).

16
Q

Provide examples of interfaces and ports in computer systems.

A

NIC (Network Interface Card)
PATA (Parallel Advanced Technology Attachment)
SATA (Serial Advanced Technology Attachment)
HDMI (High-Definition Multimedia Interface)
PCI (Peripheral Component Interconnect)
AGP (Advanced Graphics Port)
USB (Universal Serial Bus)

17
Q

Compare and contrast serial and parallel data transmission.

A

Serial transmission: Transfers data one bit at a time.
Parallel transmission: Transfers multiple bits simultaneously.

18
Q

List five standard I/O interfaces in a computer system.

A

PCI (Peripheral Component Interconnect)
AGP (Advanced Graphics Port)
USB (Universal Serial Bus)
SATA (Serial Advanced Technology Attachment)
HDMI (High-Definition Multimedia Interface)

19
Q

What is the role of a device driver in DMA?

A

Sets up the DMA channel’s address and count registers and data transfer direction.
Determines which DMA channel to use.

20
Q

How does the computer system handle simultaneous interrupt requests?

A

The CPU prioritizes interrupts based on urgency and importance, serves the interrupting condition, and then resumes its previous activity.

21
Q

Explain the advantages and disadvantages of memory-mapped I/O.

A

Advantage: Uses processor’s read and write instructions for I/O operations.
Disadvantage: Reduces available memory address space due to reserved addresses for I/O devices.