1.1.1 Structure and function of the processor Flashcards
ALU and its purpose
Arithmetic logic unit
Carries out the calculations and logical decisions.
CU and its purpose
Control unit sends out signals to coordinate how the processor works.
- Controls the way data moves around the CPU
- controls and monitor the flow of data between the CPU and other components, such as memory, input devices.
- It executes the instructions provided by the program.
Instruction set
The collection of instructions CU can carry out.
It is hard-wired into the CPU when it was designed.
Registers
Tiny areas of extreme fast memory located in the CPU designed for specific purpose.
Needed during processing.
PC
Program counter
Holds the address of the next instruction to be executed.
ACC
Accumulator
1.Stores the calculation result from the ALU.
2. I/O in processor - used as a buffer.
MAR
Memory address register
Holds the address of the memory location are to be read from or written to.
MDR
Memory data register
Holds the data that are to be read from or written to memory.
CIR
Current instruction register
Holds the current instruction being fetched, divided up into operand and opcode.
Buses (def.)
A set of parallel wires which connect components to send signals and data.
3 types of buses and function
Data bus - carries data between the processor and memory
Address bus - carries the address of the memory location being read from or written to.
Control bus - sends control signals from the control unit.
Describe the FDE cycle
- The contents in PC are copied to MAR
- The read signal is sent across the control bus and the contents of the MAR are sent across the address bus
- The contents of the memory location stored in the MAR are then sent across data bus and stored in the MDR
- The contents of the MDR are then copied to the CIR
- PC increment by 1
- The contents of the CIR are sent to CU to be decoded
- Execution according to the instructions
How clock speed affects CPU performance
The FDE process follows the clock speed. Faster clock speed allows more instructions to be performed per second.
But it can be overclocked. And it is limited to smaller problems.
To increase computer power - use newer and faster CPU
How number of cores affects CPU performance
Multicore can handle different tasks simultaneously, improving performance for multi-threading applications.
- This can speed up smaller problems but not enough for larger problems.
- if one core is waiting for another core to finish processing, performance may not be improved.
- Parallel processing isn’t suited to all problems.
Modern CPU has multiple cores that can operate independently.
Cache
A type of high-speed RAM built into processor, used to temporarily hold data and instructions that are likely to be regularly accessed.