This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Showing posts with label diode. Show all posts
Showing posts with label diode. Show all posts

8 Oct 2013

Diode logic

Diode logic

Diode logic (DL) or diode-resistor logic constructs Boolean logic gates from diodes acting as electrically operated switches. While diode logic has the advantage of simplicity, the lack of an amplifying stage in each gate limits its application. Not all logical functions can be implemented in diode logic alone; only the non-inverting logical AND and logical OR functions can be realized by diode gates. If several diode logic gates are cascaded, the voltage levels at each stage are significantly changed, so one-stage applications are used.

Diode logic gate versions

In logic gates, logical functions are performed by parallel or series connected switches controlled by input logical variables. In diode logic, electrically operated switches are implemented by diodes: when forward biased, a diode switch is closed; when backward biased, the switch is open. There are two kinds of diode logic gates - OR and AND. It is not possible to construct NOT diode gate. The explanations below are true for positive logic (high voltage represents logical 1 and low voltage represents logical 0).

OR logic gate

In a diode OR gate, the output voltage is high if at least one input voltage is high. The output voltage is low if all the input voltages are low.
OR logic gates are implemented by parallel connected normally open switches. So, in diode OR logic gates, the input voltage sources are connected to diode anodes. Diode cathodes are joined to the output (node 1 in the figure), which is connected through the pull-down resistor R1 to ground.
Input logical one. If the voltage of a particular input voltage source is high (input logical 1), the according diode is forward biased and this diode switch is closed. The input source passes current through the diode and creates high voltage drop across the resistor R1 (output logical 1). The rest of diodes connected to low input voltage (input logical 0s) are backward biased and their input sources (grounds) are disconnected from the output.
Input logical zeros. If all the input voltages are low (input logical 0), the voltage drops across the diodes are zero. These diode switches are open and the input sources (grounds) are disconnected from the output. No current flows through the resistor. The output voltage is low (output logical 0) and the output resistance is R1.
If two diode OR logic gates are cascaded, they behave as current-sourcing logic gates: if the first gate produces high output voltage, the second gate consumes current from the first one. If the first gate produces low output voltage, the second gate does not inject current into the output of the first one. A diode OR gate does not use its own power supply. The input sources with high voltage (logical 1) supply the load through the forward-biased diodes.

AND logic gate

Basic idea

AND logic gates are implemented by series connected normally open switches. So, diode AND logic gates should be implemented by series connected diode switches (like an NMOS AND gate that is implemented by series connected transistor switches). However, in contrast to transistors, diodes are two-terminal switching elements, in which the input and output are not separated but they are the same. As a result, series connected diode switches cannot be driven by grounded input voltage sources. To solve this problem, diode AND gates are constructed in the same manner as OR diode gates - by parallel connected diode switches. However, to obtain AND instead of OR function according to De Morgan's laws, the input and output logical variables are inverted:
Y = NOT (NOT (X1) OR NOT (X2)) = NOT (NOT (X1 AND X2)) = X1 AND X2,
where X1 and X2 are the two input logical variables; Y is the output variable.
Therefore, the diode AND logic gate is a modified diode OR logic gate: the diode AND gate is actually a diode OR gate with inverted inputs and output.

Implementation

In a diode AND gate, the output voltage is high if all the input voltages are high. The output voltage is low if at least one of the input voltage is low.
To realize the basic idea, the diodes are reverse connected and forward biased by an additional voltage source +V (a power supply) through the pull-up resistor R1. The input voltage sources are connected in opposite direction to the supplying voltage source (traveling along the loop +V - R1 - D - Vin). To invert the output voltage and to get a grounded output, the complementary voltage drop (+V - VR1) between the output and ground is taken as an output instead the floating voltage drop VR1 across the resistor.
Input logical ones. When all the input voltages are high, they "neutralize" the biasing supply voltage +V. The voltage drops across the diodes are zero and these diode switches are open. The output voltage is high (output logical 1) since no current flows through the resistor and there is no voltage drop across it. The output resistance is R1. Hence, the behavior of the diode switches is reversed - whereas in diode OR logic gates diodes act as normally open switches, in diode AND logic gates diodes act as normally closed switches.
Input logical zero. If the voltage of some input voltage source is low (input logical 0), the power supply passes current through the resistor, diode and the input source. The diode is forward biased (the diode switch is closed) and the output voltage drop across the diode is low (output logical 0). The output resistance is low and is determined by the input source. The rest of diodes connected to high input voltages (input logical 1s) are backward biased and their input sources are disconnected from the output Node 1.
If two diode AND logic gates are cascaded, they behave as current-sinking logic gates: if the first gate produces high output voltage, the second gate does not consume current from the first one; if the first gate produces low output voltage, the second gate injects current into the output of the first one. A diode AND gate uses its own power supply to drive the load through the pull-up resistor.

Properties

Non-restoring logic

In cascaded AND-OR diode gates, the high voltage level is decreased more than two times.
Digital logic implemented by active elements is characterized by signal restoration. True and false or 1 and 0 are represented by two specific voltage levels. If the inputs to a digital logic gate is close to their respective levels, the output will be closer or exactly equal to its desired level. Active logic gates may be integrated in large numbers because each gate tends to remove noise at its input. Diode logic gates are implemented by passive elements; so, they have two restoration problems.
Forward voltage drop. The first restoration problem of diode logic is that there is a voltage drop VF about 0.6 V across the forward-biased diode. This voltage is added to or subtracted from the input of every gate so that it accumulates when identical diode gates are cascaded. In an OR gate, VF decreases the high voltage level (the logical 1) while in an AND gate, it increases the low voltage level (the logical 0). The feasible number of logic stages thus depends on the difference between the high and low voltages.
Source resistance. Another problem of diode logic is the internal resistance of the input voltage sources. Together with the gate resistor, it constitutes a voltage divider that worsens the voltage levels. In an OR gate, the source resistance decreases the high voltage level (the logical 1) while in an AND gate, it increases the low voltage level (the logical 0). In the cascaded AND-OR diode gates in the picture on the right, the AND high output voltages are decreased because of the internal voltage drops across the AND pull-up resistances.

Non-inverting logic

Diode logic is non-inverting in both the OR and AND configurations: a diode OR gate is true non-inverting (Y = X in the case of one-input OR gate) while a diode AND gate is non-inverting since it is double inverting (Y = NOT (NOT (X)) = X in the case of one-input AND gate - see the considerations above). Diode AND gate would be inverting if the voltage drop across the resistor is taken as an output but the load would be not grounded in this case.

Applications

Diode logic gates are used to build diode–transistor logic (DTL) gates as integrated circuits.
The outputs of conventional ICs (with complementary output stages) must never be directly connected together since they act as voltage sources. However, diodes can be used to combine two or more digital (high/low) outputs from an IC such as a counter. This wired logic connection can be a useful way of producing simple logic functions without using additional logic gates


Diode matrix

Diode matrix

A diode matrix is a two-dimensional grid of wires: each "intersection" wherein one row crosses over another has either a diode connecting them, or the wires are isolated from each other.
It is one of the most popular techniques for implementing a read-only memory. A diode matrix is used as the control store or microprogram in many early computers. A logically equivalent transistor matrix is still used as the control store or microprogram or 'decode ROM' in many modern microprocessors.
At any one instant, a single row of the diode matrix (or transistor matrix) is activated. Charge flows through each diode connected to that row. That activates the column corresponding to each row. The only activated control signals during that instant were those whose corresponding column wire was connected with a diode to that row.

 

History

A diode matrix ROM was used in many computers in the 1960s and 70s, as well as electronic desk calculators and keyboard encoders for computer terminals.
The microsequencer of many early computers, perhaps starting with the Whirlwind (computer), simply activated each row of the diode matrix in sequence, and after the last row was activated, started over again with the first row.
The technique of microprogramming as first described by Maurice Wilkes in terms of a second diode matrix added to a diode matrix control store. Later computers used a variety of alternative implementations of the control store, but eventually returned to a diode matrix or transistor matrix. A person would microprogram the control store on such early computers by manually attaching diodes to selected intersections of the word lines and bit lines. In schematic diagrams, the word lines are usually horizontal and the bit lines are usually vertical.
The control store on some minicomputers was one or more programmable logic array chips. The "blank" PLA from the chip manufacturer came with a diode matrix or transistor matrix with a diode (or transistor) at every intersection. A person would microprogram the control store on these computers by destroying the unwanted connections at selected intersections.
Some modern microprocessors and application-specific integrated circuits (ASICs) use a diode matrix or transistor matrix control store. Typically a blank grid is designed with a diode (or transistor) at every intersection, and then a mask is prepared that leaves out the unwanted connections at selected intersections. When reverse engineering integrated circuits that include such a mask-programmed decode ROM, one of the key steps is to take photographs of that ROM with enough resolution to separate each intersection site and enough color depth to distinguish between the "connected" and "not connected" intersections.
Since the control store is in the critical path of computer execution, a fast control store is an important part of a fast computer. For a while the control store was many times faster than program memory, allowing a long, complicated sequence of steps through the control store per instruction fetch, leading to what is now called complex instruction set computing. Later techniques for fast instruction cache sped that cache up to the point that the control store was only a few times faster than instruction cache, leading to fewer and eventually only one step through the control store per instruction fetch in reduced instruction set computing.
A keyboard matrix circuit has a very similar grid of diodes, but is used differently.
Deeksha. Powered by Blogger.