# Implement a Function using 3x8 decoder (74LS138)

I need to implement the function below using 3x8 decoder (74LS138) and a minimum number of gates but I did not see 74LS138 before.

F = (A.B)'

I implement the function using a normal 3x8 decoder but I think it is not the best way to do that and I also need to use 74LS138.

My Solution:

Do you have any idea about the solution?

Y[7:0] = (!G1 || G2A || G2B) ? 8'hFF : ~(1'b1 << {C,B,A})