How do you plan to solve it?
/*Write your code here*/ module demux1to4( input d, input [1:0] s, output reg [3:0] y ); always @* begin y = 4'b0000; if (d == 1'b1) y[s] = d; end endmodule