Basic Structure of Computer - Quick Notes
1. Structure of Desktop Computers:
- Components: Input (keyboard, mouse), Output (monitor, printer), CPU, RAM, HDD/SSD, Motherboard, Ports,
Software.
2. CPU & General Register Organization:
- Registers: MAR, MDR, IR, PC, Accumulator, R1-Rn.
- Instruction Register: Holds current instruction.
- Control Word: Binary signals controlling operations.
- Stack: LIFO structure using PUSH & POP.
3. Instruction Format:
- Opcode + Operand(s) + Address.
- Example: ADD R1, R2.
4. ALU:
- Performs arithmetic (+,-,*,/) and logical (AND, OR, NOT) operations.
5. I/O System:
- Interfaces for device communication: ports, controllers, drivers.
6. Bus & Memory:
- Types: Data Bus, Address Bus, Control Bus.
- Program Counter: Points to next instruction.
- Bus transfers data; Memory transfers use MAR, MDR.
7. Register Transfer Language (RTL):
- Example: R1 <- R2 means move data from R2 to R1.
8. Addressing Modes:
- Immediate, Direct, Indirect, Register, Indexed.
9. Control Unit Organization:
- Instruction Types: Data Transfer, Arithmetic, Logical, Control.
- Microinstruction: Specifies control signals + next address.
10. Instruction Cycle:
- Fetch -> Decode -> Execute -> Store -> Update PC.
11. Control Units:
- Hardwired: Fixed circuits (fast but rigid).
- Microprogrammed: Uses microinstructions (flexible, slow).
12. Microprogram Sequencer:
- Controls microinstruction sequence.
- Control Memory stores microinstructions.