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