*Notes to a video lecture on http://www.unizor.com*

__Logical XOR Implementation__

Let's analyze how diodes can be used to implement operation XOR (or addition by modulo 2) of mathematical (and computer) logic.

The standard is that TRUE or 1 is represented by some positive potential on a wire relative to the ground, while FALSE or 0 is represented by zero potential relative to the ground.

Exclusive OR (

*) operation is represented by a symbol of addition in a circle*

**XOR****⊕**.

The rules are:

**0 ⊕ 0 = 0**

0 ⊕ 1 = 1

1 ⊕ 0 = 1

1 ⊕ 1 = 00 ⊕ 1 = 1

1 ⊕ 0 = 1

1 ⊕ 1 = 0

Now let's design a schema that represents a logical operation

*XOR*of two logical values.

There are four variations of input values

*and*

**A***:*

**B**

**A=0, B=0**

**A=0, B=1**

**A=1, B=0**

**A=1, B=1**For each of these cases we will determine the output value at point

*.*

**C**1. If

*and*

**A=0***, that is the potential is zero at both points relative to the ground and points*

**B=0***and*

**D***are at zero potential as well. In theory, electrons from hot cathodes in diodes at segments*

**F***and*

**ED***can move to corresponding anodes only if these anodes are positively charged. But this is not the case since the potentials at points*

**EF***and*

**D***are zero. Therefore, no electrons escape point*

**F***. Point*

**E***is connected only to anodes and, therefore, no electrons escape this point either. So, at point*

**G***the potential is zero, that is*

**C**

**C=0**2. Consider a case of

*and*

**A=0***, that is the potential is zero at points*

**B=1***and*

**A***, but is positive (deficiency of electrons) at points*

**D***and*

**B***relative to the ground.*

**F**A diode on a segment

*has its anode positively charged from point*

**EF***. Therefore, electrons in the cloud produced by thermionic emission on its cathode will be attracted to positively charged anode,*

**F**__thus creating a deficiency of electrons (positive potential) on this cathode__and at points

*and*

**E***. Point*

**C***becomes positively charged, that is*

**C***.*

**C=1**Deficiency of electrons at point

*cannot be compensated through a segment*

**E***because a diode on this segment is working in an opposite direction. So, deficiency of electrons will be compensated from point*

**DE***from point*

**G***, which becomes positively charged and attracts electrons from point*

**G***through a diode at segment*

**D***. These new electrons, coming from point*

**DG***to point*

**A***, through thermionic emission to point*

**D***and to point*

**G***, will be immediately dispatched to a thermionic emission cloud and attracted by positively charged anode of a diode on*

**E***segment, thus maintaining a constant flow of electrons from point*

**EF***(neutral) to point*

**G***(positive).*

**E**This process of electrons moving from zero potential at point

*to point*

**A***, to thermionic emission cloud on a cathode of*

**D***segment, to point*

**DG***, to point*

**G***will continue as long as point*

**E***has positive potential.*

**B**Therefore, the cathode of a diode on a segment

*will always be positively charged, and so is a wire at points*

**EF***and*

**E***connected to it. That means that*

**C***.*

**C=1**3. If

*(positively charged, that is deficiency of electrons) and*

**A=1***(neutral), situation is analogous to a previous one, except all the electrons will flow from point*

**B=0***to point*

**B***, to cathode of a diode on a segment*

**F***to point*

**FG***, to point*

**G***, to thermionic cloud of a cathode on segment*

**E***to positively charged points*

**ED***and*

**D***. Since there is a deficiency of electrons at point*

**A***, the potential at point*

**E***will be positive, that is*

**C***.*

**C=1**4. Case

*and*

**A=1***(both deficient of electrons). There is no source of electrons to compensate this deficiency. If point*

**B=1***was connected to such a source, there would be a flow of electrons from it through segments*

**E***and*

**ED***, but this is not the case. No electrons are moving through point*

**EF***either. Therefore, potential at points*

**G***,*

**E***and*

**G***is zero, that is*

**C**

**C=0**As we see, if any one input potentials at points

*and*

**A***equal to 1, the output*

**B***as well. If both*

**C=1***and*

**A=0***, the potential at*

**B=0***is zero, that is*

**C***. If both*

**C=0***and*

**A=1***, the potential at*

**B=1***is also zero, that is*

**C***.*

**C=0**That fully corresponds to the rules of logical XOR operation.

Therefore, the circuit above is a proper electronic implementation of logical operation of

*exclusive OR*(or addition by modulo 2).

Obviously, the real implementation requires some concrete values for voltage, resistance, characteristics of diodes etc. that we will not address here, as our purpose is to introduce only the principle behind this implementation.

## No comments:

Post a Comment