1
This section covers the CPU’s control unit and structure, microinstruction format, instruction formats and addressing modes, data transfer/manipulation, and the RISC vs CISC design philosophies including pipelining and parallel processing.
2
Control Unit & CPU Structure The Control Unit (CU) generates the sequence of control signals that coordinate the ALU, registers, memory, and I/O during instruction execution.
3
Hardwired control: control signals generated by fixed combinational logic — fast, but difficult to modify.
4
Microprogrammed control: control signals generated by reading microinstructions stored in a small, fast control memory — slower but flexible/easily redesigned; each machine instruction maps to a sequence of microinstructions.
5
CPU structure & function: the CPU integrates the ALU, control unit, and register set, connected internally by buses, to fetch, decode and execute instructions from memory.
6
Instruction Formats & Addressing Modes An instruction format typically consists of an opcode (specifies the operation) and one or more operand/address fields.
7
Addressing Mode Description Immediate The operand value itself is given directly in the instruction Direct The instruction gives the memory address of the operand Indirect The instruction gives the address of a memory location that itself holds the operand’s address Register The operand is held in a CPU register named by the instruction Indexed The effective address = a base address + the value in an index register Data Transfer & Manipulation Data transfer instructions move data between registers, memory, and I/O (e.g., MOV, LOAD, STORE) without altering its value.
8
Data manipulation instructions (arithmetic, logic, shift) transform data via the ALU.
9
RISC vs CISC, Pipelining & Parallel Processing Feature RISC CISC Instruction set Small, simple, uniform-length Large, complex, variable-length Execution Mostly single-cycle, register-based Multi-cycle, can operate directly on memory Design focus Optimized for pipelining/speed Optimized for code density/fewer instructions per program Examples ARM, MIPS, RISC-V x86 (Intel/AMD) Pipelining overlaps the stages (fetch, decode, execute, …) of successive instructions to increase instruction throughput.
10
Structural (resource conflict), Data (an instruction needs a result not yet produced by a prior instruction), Control (caused by branches disrupting the fetch sequence).
11
Parallel processing executes multiple instructions or tasks simultaneously (e.g., multiple execution units, multiple cores) to further increase throughput beyond what pipelining alone achieves.