Ch 1: Computer System Overview Flashcards
Define Processor.
Controls the operation of the computer (CPU), performs data processing; read from main memory
Define Main Memory.
Stores data and information and is usually volatile. Its contents are lost when the computer is shut down (except for disk memory).
Define I/O Modules.
Moves the data between the computer and external environments like storage (hard drive), communications equipment (mouse/keyboard), and terminals
Define System Bus.
Provides communication among processors, main memory, and I/O modules.
Define PC.
Stands for program counter. It has the address of the next instruction to be executed from main memory.
Define IR.
Stands for instruction register. It holds the instruction currently being executed or decoded. Each instruction that is to be executed is loaded into the instruction register.
Define MAR.
Stands for memory address register. It either stores the memory address from which data will be fetched, or the address to which data will be sent and stored via System Bus.
Define MBR.
Stands for memory buffer register. It stores the data being transferred to and from the immediate access storage. It contains a copy of the value in the memory location specified.
Define I/O AR.
Stands for input/output address register. It provides the transfer of information from inputs to the central computer, or from it to the output equipment.
Define I/O BR.
Stands for input/output buffer register. It contains data to be read from an I/O buffer or to be written into one.
What is the first step of program execution?
The processors reads instruction from the main memory.
What is the second step of program execution?
The processors executes each instruction
Define Processor-Memory in IR.
Data may be transferred from processor to memory or from memory to processor.
Define Processor-I/O.
Data may be transferred to or from a peripheral device by transferring between the processor and an I/O module.
Define Data Processing in IR.
The processor may perform some arithmetic or logic operation on data.
Define Control in IR.
An instruction may specify that the sequence of execution be altered.
What is the formula to find the number of of instructions?
2^(size of opcode in bits)
What is the formula to find the number of positions?
2^(# of bits of address)
What is the formula to find the size of the positions?
16 bits = 2 bytes
What is the formula to find the size of memory (bytes)?
of positions * size of position
What is the purpose of Interrupts?
They are provided to improve processor utilization. They interrupt the normal sequencing of the processor.
a) most I/O devices are slower than the processor
b) processor must pause to wait for device
c) wasteful use of the processor
Describe the steps of Interrupt Processing.
- The device issues an interrupt signal to the processor.
- The processor finishes execution of the current instruction before responding to the interrupt.
- The processor tests for a pending interrupt request. If there is, then it gives a signal to the device that issued the interrupt. The device removes the interrupt signal.
- The processor then needs to transfer control to the interrupt routine. It saves the info to resume the current program where it was interrupted.
- The processor loads the PC.
- The interrupt handler will save the contents of all register on the stack.
- The interrupt handler processes the interrupt by examining status info.
- The saved register values are retrieved from the stack and restored.
- Restore the PSW and PC values from the stack.
What are the two approaches if there are multiple interrupts?
- Disable interrupts while an interrupt is being processed. The processor will ignore any new interrupt request signal.
- Define priorities for interrupts and allow an interrupt of higher priority to cause a lower-priority interrupt handler to be interrupted.
What are the major constraints in memory?
Amount, speed, and expense. Memory must be able to keep up with the processor. The cost of memory must be reasonable in relationship to the other components.