Identify the MSI function — decoder vs comparator: A circuit that translates an n-bit binary code word into exactly one active output line (one-hot) corresponding to its numeric value is called a ________. The statement labels it a “comparator”; evaluate this claim and choose the correct classification.

Difficulty: Easy

Correct Answer: Incorrect (it is a decoder, not a comparator)

Explanation:


Introduction / Context:
MSI parts include decoders, encoders, multiplexers, demultiplexers, and comparators. Each serves a distinct role. The device described—one active output out of many corresponding to the numeric value of a binary input—is a decoder. This question ensures you can differentiate decoders from comparators, which instead judge the relationship between two values.


Given Data / Assumptions:

  • Input: an n-bit binary number.
  • Output: a single asserted line among 2^n possibilities (one-hot code).
  • No second value is provided for comparison.


Concept / Approach:
A binary-to-2^n decoder activates exactly one output line Yk when the input equals k. Examples include 74xx138 (3-to-8 decoder) and 74xx154 (4-to-16). In contrast, a comparator (e.g., 74xx85) accepts two binary inputs A and B and asserts relationship outputs such as A>B, A=B, A<B. Thus, calling the one-hot generator a “comparator” is misclassification.


Step-by-Step Solution:
Match behavior: one-of-many output → decoder.Check for comparison outputs; none are present.Conclude that “comparator” is incorrect; the accurate term is “decoder.”Therefore the original statement is false.


Verification / Alternative check:
Consult truth tables: a 3-to-8 decoder shows Y0..Y7 with single active output for each input code; a comparator shows three relationship outputs, not one-hot decoding lines.


Why Other Options Are Wrong:
“Correct” confuses functions. Priority encoders perform the inverse mapping (one-hot to binary) with priority, not what was described. “Magnitude comparator with enable” still compares two inputs, not decode one.


Common Pitfalls:
Mixing encoder/decoder directions; assuming any device producing a single output is a comparator—selection criteria differ.


Final Answer:
Incorrect (it is a decoder, not a comparator)

More Questions from MSI Logic Circuits

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion