1.6k views

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.

f(x, a, b, y)
{
if(x is 1) y = a;
else y = b;
}

Which one of the following digital logic blocks is the most suitable for implementing this function?

2. Priority encoder
3. Multiplexor
4. Flip-flop
retagged | 1.6k views

$\text{If} \qquad X=1 \qquad Y=a;$
$\text{else}\quad (X=0)\qquad Y = b;$

$\text{Input}: (a,b,X)\qquad\qquad \text{Output}: Y$

$Y = \bar X b + Xa.$

Correct Answer: $C$

edited
0
Why can't it be flip flop? Please explain
0
Flip is one bit storage device. It will store one bit.We dont have any selection logic in flip flop as in MUX
0

Can we implement it using priority encoder ???

2 X 1 Priority encoder

 Input (No use) X Output (Y) $\phi$ 1 a $\phi$ 0 b

0
Same doubt.
0

@jatin khachane 1

1. x,a,b are the inputs.

2. y is output.

a,b will be given to Encoder but how will you check if condition?

2X1 multiplexer
lovely question x1=a x0=b MULTIPLEXER

1
2