Difficulty: Easy
Correct Answer: A < B is 1 A = B is 0 A > B is 0
Explanation:
Introduction / Context:Magnitude comparators output three mutually exclusive flags indicating less-than, equal, or greater-than relationships between binary words. Practicing with specific inputs develops fluency useful for timing and control logic.
Given Data / Assumptions:
Concept / Approach:Compare bit by bit from MSB to LSB. The first position where A and B differ determines the outcome. Alternatively convert to decimal and compare numerically.
Step-by-Step Solution:
A = 1001, B = 1010 → MSB bits are 1 for both; continue.Next bits: 0 (A) vs 0 (B) → equal; continue.Next: 0 (A) vs 1 (B) → A < B at this position; we can conclude A < B overall.Therefore outputs: AB = 0.Verification / Alternative check:Decimal comparison: 9 < 10, so A
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:A < B is 1, A = B is 0, A > B is 0.
Discussion & Comments