UNIT 3 COA Flashcards

1
Q

I/O subsystem and examples

A
aka peripheral
eff mode of comm: central sys -> outside enviro
M:cl K P S
(master key paints school)
monitor
kbd
printer
storage device
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

I/O interface need

A

COST
conversion of sig maybe

synch mech: transfer rate of peri slower than cpu

data codes+formats diff in word formats -> cpu, memory

operating modes of peri diff->peri control no deisturb others to cpu

(io has registers to help out)

special h/w comp bw cpu + peripheral
supervise and synch i/o transfers

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

I/O bus

A
DAC
data
address
control
(diag 1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Interface modules

A
SICRI
SCSI
IDE
centronics
rs-232
ieee-488
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

I/O Commands

A
COSI
Control->io read, give contro; sig to io
output
status->io ready?
input->initialize inp
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

io bus vs memory bus

A

iop->separate busses for mem and io

memory->same bus, diff control lines:(io read,write mem read,write)
iso i/o or i/o mapped i/o

memory->same bus,same control lines:(some loc -> mem, some loc-> io devices, if these ranges we know which)
mem-map io

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

comp bus?

A

comm with memory and io

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

example of io

A

(diag 2)
processor side -> bus buffer
chip select -> which device interface
register select -> which register?

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

modes of transfer

A
to and from peripherals (io -> cpu, io -> memory)
PID
programmed -> cpu
interrupt initiated -> cpu
dma -> memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

programmed io

A

io -> cpu
program for io -> instructions in program

(diag 3)
data valid active, if data on io bus

interface: data to dr in interface + set flag(io data in dr) in interface

enables data accepted line
io device waits for data accepted acknowdgement to place next data on bus

cpu part(diag 4)
status, flag -> 0 data not ready
flag -> 1 keeps on reading and transfering to memory, if op not done again and againnnn
DISADV: continous monitor(instradd of moving on) flag bit only when 1, continue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

interrupt initiated io

A

interrupt to cpu when ready (io data ready) and tells which device as well, no waiting

nonvectored -> fixed branch address -> isr

vectored -> interrupt source(kbd, mouse) gives branch address (direct isr) of int vector

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

io routines

A

sw routines control peri and transfer data processor -> peri
standard -> manu
in os
in os procedures

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

priority interrupt

A

many interrupts, identify source and determine first
sw -> polling
hw -> daisy chaining, parallel priority

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

polling

A

identify highest priority sw
one common branch for all interrupts->polls in sequence(one by one to see, you want interrupt?)->highest priority tested first
DISADVANTAGE: alllll the device checking,exceed time to service device

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

daisy chain

A

(diag 5)
highest priority -> next highest …->lowest
device sends interrupt request to cpu directly
cpu sends interrupt acknowledgement to first device, pi = 1, if that device, po=0
vad(vector address) placed on data bus to go to cpu (isr)
cpu executes isr

(diag 6 and 7)in each device

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

parallel priority

A

(diag 8) -> priority encoder -> Io highest pri

(diag 9)
0 -> highest pri
4 devices -> 4 bit register
mask register: don’t want from one input, mask it, enable mask bit to 0
mask bit 1,interrupt bit 1-> 1 to encoder
priority encoder:up ones 0, lower dc
output:vad of isr 00 01 (4 -> 2, 8 -> 3(xyz)…remaining bits = 0
IEN>set/clear to allow interrupts by program
IST->set/clear to allow interrupts by encoder output
enabled -> data bus
after each cycle IEN, IST check

17
Q

nested interrupts

A

(diag 10 + 9instru)

  1. kbd interrupt 749
  2. +1 in stack, 750
  3. check vad ad goes to that location
18
Q

isr operations

A

initial:C^2SSP
final:CRCSR
(diag 11)

19
Q

DMA

A
io -> memory directly
initial:cpu
(diag 12)
(diag 13)
disk  wants direct to memory
dmac:dma request->cpu:bus request->cpu:bus grant->dmac:dma acknowledgement->io:direct transfer(io word in data bus, dmac address to address, less word count when word = 0, eot, else checks requests)

(diag 14)

  1. burst: block
  2. cycle stealing transfer: byte
Ex. 2000 bytes disk -> memory
part adress to stor in mem (starting address) -> address
control -> byte or block, io to io..
word count:how many?
dma
eot

USES: fast transfer -> mag disks to memory
updating display for interactive terminal, transfer to screen periodically