Intermediate Combinational Circuits 12 コンポーネント
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.
学べること
- Read a magnitude comparison as three mutually-exclusive outputs
- Relate binary switch patterns to decimal values 0-15
- See how comparators drive decision logic
仕組み
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
使用コンポーネント
実世界での応用
Sorting networks, thermostats and set-point controllers, priority arbitration, and the condition logic inside CPUs (branch-if-greater).