3) Design a circuit to take input signals P, Q, and R and output a 1 if, and only if, P
and Q have the same value and Q and R have opposite values. (20 Points)



Answer :

Answer:

  See attached

Step-by-step explanation:

You want a circuit that outputs 1 when P=Q and Q≠R.

Building blocks

The circuit diagram will depend on the building blocks available. In the attached, we have used the blocks ...

  • exclusive or (XOR)
  • exclusive nor (XNOR)
  • and (AND)

The XOR will give a true output when Q and R have opposite values.

The XNOR will give a true output when P and Q have the same value.

The AND will give a true output when both the XOR and XNOR outputs are true, that is, for Q and R opposite while P and Q are the same.

The attachment shows the circuit.

View image sqdancefan