Intermediate Combinational Circuits 12 components
4-Bit Magnitude Comparator
Compares two 4-bit numbers A and B and asserts one of three outputs: A greater than B, A equals B, or A less than B.
What You'll Learn
- Read a magnitude comparison as three mutually-exclusive outputs
- Relate binary switch patterns to decimal values 0-15
- See how comparators drive decision logic
How It Works
Each bit of A and B is fed into a 4-bit comparator. Internally it compares the two unsigned values and drives exactly one of three outputs high: A>B, A=B, or A
Components Used
Real-World Applications
Sorting networks, thermostats and set-point controllers, priority arbitration, and the condition logic inside CPUs (branch-if-greater).