176 views
2 2 votes

A $4:2$ priority encoder has active-high inputs $\mathrm{D}_0,\mathrm{D}_1,\mathrm{D}_2,\mathrm{D}_3$, where $\mathrm{D}_3$ has the highest priority and $\mathrm{D}_0$ has the lowest priority. Outputs are $\mathrm{Y}_1,\mathrm{Y}_0$ and valid output $\mathrm{V}$. Which set of equations is correct?

  1. $\mathrm{Y}_1=\mathrm{D}_1+\mathrm{D}_3,\ \mathrm{Y}_0=\mathrm{D}_2+\mathrm{D}_3,\ \mathrm{V}=\mathrm{D}_0+\mathrm{D}_1+\mathrm{D}_2+\mathrm{D}_3$
     
  2. $\mathrm{Y}_1=\mathrm{D}_2+\mathrm{D}_3,\ \mathrm{Y}_0=\mathrm{D}_1+\mathrm{D}_3,\ \mathrm{V}=\mathrm{D}_3$
     
  3. $\mathrm{Y}_1=\mathrm{D}_2+\mathrm{D}_3,\ \mathrm{Y}_0=\mathrm{D}_3+\mathrm{D}_2'\mathrm{D}_1,\ \mathrm{V}=\mathrm{D}_0+\mathrm{D}_1+\mathrm{D}_2+\mathrm{D}_3$
     
  4. $\mathrm{Y}_1=\mathrm{D}_0+\mathrm{D}_1,\ \mathrm{Y}_0=\mathrm{D}_2+\mathrm{D}_3,\ \mathrm{V}=\mathrm{D}_0\mathrm{D}_1\mathrm{D}_2\mathrm{D}_3$

1 Answer

1 1 vote

In a priority encoder, if more than one input is $1$, the highest priority input is encoded.

Priority order is:

$\mathrm{D}_3>\mathrm{D}_2>\mathrm{D}_1>\mathrm{D}_0$.

Now check $\mathrm{Y}_1$.

The output code is $10$ when $\mathrm{D}_2$ is the highest active input.

The output code is $11$ when $\mathrm{D}_3$ is active.

So, $\mathrm{Y}_1=1$ whenever $\mathrm{D}_2=1$ or $\mathrm{D}_3=1$.

$\boxed{\therefore \mathrm{Y}_1=\mathrm{D}_2+\mathrm{D}_3}$

Now check $\mathrm{Y}_0$.

$\mathrm{Y}_0=1$ when $\mathrm{D}_3=1$.

Also, $\mathrm{Y}_0=1$ when $\mathrm{D}_1=1$ and no higher input $\mathrm{D}_2$ is active.

$\boxed{\therefore \mathrm{Y}_0=\mathrm{D}_3+\mathrm{D}_2'\mathrm{D}_1}$

Valid output $\mathrm{V}$ is $1$ if at least one input is active.

$\boxed{\therefore \mathrm{V}=\mathrm{D}_0+\mathrm{D}_1+\mathrm{D}_2+\mathrm{D}_3}$
 

Answer: C

edited by
Answer:
Position:
Show:

Related questions

6 6 votes
2 2 answers
194
194 views
GO Classes asked Jun 17
194 views
For a $4:2$ binary encoder with active-high inputs $\mathrm{I}_0,\mathrm{I}_1,\mathrm{I}_2,\mathrm{I}_3$ and outputs $\mathrm{Y}_1,\mathrm{Y}_0$, assume exactly one input...
4 4 votes
2 2 answers
157
157 views
GO Classes asked Jun 17
157 views
A $1:4$ DEMUX has data input $\mathrm{D}$ and select lines $\mathrm{S}_1,\mathrm{S}_0$. Which of the following output equations is correct?$\mathrm{Y}_0=\mathrm{S}_1\math...
6 6 votes
2 2 answers
221
221 views
GO Classes asked Jun 17
221 views
A $2:1$ MUX has inputs $\mathrm{I}_0,\mathrm{I}_1$, select line $\mathrm{S}$, and active-low enable input $\mathrm{E}$. When $\mathrm{E}=1$, the output is $0$. When $\mat...
3 3 votes
2 2 answers
181
181 views