Difficulty: Easy
Correct Answer: process
Explanation:
Introduction / Context:
A demultiplexer (DEMUX) routes a single input to one of several outputs based on select lines. In HDL, we need a construct that cleanly expresses conditional, signal-level behavior that can infer combinational logic during synthesis and is easy to simulate.
Given Data / Assumptions:
Concept / Approach:
In VHDL, a process containing a case or if-elsif chain on the select lines precisely captures DEMUX behavior and synthesizes to combinational logic when the sensitivity list is complete. While concurrent conditional signal assignments can also work, the process form most exactly mirrors the algorithmic description used in textbooks and makes mutual exclusivity explicit.
Step-by-Step Solution:
Verification / Alternative check:
Simulation waveforms from a process-based DEMUX match the expected truth table. Synthesis reports infer simple gates and do not add storage elements.
Why Other Options Are Wrong:
Common Pitfalls:
Leaving outputs unassigned in some branches (causes unintended latches); forgetting to include all signals in the sensitivity list for combinational behavior.
Final Answer:
process
Discussion & Comments