CAP 1 Flashcards
3BM: What are the three boxes in the THREE BOX MODEL?
Processor
Main Memory
I/O
What is main memory?
Memory that is directly addressable by the processor.
What does volatile mean?
When power is lost, it loses its contents.
What does ‘random’ mean in terms of RAM?
Locations can be accessed directly in any order.
3BM: How does the processor communicate with I/O devices
The processor communicates through I/O controllers.
3BM: What is an I/O controller?
I/O controllers are circuits that connect to a bus and an I/O device.
Eg it provides the current voltages and currents required by the bus and I/O device
3BM: What is the system bus?
The system bus is a set of PARALLEL wires connecting independent components of a computer system
It is used to PASS SIGNALS between components.
What is the data bus?
The data bus is bidirectional and is used to transfer data between components.
What is the address bus?
The address bus is unidirectional and is used to address memory and I/O locations
(from the processor to other devices)
What is the control bus?
The control bus is bidirectional and is used to send control signals between components.
What are the two conditions of the stored program concept?
- A program must be resident in main memory to be executed
- Machine instruction code are fetched SEQUENTIALLY and executed one at a time in the processor.
Give three examples of the control signals that could be sent along the data bus.
Clock signals
Memory read
Memory write
What is a peripheral?
Connected to the computer but not a part of its core architecture.
What are the differences between Von Neumann and Harvard architecture?
- Von Neumann has one memory unit for both instructions and data WHEREAS Harvard has separate memory units for instructions and data
- Von Neumann has one set of buses for both instructions and data WHEREAS Harvard has separate buses for instructions and data
How can Harvard architecture be more secure when building embedded systems?
For systems with a predetermined use, instruction memory can be implemented as ROM which protects the programs from hacking.
What does the ALU do?
Performs calculations such as add, or and shift operations and logic operations.
What does the clock do?
The clock creates a continuous sequence of clock pulses to synchronise the operations of the processor components.
What does the control unit do?
The control unit coordinates activities in the CPU, memory and peripherals.
What are registers?
Registers are locations of computer memory within the processor that provide extremely fast access to small amounts of data.
Registers are used for temporary storage of binary values.
What are general purpose registers used for?
General purpose registers are used for keeping the results of the intermediate calculations that are produced as part of a larger computation.
What is the status register used for?
The status register is used to store information about the result of the last instruction.
What two things must happen before a program’s instructions are ready to be executed?
- They have to be translated into machine code
- The program instructions have been loaded into main memory.
Describe the fetch stage.
- Contents of the PC is copied into the MAR
- The address bus is used to transfer this address to main memory
3.1 The instruction held at that address is transferred via the data bus into the MBR
(simultaneously)
3.2 The PC is incremented to hold the address of the next instruction to be executed (not always +1 e.g. if word length is two bytes)
4 The contents of the MBR are copied into the CIR
Describe the decode stage.
The instruction held in the CIR is decoded by the control unit based on the processor’s instruction set
The instruction is split into its opcode and operand
Describe the execute stage.
The relevant part of the CPU executes the instruction held in the CIR.
Further memory fetches are carried out if necessary.
The general purpose registers and SR are updated.
What is meant by throughput?
The number of instructions carried out per second.
What is the instruction set?
The instruction set is the set of binary codes for the machine operations that a processor has been designed to perform.
What is meant by clock speed?
The frequency at which the system clock ticks