So I am making an ALU that has an 8to1 mux that selects between different operations. However only 6 operations are required, so the other two inputs of the mux don't even need to be used. So is there a way to essentially connect them to gnd? Basically to make nothing being outputted for those cases?
Here is the general design schematic for reference / to visualize. https://i.gyazo.com/854f8acd904f9e7db2f950c3b4eab27d.png
Here is my code for the 8to1 Mux. (Don't think I need to show this, but it might be helpful.)
module eight_one_mux(D, S, out);
input [7:0] D;
input [2:0] S;
output reg [63:0] out;
always @(D or S)
begin
case(S)
0 : out = D[0]; //And
1 : out = D[1]; //Or
2 : out = D[2]; //Adder
3 : out = D[3]; //xor
4 : out = D[4]; //lefter
5 : out = D[5]; //righter
6 : out = D[6]; //GND
7 : out = D[7]; //GND
default : out = 1'bx;
endcase
end
endmodule