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:
Compare MSB (A3 vs B3): 0 vs 0 → equal so continue.Next bit (A2 vs B2): 1 vs 0 → A is greater here; decision made.Lower bits do not change the outcome once a higher bit decides the comparison.Therefore: A > B = 1, A < B = 0, A = B = 0.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