/*Write your code here*/
module decoder3to8( input [2:0]s , output reg [7:0]y);
always @(*) begin
case(s)
3'b000 : y = 8'd1;
3'b001 : y= 8'd2;
3'b010 : y = 8'd4;
3'b011 : y = 8'd8;
3'b100 : y = 8'd16;
3'b101 : y = 8'd32;
3'b110: y = 8'd64;
3'b111 : y = 8'd128;
default : y = 8'd0;
endcase
end
endmodule