General Register Organization

Interactive Learning Guide for CPU Architecture

🏗️ Major CPU Components

Control Unit

Manages instruction execution and data flow through control signals

Register Set

High-speed storage locations (R1-R7) for immediate data access

ALU

Performs arithmetic and logical operations on data

📊 Register Organization

General Purpose Registers

Register Organization

🎛️ Control Word Structure

Instruction Format
Field Size (Bits) Purpose Range
SELA 3 Selects first source operand (A input to ALU) 000-111
SELB 3 Selects second source operand (B input to ALU) 000-111
SELD 3 Selects destination register 000-111
OPR 5 Specifies ALU operation 00000-11111

⚡ Interactive Microoperation Builder

Build Your Own Microoperation

Select options above to build your microoperation
Control Word: ---

📝 Operation Examples

Subtraction Example

R1 ← R2 - R3

Subtract R3 from R2 and store result in R1

010 011 001 00101

Logical OR Example

R4 ← R4 ∨ R5

Perform logical OR between R4 and R5, store in R4

100 101 100 01010

Addition Example

R2 ← R2 + R1

Add R1 to R2 and store result in R2

010 001 010 00010

Transfer Example

R7 ← R6

Transfer contents of R6 to R7

110 000 111 00000