Section 1: Components of a computer Flashcards
What are the control unit’s functions?
Control Unit’s jobs:
- Guide data flow through different computer areas
- Regulates and controls processor timing
- Interprets instructions
- Controls sequential instruction execution
- Sends and receives control signals from other computer devices
What is the definition of a bus in computing?
A bus is a set of parallel wires connecting two or more components of a computer.
What are the 3 types of bus (along with the direction with which they move)?
The 3 types of bus are:
- The address bus, uni-directional
- The data bus, bi-directional
- The control bus, bi-directional
What does it mean if a bus is bi-directional?
If a bus is bi-directional then it can carry signals in both directions (as opposed to being uni-directional).
What is the job of the control bus?
The job of the control bus is to use control lines in order to make sure that access to and use of the data and address buses by different components does not lead to conflict.
Name 3 examples of control lines
Examples of control lines:
- Bus request
- Bus grant
- Memory write
- Memory read
- Interrupt request
- Clock
What does the data bus do?
The data bus provides a bi-directional path for moving data and instructions between components.
What is a memory address?
A memory address is an address in the memory for a specific word.
What does the Arithmetic Logic Unit do?
The ALU performs arithmetic and logical operations on the data.
What are registers?
Registers are special memory cells that operate at very high speed.
How many general purpose registers can typically be found in the CPU?
There are typically 16 general purpose registers in the CPU.
What does the Program Counter (PC) do?
The PC holds the address of the next instruction to be executed.
What does the Current Instruction Register (CIR) do?
The CIR holds the current instruction being executed, divided into operand and opcode.
What does the Memory Address Register (MAR) do?
The MAR holds the addresses of the memory location from which data (or an instruction) is to be fetched or to which data is to be written.
What does the Memory Data Register (MDR) do?
The MDR temporarily stores the data read from or to be written to memory.
How does a processor access a particular main memory location using buses?
When the processor wishes to access a particular main memory location, it sends this address to memory on the address bus. The data in that location is then returned to the CPU on the data bus. Control signals are sent along the control bus.
What is the collective term for the 3 buses?
The collective term for the 3 buses is the system bus.
What is the accumulator?
The accumulator is a register that is used in specialised processors or used to represent general purpose registers in a simplified diagram.
What are the 3 stages of the fetch phase in the fetch-decode-execute cycle?
Fetch phase:
- The address of the next instruction is copied from the program counter to the memory address register
- The instruction held at that address is copied to the memory data register. Simultaneously, the content of the PC is incremented so that it holds the address of the next instruction.
- The contents of the MDR are copied to the current instruction register.
What happens during the decode phase in the fetch-decode-execute cycle?
Decode phase:
The instruction held in the CIR is decoded i.e. split into opcode and operand.
What is the opcode of an instruction?
The opcode of an instruction is the code that determines what type of instruction is to be executed and what hardware should be used when executing it (e.g. 0 means stop and 1 means add in a little man computer)
What is the operand of an instruction?
The operand of an instruction holds either:
- the address of the data to be used with the operation (which is then copied to the MAR), or
- the actual data to be operated on, which will be copied to the MDR (and may be passed through the ALU/accumulator)
What happens during the execute phase of the fetch-decode-execute cycle?
Execute phase:
The appropriate instruction/opcode is carried out on the operand.
What is meant by the word size of a computer?
The word size of a computer is the number of bits that can be processed by a computer’s CPU in one go (typically 32 or 64 bits)