Lecture 3: Machine Organization 3 Flashcards
Device Controllers:
Hardware interface between device and bus : handles the I/O signals of the CPU (Do not confuse with device drivers which are software)
I/O interface:
method used to transfer info between device and memory
Programmed I/O:
I/O instructions are part of a processor program and CPU executes the instruction of the program (transferring data to memory).
Interrupt-initiated I/O:
Device interrupts the CPU to transfer its data
Direct Memory Access (DMA):
device had direct access to memory
no CPU involvement is necessary
Device Drivers:
Program that enables hardware devices to communicate
with the computer’s OS. Part of the OS
Buffering/prefetch:
When device op reads more data than user requested (use all n data registers)
Interrupt Request Flag (IR Flag)
Requires additional hardware (so requires more complex HW/SW but offers more efficient use of computer resources)
“Block-oriented” devices
Transfer a lot of data with 1 I/O request.
User mode:
Execution in user role (limited, no privileged instructions)
Kernel mode:
Execution is OS role (Privileged instructions allowed)
Direct Memory Access(DMA)
Removes CPU from data transfer altogether
- Smart controller transfers all data directly to memory
- CPU initiates as before, but adding a memory location to request where result will be stored
- One interrupt only after all data transferred