1-to-2 Demultiplexer
beginner · combinational · 40 XP
Sign in to write your solution, run it in the simulator and submit it for grading.
Sign in or create a free account →Problem
1-to-2 Demultiplexer
A DEMUX is the **inverse of a MUX**: it routes one input to one of several outputs. Unselected outputs are 0.
Input: 1-bit `in`, 1-bit select `s`. Outputs: `y0`, `y1`.
- `s=0`: `y0=in`, `y1=0`
- `s=1`: `y0=0`, `y1=in`
Implement with two `assign` statements using AND and NOT.
Constraints
- Two assign statements. Unselected output must be 0.
- No always block needed.
Examples
Input: in=1, s=0
Output: y0=1, y1=0
Input: in=1, s=1
Output: y0=0, y1=1
Input: in=0, s=0
Output: y0=0, y1=0
Common questions
- What does the 1-to-2 Demultiplexer problem ask you to build?
- 1-to-2 Demultiplexer A DEMUX is the **inverse of a MUX**: it routes one input to one of several outputs. Unselected outputs are 0. Input: 1-bit `in`, 1-bit select `s`. Outputs: `y0`, `y1`. - `s=0`: `y0=in`, `y1=0` - `s=1`: `y0=0`, `y1=in` Implement with two `assign` statements using AND and NOT.
- What constraints does 1-to-2 Demultiplexer have?
- Two assign statements. Unselected output must be 0.; No always block needed.
- What is an example input and output for 1-to-2 Demultiplexer?
- Input in=1, s=0 gives output y0=1, y1=0.
- Which Verilog concepts does 1-to-2 Demultiplexer practise?
- combinational, demux, assign.