I'm learning about computer architecture and I was reading about encoders and decoders. In a MIPS processor, the opcode has 6 bits. I was wondering how many input bits are needed to build a decoder to decode opcodes? I know that a decoder is a combinational circuit that converts binary information from n input lines to a maximum of 2^n unique output lines. Knowing that the opcode is 6 bits, does that mean I need only 3 bits because 2^3 is 8 and the theoretical maximum number of outputs will be 8?