Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
Hi!
I was wondering if there’s a systematic way to find out which operand of an XOR is true?
Not directly because the operation is symmetric: it provides the same result for 0^1 and 1^0 (where the caret is the xor operator).
However, you can construct a more complicated expression that does what (I think) you're looking for. Try A&(A^B), which will be one or zero according to whether A or B was the "winner" when A and B are different.
If they're not different there is no "winner" and this expression will evaluate to zero indicating that A didn't win; and likewise B&(A^B) will indicate that B didn't win either.
Science Advisor
Homework Helper
Gold Member
You could just look at the truth value of each bit directly? Why pass it through a symmetric logic gate and make things harder for yourself?
Science Advisor
Gold Member
2025 Award
ollieha said:
I was wondering if there’s a systematic way to find out which operand of an XOR is true?
## A \overline B ## is as good as you will get IMO.
You might also have to test for ## \overline A B ## to exclude the ## \overline {AB} ## and ## AB ## states. Which binary result do you want?
You might look up Karnaugh maps for this sort of question.
Last edited: Tuesday, 11:55 PM
Science Advisor
Homework Helper
Gold Member
ollieha said:
I was wondering if there’s a systematic way to find out which operand of an XOR is true?
You can find out if an operand is true by looking at it. If this does not answer your question you need to provide more context.
If A,B aren't accessible you can still know the Tac Tbc delays ( C = A XOR B )
In that case recording the transitions you can estimate which transition has caused C 0-> 1
This works only on real systems.
The system can be "observable" also if not "directly observable"
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Uncertain about part of the Order of Operations, from a formula | 0 | 8.26 | 09-08-2026 |
| 2 | Position vs momentum measurement | 0 | 10 | 13-08-2026 |
| 3 | 0 | 0 | 24-10-2018 | |
| 4 | 0 | 0 | 26-10-2018 | |
| 5 | 0 | 0 | 24-03-2026 | |
| 6 | 0 | 0 | 24-02-2026 | |
| 7 | Measurement and expectation value | 0 | 10 | 15-08-2026 |
| 8 | Photons vs Gravitons | 0 | 10 | 06-08-2026 |
| 9 | Port out port in | 0 | 5.63 | 10-08-2026 |
| 10 | Közlemény | 0 | 0 | 11-07-2026 |