Section 1 - Components of a Computer Flashcards
CPU
What are the 3 parts of the CPU?
Control Unit
Arithmetic Logic Unit
Reigisters
CU, ALU, Registers
CPU
What does the Control Unit (CU) do?
Controls the activity of the CPU
CPU
What does the Arithmetic Logic Unit (ALU) do?
Performs arithmetic and logical operations on given data
CPU
What instructions does the Arithmetic Logic Unit (ALU) accept?
ADD,
SUBTRACT, MULTIPLY, DIVIDE, AND, OR, NOT, XOR
CPU
What is a register?
A small space of CPU memory
CPU
What are the 5 registers?
Program Counter
Memory Data Register
Memory Address/Buffer Register
Current Instruction Register
Accumulator
PC, MDR, MAR/MBR, CIR, ACC
Address and Buffer are interchangeable
CPU
What does the Program Counter (PC) do?
Increments/Updates with after each Fetch/Decode/Execute cycle and points to the next instruction
CPU
What does the Memory Data Register (MDR) do?
Where fetched data goes
CPU
What does the Memory Address/Buffer Register (MAR/MBR) do?
Points to next fetch address
CPU
What does the Current Instruction Register (CIR) do?
Holds the current instruction
CPU
What does the Accumulator (ACC) do?
Holds the result of calculations from the Arithmetic Logic Unit (ALU)
Busses
What are the 3 busses?
Data Bus
Address Bus
Control Bus
Busses
What does the Data Bus do?
Moves data between the CPU and RAM. Data can travel either in direction.
Busses
What does the Address Bus do?
Moves the address from the CPU to RAM. The address only travels one-way.
Busses
What does the Control Bus do?
Sends signals from the CPU to elsewhere in the computer.
Signals may incldue: Read/Write, Clock, Overflow, etc.
Fetch/Decode/Execute
What are the steps of the Fetch/Decode/Execute (FDE) cycle?
6 steps in total
- PC → MAR
- PC + 1
- Address Bus and Data Bus → MDR
- MDR → CIR
- Decode instruction into Opcode and Operand
- Execute
CPU Performance
What are the 3 things to consider when looking at CPU performance?
Cache Memory
Clock Speed
Number of Cores
CPU Performance
How does cache memory affect CPU performance?
Fastest memory that stores common instructions