Difficulty: Easy
Correct Answer: binary-to-hexadecimal
Explanation:
Introduction / Context:
Decoders translate binary codes into one-hot outputs. A classic example is using a 4-bit input to activate one of sixteen lines, a building block for address decoding and device selection in digital systems. This is often referred to as a 4-to-16 or binary-to-hexadecimal decoder because sixteen distinct outputs correspond to the sixteen hexadecimal symbols (0–F).
Given Data / Assumptions:
Concept / Approach:
A 4-to-16 decoder maps the 4-bit input to a one-hot 16-bit output. For input N (0..15), only YN is active. This functionality is commonly used for memory address line decoding, selecting registers, or enabling peripherals where only one device should respond to a given code.
Step-by-Step Solution:
Let input be A3..A0 and outputs Y0..Y15.For input 0101 (decimal 5), assert Y5; all others deasserted.Repeat for all 16 combinations to cover 0x0 through 0xF.Thus, a binary-to-hexadecimal (4-to-16) decoder is required.
Verification / Alternative check:
Commercial parts like the 74HC154 provide 4-to-16 decoding with active-low outputs and enable pins, matching the described behavior and confirming the mapping from 4-bit binary to sixteen one-hot outputs.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
binary-to-hexadecimal
Discussion & Comments