Prev Problem
Next Problem

66. Demultiplexer

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

Code

/*Write your code here*/
module demux1to4(
    input wire d,
    input wire [1:0] s,
    output wire [3:0] y
);
    assign y = {4{d}} & (4'h1 << s);
endmodule

 

Was this helpful?
Upvote
Downvote