Components Of A Computer Flashcards
What does the control unit do?
Controls and coordinates what the CPU is doing. Directs the flow of data between CPU and other devices. It accepts the next instruction, decodes it into several steps and manages its execution.
What is a bus?
A bus is a set of parallel wires connecting two or more components of a computer.
What are the three buses the CPU is connected to?
address, data and control
How does the CPU use the address bus?
When the CPU wants to access a location in the main memory, it sends the address to the memory along the address bus.
How is the data bus used?
Data retrieved from the main memory is returned to the CPU on the data bus
What is the ALU?
Arithmetic Logic Unit. Performs arithmetic and logical operations.
Name the five registers in the CPU
Program Counter Current Instruction Register Memory Address Register Memory Data Register Accumulator
Not the ALU idiot
What is the PC used for?
Holds the address of the next instruction to be executed.
What is the CIR used for?
Holds the current instruction being executed, divided into operand and opcode
What is the MAR used for?
Holds the address of the memory location where data is being retrieved/written to
What is the MDR used for?
Used to temporarily store the data read from or being written to memory.
Describe the fetch phase of the Fetch-execute cycle
The address of the next instruction is copied from the PC to the MAR.
The contents of the MAR are sent along the address bus to main memory.
The data held at that address in memory is returned along the data bus and copied to the MDR. Simultaneously the content of the PC is incremented.
The contents of the MDR are copied to the CIR.
Describe the decode phase of the fetch-execute cycle
The instruction in the CIR is passed to the decode unit to be decoded by splitting it into the opcode and operand.
The decoded address is stored in the MAR.
It goes along the address bus to the address in the main memory. The data there is passed along the data bus and stored in the MDR and is then sent to the ALU where it is executed.
What is the accumulator used for?
Used to save the result of operations carried out in the ALU.
What is pipelining?
As the current instruction is being executed in the ALU, the next instruction is being fetched from memory.