XAND Gate: Is it Real or Just a Rumor?

Click For Summary

Discussion Overview

The discussion revolves around the concept of a hypothetical logic gate referred to as the "XAND" gate, which is proposed as a gate that relays when it receives either two 0s or two 1s. Participants explore the naming conventions of logic gates, particularly in relation to existing gates like XOR and AND, and discuss the implications of defining such a gate.

Discussion Character

  • Conceptual clarification
  • Debate/contested
  • Technical explanation

Main Points Raised

  • One participant suggests that the "XAND" gate, which relays for 0 AND 0 or 1 AND 1, makes sense as a logical extension of existing gates.
  • Another participant proposes that instead of creating a new gate, one could use an XOR gate and invert the result to achieve the desired functionality.
  • It is mentioned that inverting one of the inputs of an XOR could also yield the same result.
  • Discussion includes the idea that the name of the function relates to the state of the input bits, with some arguing that "exclusively" does not apply to AND gates.
  • Participants note that while AND and OR gates can have multiple inputs, XOR gates become less clearly defined with more than two inputs, leading to terms like "only one" or "majority" gates.
  • The term "parity gate" is introduced, with a participant explaining its relation to generating an odd/even count of set bits using XOR gates.
  • Some participants mention that the XNOR gate is a related concept, although it is not directly linked to the idea of an XAND gate.

Areas of Agreement / Disagreement

Participants express differing views on the necessity and naming of the "XAND" gate, with some supporting the idea and others suggesting alternative approaches using existing gates. The discussion remains unresolved regarding the formal recognition of the XAND gate.

Contextual Notes

There are limitations in the definitions and applications of gates discussed, particularly regarding the clarity of terms like "exclusively" in relation to AND gates and the implications of multiple inputs for XOR gates.

yurtpoh
Messages
3
Reaction score
0
I've been reading Code: The Hidden language of Computer Hardware and Software by Charles Petzold, and he described the 5 basic gates (AND, OR, NAND, NOR, & XOR) with extreme clarity. In the chapter about adding machines, he described that we needed a gate that relays only when it receives a 0 and 0, or a 1 and 1 ("coincidence gate"). This is the exact opposite of an XOR gate, which relays only when it receives a 1 and 0, or a 0 and 1. I was wondering why we don't call the former gate a XAND ("exclusive and") gate? It makes perfect sense to me. It will only relay when it receives a 0 AND 0, or a 1 AND 1. It's just an AND gate that also relays with two 0s, but whenever I google "XAND" people say that it's not the correct term. Why not?

and I'm sorry if this isn't in the right sub-forum, but I searched the forum for other logic gate threads and they all seemed to be located here.
 
Last edited:
Engineering news on Phys.org
Because it is exactly the opposite of an XOR gate, all you need to do is use an XOR gate, then flip the result so that 0 becomes 1 and 1 becomes 0.
That can be implemented as a single switching transistor.
 
  • Like
Likes   Reactions: yurtpoh and berkeman
Or you can invert one of the inputs of an XOR.
 
  • Like
Likes   Reactions: yurtpoh
wow, now it seems obvious lol. that makes sense. idk why i couldn't think of that. thanks!
 
yurtpoh said:
I was wondering why we don't call the former gate a XAND ("exclusive and") gate? It makes perfect sense to me. It will only relay when it receives a 0 AND 0, or a 1 AND 1. It's just an AND gate that also relays with two 0s, but whenever I google "XAND" people say that it's not the correct term. Why not?
The name of the function is related to the state of the two input bits. “Exclusively bit A, OR exclusively bit B" makes sense.

An AND gate requires both inputs be high, there is no bit exclusivity about it.
An inverted EXOR gate can be called a coincidence gate, an equality gate or a comparator.

Notice that AND and OR gates can have multiple inputs. EXOR gates become poorly defined for more than one input. They become “only one” gates or “majority” gates.
 
  • Like
Likes   Reactions: yurtpoh
Baluncore said:
Notice that AND and OR gates can have multiple inputs. EXOR gates become poorly defined for more than one input. They become “only one” gates or “majority” gates.
Or parity gates, which is the most natural extension I think. A XOR B XOR C XOR D XOR ... where the order of operation does not matter so I didn't add brackets. It is 1 if and only if an odd number of inputs is 1.
 
It is called an XNOR
 
  • Like
Likes   Reactions: yurtpoh
mfb said:
Or parity gates, which is the most natural extension I think.
The term "parity generator" refers to the situation where the odd/even count of set bits is generated using a chain or tree of XOR gates. The term “parity gate” is rare except in the discussion of parity generator construction. Although the term parity gate makes sense, it only makes sense to those who first understand parity generation.
 
meBigGuy said:
It is called an XNOR

Awesome, thanks. This definitely helps.

Some of the other posts kind of go over my head at the moment since I'm new to this stuff, but it's definitely interesting to read about.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
14
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K
Replies
2
Views
2K
  • · Replies 25 ·
Replies
25
Views
11K
  • · Replies 3 ·
Replies
3
Views
28K
  • · Replies 25 ·
Replies
25
Views
5K
  • · Replies 7 ·
Replies
7
Views
8K
Replies
9
Views
3K
Replies
2
Views
2K