Topic 4/5 Theory Flashcards

1
Q

Drawbacks of Sign-Magnitude Representation

A

two representations of 0
need to consider sign bit and magnitude to carry out operations

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

Why not connect peripherals directly to system bus ( Why use I/O)

A

Peripherals have different data formats and length, speed mismatch leads to inefficiency

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

Human readable

A

Communicating with computer

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

Machine readable

A

communicating with equipment

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

Communication

A

communicating with remote devices

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

Four types of I/O commands from CPU

A

Control,Test,Read,Write
Control: activate peripheral and tell it what to do
Test: test status condition of i/o and peripheral
Read: get data from peripheral -> data registers of I/O -> Data bus
Write: get data from data bus -> data registers of I/O -> peripheral

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

Addressing modes of I/O

A

memory-mapped I/O and Isolated I/O

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

Memory-mapped I/O

A

Single address space for memory and I/O device. CPU uses the same way to access both memory and I/O

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

Isolated I/O

A

separate address space for I/O and memory.
Need select lines to indicate address to I/O or memory

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

Context switching

A

When interrupt occurs, Program counter of ISR loaded,
Current CPU context is saved in stack.
Stack pointer - points to the top of the stack, where the current context is stored.

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

Drawbacks of programmed and Interrupt-driven I/O

A

requires active intervention of CPU, transfer rate is limited.
DMA is preferred to move large volume of data

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

DMA burst mode

A

transfer a block of data

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

DMA cycle stealing mode

A

each byte of data transfer, steals a bus cycle from cpu.

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

Info sent to DMA modules from CPU

A

read or write control line, address of I/O involved, starting memory address to read/write
Number of word to be read or written

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

Five-State Process Model in OS

A

New,Ready,Running,Exit
Waiting

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