0
\$\begingroup\$

This is what I've done so far and I really don't understand how to continue. The V variable is for verification

enter image description here

[EDIT]

it works for Y2 and Y0, but it doesn't work for Y1 enter image description here

asked Jan 4, 2019 at 17:38
\$\endgroup\$

2 Answers 2

2
\$\begingroup\$

I'm not sure how to give you a hint without giving you the complete answer.

But consider the difference between these two situations:

  • If any of the inputs to the upper encoder are asserted, then its outputs become the overall outputs, and Y2 needs to be asserted.
  • If none of the inputs to the upper encoder are asserted, then the outputs of the lower encoder become the overall outputs, and Y2 needs to be negated.
answered Jan 4, 2019 at 17:57
\$\endgroup\$
0
\$\begingroup\$

Connect Y0, Y1 to both 4:2 in parallel. Use Y0 as the 3rd "address" line and a NOT gate to enable one or the other.

answered Jan 4, 2019 at 17:43
\$\endgroup\$
4
  • \$\begingroup\$ Not sure where you're going with this. It's actually the V output of the upper encoder that becomes the third Y output. And you also need to mux the two V together to create the overall V output. \$\endgroup\$ Commented Jan 4, 2019 at 17:51
  • \$\begingroup\$ I see, so the desired result is turning say 1 only of I0 to I7 being High or Low into a 3-bit outcome? \$\endgroup\$ Commented Jan 4, 2019 at 18:04
  • \$\begingroup\$ No, it's a priority encoder. Any combination of inputs can be asserted, and it's the topmost asserted input that gets encoded. \$\endgroup\$ Commented Jan 4, 2019 at 18:53
  • \$\begingroup\$ Ok. Never had to design that functionality into any design I've done. \$\endgroup\$ Commented Jan 4, 2019 at 20:09

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.