Consider the following combinational function block involving four Boolean variables x, y, a, b where x, a, b are inputs and y is the output. Construct a combinational circuit for below program.
f(x, y, a, b)
{
if (x is 1) y=a; I
else y=b;