MIPS ALUControl
It depends on both MIPS opcode and MIPS function code .
Approach
Naive
Brute force, use opcode + function code, deal with 12 input bits.
Pro
MIPS ALU Multilevel decoding .
Use some of the input to reduce cases, generate output.
Reduce size of the main controller + up the ease of design + circuit speedup.