How do you plan to solve it?
/*Write your code here*/ module demux1to4( input d, input [1:0]s, output [3:0]y ); assign y = (s == 2'b00) ? {3'b000, d} : (s == 2'b01) ? {2'b00, d, 1'b0} : (s == 2'b10) ? {1'b0, d, 2'b00} : {d, 3'b000}; endmodule