
Diode logic (or diode-resistor logic) constructs
AND and
OR logic gates
A logic gate is a device that performs a Boolean function, a logical operation performed on one or more Binary number, binary inputs that produces a single binary output. Depending on the context, the term may refer to an ideal logic gate, one ...
with
diode
A diode is a two-Terminal (electronics), terminal electronic component that conducts electric current primarily in One-way traffic, one direction (asymmetric electrical conductance, conductance). It has low (ideally zero) Electrical resistance ...
s and
resistors
A resistor is a passive two-terminal electronic component that implements electrical resistance as a circuit element. In electronic circuits, resistors are used to reduce current flow, adjust signal levels, to divide voltages, bias active e ...
.
An
active device
An electronic component is any basic discrete electronic device or physical entity part of an electronic system used to affect electrons or their associated fields. Electronic components are mostly industrial products, available in a singul ...
(
vacuum tubes
A vacuum tube, electron tube, thermionic valve (British usage), or tube (North America) is a device that controls electric current flow in a high vacuum between electrodes to which an electric voltage, potential difference has been applied. It ...
with
control grid
The control grid is an electrode used in amplifying thermionic valves (vacuum tubes) such as the triode, tetrode and pentode, used to control the flow of electrons from the cathode to the anode (plate) electrode. The control grid usually consi ...
s in
early electronic computers, then
transistors
A transistor is a semiconductor device used to Electronic amplifier, amplify or electronic switch, switch electrical signals and electric power, power. It is one of the basic building blocks of modern electronics. It is composed of semicondu ...
in
diode–transistor logic
Diode–transistor logic (DTL) is a class of digital circuits that is the direct ancestor of transistor–transistor logic. It is called so because the logic gating functions AND and OR are performed by diode logic, while logical inversi ...
) is additionally required to provide
logical inversion (NOT) for
functional completeness
In Mathematical logic, logic, a functionally complete set of logical connectives or Boolean function, Boolean operators is one that can be used to express all possible truth tables by combining members of the Set (mathematics), set into a Boolean ...
and
amplification for
voltage
Voltage, also known as (electrical) potential difference, electric pressure, or electric tension, is the difference in electric potential between two points. In a Electrostatics, static electric field, it corresponds to the Work (electrical), ...
''level restoration'', which diode logic alone can't provide.
Since voltage levels weaken with each diode logic stage, multiple stages can't easily be cascaded, limiting diode logic's usefulness. However, diode logic has the advantage of utilizing only cheap
passive components.
Background
Logic gates
Logic gates evaluate
Boolean algebra
In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
, typically using
electronic switches controlled by logical inputs connected in
parallel or series. Diode logic can ''only'' implement OR and AND, because
inverters (NOT gates) require an active device.
Logic voltage levels
Main article:
Binary logic uses
two distinct logic levels of voltage
signals
A signal is both the process and the result of Signal transmission, transmission of data over some transmission media, media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processin ...
that may be labeled ''high'' and ''low''. In this discussion, voltages close to +5 volts are high, and voltages close to 0 volts (
ground) are low. The exact magnitude of the voltage is not critical, provided that inputs are driven by strong enough sources so that output voltages lie within
detectably different ranges.
For
active-high
In digital circuits, a logic level is one of a finite number of states that a digital signal can inhabit. Logic levels are usually represented by the voltage difference between the signal and ground, although other standards exist. The range of ...
or ''positive logic'', high represents logic 1 (''true'') and low represents logic 0 (''false''). However, the assignment of logical 1 and logical 0 to high or low is arbitrary and is reversed in ''active-low'' or ''negative logic,'' where low is logical 1 while high is logical 0. The following diode logic gates work in both ''active-high'' or ''active-low'' logic, however the logical function they implement is different depending on what voltage level is considered ''active''. Switching between active-high and active-low is commonly used to achieve a more efficient logic design.
Diode biasing
Forward-biased diodes have low impedance approximating a
short circuit
A short circuit (sometimes abbreviated to short or s/c) is an electrical circuit that allows a current to travel along an unintended path with no or very low electrical impedance. This results in an excessive current flowing through the circuit ...
with a
small voltage drop, while
reverse-biased diodes have a very
high impedance
In electronics, high impedance means that a point in a circuit (a node) allows a relatively small amount of current through, per unit of applied voltage at that point. High impedance circuits are low current and potentially high voltage, whereas ...
approximating an open circuit. The diode
symbol
A symbol is a mark, Sign (semiotics), sign, or word that indicates, signifies, or is understood as representing an idea, physical object, object, or wikt:relationship, relationship. Symbols allow people to go beyond what is known or seen by cr ...
's arrow shows the forward-biased direction of
conventional current flow.
Diode AND and OR logic gates
Each input of a diode logic gate connects through a diode connected to a shared
wired logic output. Depending on the voltage level of each input and direction of the diode, each diode may or may not be forward-biased. If any are forward-biased, the shared output wire will be one small forward voltage drop within the forward-biased diode's input.
If no diode is forward-biased then no diode will provide drive current for the output's
load (such as a subsequent logic stage). So the output additionally requires a
pull-up or pull-down resistor connected to a voltage source, so that the output can transition quickly and provide a strong driving current when no diodes are forward-biased.
Note: the following circuits have two inputs for each gate and thus use two diodes, but can be extended with more diodes to allow for more inputs. At least one input of every gate must be connected to a strong-enough high or low voltage source. If all inputs are disconnected from a strong source, the output may not fall within a valid voltage range.
Active-high OR logic gate
Each input connects to the
anode
An anode usually is an electrode of a polarized electrical device through which conventional current enters the device. This contrasts with a cathode, which is usually an electrode of the device through which conventional current leaves the devic ...
of a diode. All
cathode
A cathode is the electrode from which a conventional current leaves a polarized electrical device such as a lead-acid battery. This definition can be recalled by using the mnemonic ''CCD'' for ''Cathode Current Departs''. Conventional curren ...
s are connected to the output, which has a pull-down resistor.
If any input is high, its diode will be forward-biased and conduct current, and thus pull the output voltage high.
If all inputs are low, all diodes will be reverse-biased and so none will conduct current. The pull-down resistor will quickly pull the output voltage low.
In summary, if ''any'' input is high the output will be high, but only if all inputs are low will the output be low:
This corresponds to logical OR in active-high logic, as well as simultaneously to logical AND in active-low logic.
Active-high AND logic gate
This circuit mirrors the previous gate: the diodes are reversed so that each input connects to the cathode of a diode and all anodes are connected together to the output, which has a pull-up resistor.
If any input is low, its diode will be forward-biased and will conduct current, and thus pull the output voltage low.
If all inputs are high, all diodes will be reverse-biased and so none will conduct current. The pull-up resistor will quickly pull the output voltage high.
In summary, if ''any'' input is low, the output will be low, but only if all inputs are high will the output be high:
This corresponds to logical AND in active-high logic, as well as simultaneously to logical OR in active-low logic.
Real diode considerations

For simplicity, diodes may sometimes be assumed to have no
voltage drop
In electronics, voltage drop is the decrease of electric potential along the path of a current flowing in a circuit. Voltage drops in the internal resistance of the source, across conductors, across contacts, and across connectors are unde ...
or resistance when forward-biased and infinite resistance when reverse-biased. But real diodes are better approximated by the
Shockley diode equation
The Shockley diode equation, or the diode law, named after transistor co-inventor William Shockley of Bell Labs, models the exponential current–voltage (I–V) relationship of semiconductor diodes in moderate constant current forward bias or ...
, which has an more complicated
exponential
Exponential may refer to any of several mathematical topics related to exponentiation, including:
* Exponential function, also:
**Matrix exponential, the matrix analogue to the above
*Exponential decay, decrease at a rate proportional to value
* Ex ...
current–voltage relationship called the
diode law.
Designers must rely on a diode's
specification
A specification often refers to a set of documented requirements to be satisfied by a material, design, product, or service. A specification is often a type of technical standard.
There are different types of technical or engineering specificati ...
sheet, which primarily provides a maximum forward voltage drop at one or more forward currents, a
reverse leakage current Reverse leakage current in a semiconductor device is the current when the device is reverse biased.
Under reverse bias, an ideal semiconductor device should not conduct any current, however, due to attraction of dissimilar charges, the positive si ...
(or
saturation current
The saturation current (or scale current), more accurately the reverse saturation current, is the part of the reverse current in a semiconductor diode caused by diffusion of minority carriers from the neutral regions to the depletion region. This ...
), and a maximum
reverse voltage limited by
Zener or
avalanche breakdown
Avalanche breakdown (or the avalanche effect) is a phenomenon that can occur in both insulating and semiconducting materials. It is a form of electric current multiplication that can allow very large currents within materials which are otherwis ...
. Effects of
temperature
Temperature is a physical quantity that quantitatively expresses the attribute of hotness or coldness. Temperature is measurement, measured with a thermometer. It reflects the average kinetic energy of the vibrating and colliding atoms making ...
and
process variation are usually included. Typical examples:
*
Germanium
Germanium is a chemical element; it has Symbol (chemistry), symbol Ge and atomic number 32. It is lustrous, hard-brittle, grayish-white and similar in appearance to silicon. It is a metalloid or a nonmetal in the carbon group that is chemically ...
diode:
** Max forward voltage at 10 mA = 1 volt @ 0 to 85 °C
** Max reverse leakage current at 15 volts = 100 microamps @ 85 °C
*
Silicon
Silicon is a chemical element; it has symbol Si and atomic number 14. It is a hard, brittle crystalline solid with a blue-grey metallic lustre, and is a tetravalent metalloid (sometimes considered a non-metal) and semiconductor. It is a membe ...
diode:
** Max forward voltage at 10 mA = 1 volt @ 0 to 125 °C
** Max reverse leakage current at 15 volts = 1 microamp @ 85 °C
Transient response
Diodes also have a
transient response
In electrical engineering and mechanical engineering, a transient response is the response of a system to a change from an equilibrium or a steady state. The transient response is not necessarily tied to abrupt events but to any event that affe ...
that might be of concern. The
capacitance
Capacitance is the ability of an object to store electric charge. It is measured by the change in charge in response to a difference in electric potential, expressed as the ratio of those quantities. Commonly recognized are two closely related ...
between anode and cathode is inversely proportional to the reverse voltage, growing as it approaches 0 volts and into forward bias.
There is also a
recovery concern: a diode's current will not decrease immediately when switching from forward-biased to reverse-biased, because discharging its stored charge takes a finite amount of time (t
rr or ''reverse recovery time''). In a diode OR gate, if two or more of the inputs are high and one switches to low, recovery issues will cause a short-term dip in the output voltage or increase current in the diodes that remain high. If a
diode–transistor logic
Diode–transistor logic (DTL) is a class of digital circuits that is the direct ancestor of transistor–transistor logic. It is called so because the logic gating functions AND and OR are performed by diode logic, while logical inversi ...
gate drives a transistor inverter of similar construction, the transistor will have a similar base-collector capacitance that is amplified by the transistor gain, so that it will be too slow to pass the glitch. But when the diode is much slower, recovery will become a concern:
In one unusual design, small selenium
Selenium is a chemical element; it has symbol (chemistry), symbol Se and atomic number 34. It has various physical appearances, including a brick-red powder, a vitreous black solid, and a grey metallic-looking form. It seldom occurs in this elem ...
diode discs were used with germanium transistors. The recovery time of the very slow selenium diodes caused a glitch on the inverter output. It was fixed by placing a selenium diode across the base-emitter junction of the transistor making it ''think'' it was a selenium transistor (if there could ever be one).
Voltage losses
250px, Cascaded AND-OR gate. High 5V level is reduced twice. The OR diode's VF drops ~0.6 V and the AND's pull-up forms a voltage divider with the OR's pull-down.
Active logic gates output voltages within a precise voltage range, provided that their input voltages were within a somewhat wider
valid input voltage range. This ''level restoration'' allows more cascaded logic stages and removes noise, facilitating
very large scale integration
Very may refer to:
* English's prevailing intensifier
Businesses
* The Very Group
The Very Group Limited is a multi-brand online retailer and financial services provider in the United Kingdom and Ireland. Its head offices are based in the ...
.
However, passive diode logic gates accumulate the following voltage losses when gates are cascaded:
:; Forward voltage V
F drop
:: High voltages inputted to every OR gate are reduced by V
F (
~0.6 V in silicon, ~0.3 V in germanium), while low voltages inputted to every AND gate are raised by V
F.
:; Source resistance
:: A voltage source's
output resistance and the subsequent gate's pull-up/down resistor form a
voltage divider
In electronics, a voltage divider (also known as a potential divider) is a passive linear circuit that produces an output voltage (''V''out) that is a fraction of its input voltage (''V''in). Voltage division is the result of distributing the i ...
that weakens voltage levels. This decreases high voltages in OR gates and increases low voltages in AND gates.
Thus the feasible amount of cascading is limited by the value of V
F and the high-low voltage difference. With special designs, two-stage systems are sometimes achieved.
In order to compensate for the voltage drop and provide sufficient current to drive the next circuit(s) load, the pull-up resistors may be connected to a supply higher than the nominal high voltage level and similarly the pull-down resistors may be connected to a supply lower than the nominal low voltage.
Applications

Historically, diode logic was used extensively in the construction of
early computers
Early may refer to:
Places in the United States
* Early, Iowa, a city
* Early, Texas, a city
* Early Branch, a stream in Missouri
* Early County, Georgia
* Fort Early, Georgia, an early 19th century fort
Music
* Early B, stage name of Jamaican d ...
, since semiconductor diodes could replace bulky and costly active
vacuum tubes
A vacuum tube, electron tube, thermionic valve (British usage), or tube (North America) is a device that controls electric current flow in a high vacuum between electrodes to which an electric voltage, potential difference has been applied. It ...
. The
invention of the transistor allowed transistors to replace tubes as the active element in
diode–transistor logic
Diode–transistor logic (DTL) is a class of digital circuits that is the direct ancestor of transistor–transistor logic. It is called so because the logic gating functions AND and OR are performed by diode logic, while logical inversi ...
. Since early transistors were not reliable, the
D-17B
The D-17B (D17B) computer was used in the Minuteman I NS-1OQ missile guidance system. The complete guidance system contained a D-17B computer, the associated stable platform, and power supplies.
The D-17B weighed approximately , contained 1,521 ...
missile guidance
Missile guidance refers to a variety of methods of guiding a missile or a guided bomb to its intended target. The missile's target accuracy is a critical factor for its effectiveness. Guidance systems improve missile accuracy by improving its P ...
computer, for instance, primarily used diode logic and only used transistors when necessary. Transistors quickly advanced to replace diode logic almost entirely. However, diode logic still finds some modern uses.
Cheap passive logic from active outputs
Low-impedance
push–pull outputs of conventional ICs shouldn't directly be connected to external circuitry, as they may create a
short circuit
A short circuit (sometimes abbreviated to short or s/c) is an electrical circuit that allows a current to travel along an unintended path with no or very low electrical impedance. This results in an excessive current flowing through the circuit ...
between power and ground. Such outputs, however, may be used as inputs to passive AND or OR diode logic gates. This avoids the costs of adding active logic gates. However, diode logic will degrade voltage levels and result in poor noise rejection, so designers should be aware of the interfaced
logic family's voltage ranges and limitations, to prevent failures.
Mickey Mouse Logic
The humorously-named "Mickey Mouse Logic" described in
Don Lancaster
Donald E. Lancaster was an American author, inventor, and microcomputer pioneer.
Early life
Don graduated from North Allegheny High School in Wexford, Pennsylvania. He received a BSEE degree from Lafayette College in 1961, and a MSEE from A ...
's ''CMOS Cookbook'' suggests using diodes as a
multi-tool
A multi-tool (or multitool) is a hand tool that combines several individual functions in a single unit. The smallest are credit-card or key sized units designed for carrying in a wallet or on a keyring, but others are designed to be carried ...
for augmenting the limited capabilities of regular
CMOS
Complementary metal–oxide–semiconductor (CMOS, pronounced "sea-moss
", , ) is a type of MOSFET, metal–oxide–semiconductor field-effect transistor (MOSFET) semiconductor device fabrication, fabrication process that uses complementary an ...
4000-series ICs, for instance by using a diode OR gate to add extra inputs on a
flip-flop, or a diode AND gate to configure a divide-by-N counter. A variant approach suggests keeping a supply of
1N914 diodes with inverting
Schmitt trigger
In electronics, a Schmitt trigger is a comparator circuit with hysteresis implemented by applying positive feedback to the noninverting input of a comparator or differential amplifier. It is an passivity (engineering), active circuit which con ...
ICs to provide
hysteresis
Hysteresis is the dependence of the state of a system on its history. For example, a magnet may have more than one possible magnetic moment in a given magnetic field, depending on how the field changed in the past. Plots of a single component of ...
and
functional completeness
In Mathematical logic, logic, a functionally complete set of logical connectives or Boolean function, Boolean operators is one that can be used to express all possible truth tables by combining members of the Set (mathematics), set into a Boolean ...
.
Any key interrupt
An active-low OR diode logic gate is formed by a
keypad
A keypad is a block or pad of buttons set with an arrangement of digits, symbols, or alphabetical letters. Pads mostly containing numbers and used with computers are numeric keypads. Keypads are found on devices which require mainly numeric in ...
containing diodes at each switch, all connected to a shared pull-up resistor. When no switch is closed, the pull-up keeps the output high. But when the switch for ''any key'' connects to ground, the output goes low. This OR result can be used as an interrupt signal to indicate that any key has been pressed. Then a
microcontroller
A microcontroller (MC, uC, or μC) or microcontroller unit (MCU) is a small computer on a single integrated circuit. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable input/output peripherals. Pro ...
can wake from power-saving standby and
scan the key matrix to determine which key specifically was pressed.
Tunnel diodes
During the 1960s the use of
tunnel diode
A tunnel diode or Esaki diode is a type of semiconductor diode that has effectively " negative resistance" due to the quantum mechanical effect called tunneling. It was invented in August 1957 by Leo Esaki and Yuriko Kurose when working ...
s in logic circuits was an active research topic. When compared to transistor logic gates of the time, the tunnel diode offered much higher speeds. Unlike other diode types, the tunnel diode offered the possibility of amplification of signals at each stage. The operating principles of a tunnel diode logic rely on biasing of the tunnel diode and supply of current from inputs over a threshold current, to switch the diode between two states. Consequently, tunnel diode logic circuits required a means to reset the diode after each logical operation.
However, a simple tunnel diode gate offered little isolation between inputs and outputs and had low
fan in and
fan out. More complex gates, with additional tunnel diodes and bias power supplies, overcame some of these limitations.
[ ''Tunnel Diodes for Switching and Microwave Applications Technical Manual TD-30'', RCA 1963, (3rd Chapter) Switching ] Advances in discrete and integrated circuit transistor speed and the more nearly unilateral nature of transistor amplifiers overtook the tunnel diode gate, resulting in it no longer being used in modern computers.
See also
*
Diode matrix
A diode matrix is a two-dimensional grid of wires: each "intersection" wherein one-row crosses over another has either a diode
A diode is a two-Terminal (electronics), terminal electronic component that conducts electric current primarily in ...
*
Transistor–transistor logic
Transistor–transistor logic (TTL) is a logic family built from bipolar junction transistors (BJTs). Its name signifies that transistors perform both the logic function (the first "transistor") and the amplifying function (the second "transistor" ...
*
Diode–transistor logic
Diode–transistor logic (DTL) is a class of digital circuits that is the direct ancestor of transistor–transistor logic. It is called so because the logic gating functions AND and OR are performed by diode logic, while logical inversi ...
*
Resistor–transistor logic
Resistor–transistor logic (RTL), sometimes also known as transistor–resistor logic (TRL), is a class of digital circuits built using resistors as the input network and bipolar junction transistors (BJTs) as switching devices. RTL is the earlies ...
*
Wired logic connection
Notes
References
External links
"Joystick Controller: Using Diodes to Create OR Circuits"by David Cook
{{Logic Families
Logic families