In this blog post we will make logic gates from multiplexer. Since Mux is combinational logic it is possible to do so,
Consider MSB (here input A) is select line of MUX.here we will make AND Gate.
AND Gate using Mux
A B Out // Truth Table of AND Gate
0 0 0
0 1 0
1 0 0
1 1 1
here when A=0, Out remains 0 and when A=1, Out=B
Similarly we cam make latches using Mux also , in that case output of Mux is connected to its input.And when we connect output to input it becomes sequential circuit.