Hardware Flashcards
CPU
Central Processing Unit - Responsible for computer’s processing
ALU
Arithmetic Logic Unit - Carries out logical, shift, and arithmetic operations
CU
Control Unit - Coordinates CPU activities
General Purpose Register
Small amounts of memory in CPU that hold data
Accumulator
Temporarily stores results of arithmetic + logic operations
PC
Progam Counter - Stores address of next instruction to be executed
1) Incremented after instruction fetched
2) Points to next instruction to be executed
Von Neumann architecture
Storing program and data in the same memory
CIR
Current Instruction Register - Stores current instruction to be executed
Memory Registers
Memory Address Register (MAR) and Memory Data Register (MDR)
MAR
Memory Address Register - Stores the address of current instruction being executed
MDR
Memory Data Register - Holds the data found at the address held in the MAR
FDE cycle
Fetch, Decode, Execute
FETCH instruction from main memory
DECODE instruction
EXECUTE instruction
Purpose of buses
Allows components to transfer data between each other
Types of buses
-Address
-Data
-Control
Address bus
-Unidirectional
-Carries addresses from MAR to main memory
Data bus
-Bidirectional
-Carries data from MDR to main memory and vice versa
Control bus
-Bidirectional
-Carries commands from Control Unit to main memory and vice versa
Instruction sets
List of machine-specific instructions that can be recognised by CPU. It is machine code.
Embedded system
Single processor with RAM, ROM, and CPU
Cache
Small, expensive memory in CPU
Faster to access than main memory
3 Levels of cache
Level 1 - Small, close to processor
Level 2 - Medium, fairly close to processor, fairly fast
Level 3 - Relatively large, close to RAM