How do you plan to solve it?
module decoder3to8( input [2:0] s, output reg [7:0] y ); integer i; always @(*)begin for (i = 0; i<8; i= i+1) begin y[i] = (i == s) ? 1'b1:1'b0; end end endmodule