Input/Output Flashcards

1
Q

What is considered I/O?

A

Any transfer of data to or from the CPU / memory

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

What are point - to - point connections?

A

pairwise connections between nodes. No addresses needed, lots of wires for lots of connections.

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

What is a mesh network?

A

Pairwise connections between nodes, nodes route messages between addresses. Can get messy and slow

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

What is bus architecture?

A

Every node has equal access to a shared network called the bus.

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

How does a node send a message to another node in bus architecture?

A
  • Announce who the message is for. (Address)
  • Announce what type of message it is
  • Announce the data
  • Ensure the above signals don’t collide.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Advantages of a bus architecture ?

A

Easy to add new devices, low cost as not many connections are needed.

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

Disadvantages of a bus architecture ?

A

The bus can bottleneck the whole network, and the performance can be limited by other physical factors (bus length, number of connections)

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

What is the address line ?

A

It designates the source and destination of data on the bus.

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

What detirmines the bus capacity ?

A

The width of the bus.

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

What are data and control lines ?

A

Data lines transport data, control lines transport data and address lines. Provides command and timing info for the nodes.

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

How do you calculate bandwidth ?

A

bandwidth = lane speed * number of lanes

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

What registers in the CPU control I/O ?

A

MAR (Memory Address Register) holds addresses of read / write to go on address lines. MBR (Memory Buffer Register) holds data to go on the data line.

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

What is an I/O module ?

A

I/O modules act as RAM within memory addresses. Can send commands and data to the I/O module, we can also read / write from the module.

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

How does the I/O module handle work ?

A

Not as fast as the CPU but can manage instructions independent of the CPU (Parallelisation)

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

How does the I/O module send data to peripherals ?

A

The CPU rate is high ,therefore, the data is buffered in the I/O module and sent to the peripheral at its own rate. The I/O module also manages errors from the peripherals

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

What is the difference between I/O module and device drivers ?

A

I/O module is hardware on the bus connected to the CPU. Device drivers are responsible for the communication between the perihperal and I/O module.

17
Q

What is polling I/O ?

A

The CPU periodically checks the status of the I/O module until the operation is complete. Simple to implement but inefficient.

18
Q

What is interrupt driven I/O ?

A

When the I/O operation is done it sends an interrupt request ot the CPU.

19
Q

What is Direct Memory Access I/O ?

A

Takes I/O communcation from the CPU, sends interrupt request when done. Used in large data movment. Frees the CPU but can clog the bus.

20
Q

What can be used rather than a I/O module ?

A

Memory Mapped I/O:
Assign dedicated RAM to represent devices. Devices read from the memory itself. Used as VRAM.
CPU I/O Pins:
Dedicated pins on the CPU for I/O. Frees up bus and address space. Used in embedded systems.

21
Q

What is the bus hierachy ?

A
  • Northbridge (Connects to the CPU, RAM, PCIe, GPU)
  • Southbridge (I/O modules, migrated onto a single chip)
22
Q

What is PCIe ?

A

General purpose data transfer for internal peripherals. Not really a bus more of a mesh.

23
Q

What is USB ?

A

Standardised for connecting to peripheral devices. Not really a bus, point-to-point connection. manager / worker protocol.