Difficulty: Medium
Correct Answer: A = B = 0, A < B = 0, A > B = 1
Explanation:
Introduction / Context:
The 7485 is a 4-bit magnitude comparator providing three primary outputs: A > B, A = B, and A < B. It also includes cascade (expansion) inputs to chain devices for wider word lengths. Correctly interpreting bit significance and the expansion inputs is essential to determine the final comparison result.
Given Data / Assumptions:
Concept / Approach:
When the expansion input IA = B = 1, the present 4-bit section decides the result. Evaluate from MSB to LSB: the first bit position where A and B differ determines the outcome. If they are equal through all bits, output A = B = 1; otherwise assert A > B or A < B at the first differing position with A or B larger.
Step-by-Step Solution:
Verification / Alternative check:
Interpreting A and B as unsigned: A = 0b0110x (given lower bits) is larger than B since A2 = 1 and B2 = 0 at the first differing position. This aligns with the standard priority of higher-order bits in magnitude comparison.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
A = B = 0, A < B = 0, A > B = 1
Discussion & Comments