So I came across this problem, where the conditions of the output (P, Q, R) will be set to high (1) if the condition is true:
The conditions are:
- Output P : A > B
- Output Q : A = B
- Output R : A < B
The inputs A has two values in itself and B has two values in itself as well (i.e A will have the values 0 & 1/ B will have the values 0 & 1).
How do you design a logic gate circuit with this? How would I combine the two values within the input A or B and combine them later as well to get the final output?
One of the options I have tried is taking each value separately (that would make a total of 4 different inputs), then combining them to make A & B. But it made things more complicated because it's not clear which gate should be used, and there are several different gates.
It looks complicated, I tried my best but I really can't figure out a way.
Is there an easier way?
A
a single bit input which can either take1
or0
as the value (but not both at the same time) or isA
a two bit input which can take one of the values00
,01
,10
,11
(but not more than one of these at the same time)? \$\endgroup\$P
first, ignoringQ
andR
. \$\endgroup\$