module decoder(input [2:0] switch, output [7:0] led); assign led = (switch == 0)? 8'b00000001: (switch == 1)? 8'b00000010: (switch == 2)? 8'b00000100: (switch == 3)? 8'b00001000: (switch == 4)? 8'b00010000: (switch == 5)? 8'b00100000: (switch == 6)? 8'b01000000: 8'b10000000; endmodule