How do you plan to solve it?
module demux1to4 ( input d, input [1:0] s, output [3:0] y ); assign y = {4{d}} & (4'd0001 << s); endmodule