Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How to make this into a logic circuit?

Create a Logic Circuit that accepts input from four sources ABCD, and outputs 1 when exactly

two inputs are set to 1 and 0 for any other combination of input.

1 Answer

Relevance
  • 4 years ago

    Here's one way to do it using 4 2-input XOR gates, 2 2-input AND gates, and a 2-input OR gate. Of course, the AND-OR network can be replaced by 3 NAND gates.

    .. out = or(and(xor(A, B), xor(C, D)), and(xor(A, C), xor(B, D)))

    You can also do it as with 4 inverters, a 6-input OR gate, and 6 4-input AND gates.

    .. out = or(and(A, B, C', D'), and(A, B', C, D'), and(A, B', C', D), and(A', B, C, D'), and(A', B, C', D), and(A', B', C, D)) . . . . where A' = not(A), etc.

Still have questions? Get your answers by asking now.