131 Week 6 - IO System Flashcards

1
Q

Function of the input output system

A

Allows input and output devices to be attached to the processor

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

Speed gap challenge

A

Because I/O devices are often mechanical, they run orders of magnitude slower than the CPU. This means we need to make sure the CPU is not slowed down when it interacts with an I/O device e.g., fetching data from a hard disk.

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

Device diversity challenge

A

Devices are very diverse and we need to make sure all types of devices can be connected to the processor

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

Diversity of data access modes

A

Some devices are read-only or write-only or read-write.
Some devices access by the individual byte whereas some access by the block.
Some devices access data randomly but some access data sequentially.

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

Device specific operations

A

Some devices will have operations which can only happen to that device.
E.g., change resolution for screens, set time for clocks or focus for cameras.

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

I/O protocols

A

Data transfer errors can happen e.g., electric noise or wireless transmission can cause errors.
Devices can be synchronous or asynchronous

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

Device drivers

A

Software plugins inside the OS which abstract over device diversity by grouping sets of devices that “look the same”, allowing communication between the device and processor.

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

Functions of device drivers

A

Registering device with OS and initialising it.
Initiating data transfers to/from a device.
Monitoring status events from a device.
Managing device/system shutdown – ensure OS doesn’t stop until all unwritten data is stored and the device is left in a safe state.

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

What are the 2 device types

A

Character and block devices.

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

Character devices

A

Sends and receives 1 byte at a time, e.g., keyboard.

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

Block devices

A

Sends and receives a multi-byte block, e.g., hard disk.

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

Hard disk

A

Hard disks are block oriented devices.
The smallest unit of disk storage on a hard disk is called a sector - commonly 512 bytes in size.
Hard disks have multiple heads inside them. Each head is split up into tracks and each track contains multiple sectors.
Data is addressed at the device level as <head, cylinder, sector>.

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

What are the 2 types of processor support for I/O

A

Isolated I/O and memory-mapped I/O

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

Isolated I/O

A

I/O devices are assigned a separate address space, distinct from the memory address space.
Special instructions are used by the CPU to interact with the I/O devices.

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

Pros and cons of isolated I/O

A

+ Suited to simple devices
- Having fixed I/O instruction set

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

Memory mapped I/O

A

The I/O devices share the same address space as the system memory.
Regular memory instructions are used for both memory and I/O operations.

17
Q

Pros and cons of memory mapped I/O

A

+ simply, flexible programming model
- adds complexity to devices - need to understand larger addresses and work at memory speeds.