Author Topic: XNOR gates, from discrete elements  (Read 1601 times)

0 Members and 1 Guest are viewing this topic.

Offline InfravioletTopic starter

  • Super Contributor
  • ***
  • Posts: 1023
  • Country: gb
XNOR gates, from discrete elements
« on: January 14, 2023, 02:48:02 am »
I've noticed some designs for XNOR logic gates, I just wondered what sort of advantage either could have:


(left hand figure A) with diodes and a single transistor

vs


using 5 transistors

Is there any reason anyone would ever, in the absence of using a pre-built XNOR gate IC (far fewer options available than for other logic functions) choose the 5 transistor way?

Thanks

 
The following users thanked this post: SeanB

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12865
Re: XNOR gates, from discrete elements
« Reply #1 on: January 14, 2023, 02:54:09 am »
Consider the output logic levels, and also the input impedance.  What happens if you cascade three gates of the first type, or mix XORs and XNORs?
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2397
  • Country: gb
  • Recovering Electrical Engineer
Re: XNOR gates, from discrete elements
« Reply #2 on: January 14, 2023, 04:11:56 pm »
Interesting but probably a total waste of time, effort and money. EXNORs and level shifting, if needed will be less bother.
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14214
  • Country: de
Re: XNOR gates, from discrete elements
« Reply #3 on: January 14, 2023, 04:21:12 pm »
The ECL type XOR circuit is not that complicated either. With the differential inputs / outputs one can have inverters as needed, so also an XNOR from the same chip.

The shown circuit would be rather slow in most cases, as the normal small signal transistors are slow (e.g. 200 ns range) when driven into saturation.
 

Offline chilternview

  • Regular Contributor
  • *
  • Posts: 145
  • Country: gb
Re: XNOR gates, from discrete elements
« Reply #4 on: January 14, 2023, 04:22:59 pm »
You can make an xnor gate with 2 transistors and 3 resistors if driven from TTL levels. Simply cross couple Q1 B to Q2 E and vice versa with a pair of resistors. Then the third goes from the junction of the collectors to Vcc.

If both inputs are high, or both inputs are low, the output is high. If either input is low and the other high, one of the transistos conducts and the output is low.

The noise margins are not fantastic but it works and is simplcity itself.
 

Offline MrAl

  • Super Contributor
  • ***
  • Posts: 1444
Re: XNOR gates, from discrete elements
« Reply #5 on: January 14, 2023, 06:27:39 pm »
Isnt it funny that we call it an XNOR gate.

We first have AND and OR, and with inverted output we have NAND and NOR, which comes from N+AND and N+OR.
We then have XOR.  Why don't we then call it NXOR which would be N+XOR.  That would be XOR with inverted output.
Instead we call it XNOR which is X+NOR, which implies it is a NOR gate that is somehow modified.
So it is probably just a mnemonic convenience to call it XNOR.

You can create XNOR (or NXOR) from simpler gates just look at the expression for XOR:
C=AB'+BA'

which is XOR made from AND and OR and NOT gates.  Inverting we get:
C=(AB'+BA')'

or:
C=(A'+B)(B'+A)

which are both XNOR.

You can also start with:
C=(A+B)(AB)'

which is XOR made from OR, NAND, and AND which is:
C=OR(A,B) AND NAND(A,B)

and invert that to get XNOR.
« Last Edit: January 14, 2023, 06:59:17 pm by MrAl »
 

Offline InfravioletTopic starter

  • Super Contributor
  • ***
  • Posts: 1023
  • Country: gb
Re: XNOR gates, from discrete elements
« Reply #6 on: January 14, 2023, 07:23:57 pm »
Chilternview, can you link to a schematic of that? Thank you
 

Offline chilternview

  • Regular Contributor
  • *
  • Posts: 145
  • Country: gb
Re: XNOR gates, from discrete elements
« Reply #7 on: January 14, 2023, 09:53:34 pm »
Something like this - A and B are the two inputs, and Z is the output. This is effectively RTL, I've used it to make simple fast half/full adders many years ago. You really need schottky clamped transistors to avoid them saturating and can't cascade more than 2 without losing all noise margin or adding buffers.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14490
  • Country: fr
Re: XNOR gates, from discrete elements
« Reply #8 on: January 14, 2023, 10:36:51 pm »
You could at least use MOSFETs to make this a little faster while drawing less power.
But that's really if you have no other option available.

 

Offline chilternview

  • Regular Contributor
  • *
  • Posts: 145
  • Country: gb
Re: XNOR gates, from discrete elements
« Reply #9 on: January 15, 2023, 12:46:52 am »
You could, although the example I gave was in fact implemented design on a bipolar low power schottky IC process. No mosfets available!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf