Arithmetic & Logic Design

ALU Design simulator

Interactive Arithmetic Logic Unit with real-time visualization

Explore arithmetic operations, logical operations, and control signals

Arithmetic Logic Unit simulator

Input A
Value: 0
Input B
Value: 0
ALU
A + B
Result
0
Z
C
V
N

ALU operation Table

Control operation Function Example
000 ADD A + B 5 + 3 = 8
001 SUB A - B 5 - 3 = 2
010 AND A & B 5 & 3 = 1
011 OR A | B 5 | 3 = 7
100 XOR A ^ B 5 ^ 3 = 6
101 NOT ~A ~5 = 250
110 shl A << 1 5 << 1 = 10
111 SHR A >> 1 5 >> 1 = 2

Addition operation

The ALU performs binary addition of two input operands A and B, producing a result and setting appropriate flags.

Control Signals: 000 - Selects addition operation
Flags: Zero, Carry, Overflow, and Negative flags are updated based on the result

Interactive Controls

Example Operations

operation Statistics

0
Total Operations
0
Arithmetic ops
0
Logical ops
0
Shift ops