Chapter 1.1 (The processor and processor components) Flashcards
- Learn the contents of the processor - Learn the (busses and the registers) - Learn the Fetch-Decode-Execute cycle
What are the components of a CPU?
- Control unit (CU)
- Buses
- Arithmetic/Logic unit (ALU)
- Dedicated registers
What is the function of the Control Unit?
- The Control unit controls and co-ordinates the activities of the CPU.
- It directs the flow of data between the CPU and other devices.
- It performs the fetch-decode-execute cycle
What is a bus?
A bus is a set of parallel wires connecting two or more components of a computer
What are the three busses collectively known as?
Name them
- They are known collectively as the system bus
- Consisting of the address, data and control bus
What is the control bus?
The control bus is a bi-directional bus that transfers command, timing and specific status information between system components
What is the data bus?
The data bus is a bi-directional path for moving data and instructions between system components
What is the address bus?
The address bus is a bus that transmits the memory addresses of data that is used as operands in program instructions.
What is the function of the ALU?
The arithmetic logic unit performs calculations and Logic operations.
What are the Registers in the CPU?
- Accumulator
- Program counter (PC)
- Current Instruction Register (CIR)
- Memory Address Register (MAR)
- Memory Data Register (MDR)
What is the function of the accumulator?
The accumulator is the register where operations carried out in the ALU are stored
What is the function of the Program Counter?
The program counter (PC) is the register that holds the address of the next instruction to be carried out
What is the function of the Current Instruction Register?
The Current Instruction Register (CIR) holds the current instruction being carried out as an Opcode and an Operand
What is the function of the Memory Address Register?
The Memory Address Register (MAR) holds the address of the memory location from which the data is to be fetched from or written to
What is the function of the Memory Data Register?
The Memory Data Register (MDR) is used to temporarily store the data read from or written to memory
What happens in the Fetch stage of the Fetch-Decode-Execute cycle?
1 - The address of the next instruction from the Program counter is copied to the Memory Address Register
2 - The instruction located at the Address from the MAR (Via the address bus), is copied into the MDR
3 - simultaneously the PC is incremented
4 - The contents of the MDR are then copied into the CIR