Structure and Function of the Processor Flashcards
What is inside the CPU (Central Processing Unit )
- ALU (Arithmetic Logic Unit)
- Registers
- Control Unit
What does the Arithmetic Logic Unit (ALU) do
Completes all the arithmetical and logical operations
Name the different Control Units and their function
- PC (Program Counter) - holds the address of the next instruction to be executed by the processor
- ACC (Accumulator) - stores the results from calculations
- MAR (Memory Address Register) - temporarily holds the address of the memory location that the processor needs to access
- MDR (Memory Data Register) - temporarily holds the data that the processor needs to access
- CIR (Current Instruction Register) - holds the current instruction that the processor is executing divided into opcode and operand
What are the functions of the Control Unit
- Directing the operations inside of the CPU
- Decodes instructions
- Sends control signals to coordinate movement of data through the processor / execute instruction
- Controls buses
Describe two ways in which the accumulator is used
- Temporary storage during calculations.
- I/O in processor and is used as a buffer.
What are registers
Small memory cells inside of the CPU that operate at high speeds and temporarily store data
What is a bus
A set of parallel wires which connect two or more components inside the CPU
What is the width of a bus
The number of parallel wires it has, this is directly proportional to the number of bits that can be transferred simultaneously at any given time
What are the three buses inside the CPU
- Address Bus
- Data Bus
- Control Bus
Describe the function of the three buses
- Address Bus - transmits the memory addresses between components
- Data Bus - bi-directional bus that transmits data and instructions between components
- Control Bus - bi-directional bus that transmit control signals between components
What is the system bus
The collection of the data bus, address bus and control bus
What is the width of the address bus proportional to
The number of addressable memory locations
What does adding a wire to the address bus do to the number of addressable locations
It doubles the number of addressable locations
Describe the different control signals and their functions
- Bus request - shows that a device is requesting the use of the data bus
- Bus grant - shows that the CPU has granted access to the data bus
- Memory write - data is written into the addressed location using this bus
- Memory read - data is read from a specific location to be placed onto the data bus
- Interrupt request - shows that a device is requesting access to the CPU
- Clock - used to synchronise operations
What is Assembly Language
- A low level language that uses mneomincs to represent instructions
- The instruction is divided up into operand and opcode
What is Opcode
Specifies the instruction to be performed and the memory location
What is Operand
Holds a value related to the data on which the instruction is to be performed
What is the main function of a CPU
Fetch, Decode, Execute
Describe what happens during a Fetch
- Contents of PC are copied into MAR
- MAR is sent along the address bus to RAM
- The Control unit instructs a memory read operation to allow the contents of the memory location to be transferred
- The data now stored in RAM is placed and sent along the data bus
- The Data Bus loads the Instructions into MDR
- The contents of the MDR are copied into the CIR
- Finally, the control units increments the PC by 1
Describe what happens during a Decode
The contents of the CIR is split into operand and opcode
Describe what happens during a Execute
The opcode is executed on the data
What are the three factors that affect the performance of the CPU
- Clock Speed
- Number of Cores
- Size of Cache
How does the clock speed function
- Clock speed is determined by the system clock
- All processor activities begin on a clock pulse
- Each CPU operation starts as the clock changed from 0 to 1
What is a core within a computer
- A core is an independent processor that is able to execute its own fetch-execute cycle
- A computer with multiple cores can complete more than one fetch-execute cycle at any given time
- However, some programs aren’t optimised for the use of more than one core