Universal Logic Gates
Universal Logic Gates
1. INTRODUCTION
2. LOGIC GATES
3. UNIVERSAL LOGIC GATES
4. WORKING
5. APPLICATIONS
INTRODUCTION
It looks very amazing that why AND & OR gates are not extensively used
gates their complements are the most extensively used gates. This is
because such circuits involve transistors where inversion occurs
automatically.
We can see of these gates by implementing other basic logic gates with
the help of these gates only. Otherwise, mathematically also it has been
tried to prove the universality of these functions in Boolean algebra.
LOGIC GATES
Logic gates are used in the constructing digital circuits. Logic gates are
primarily implemented electronically using diodes or transistors, but can
also be constructed using
electromagnetic relays, fluidics, optics, molecules, or even mechanical
elements. The complexity of their construction depends upon the
materials from which they are made and the simplest one is diode logic
and these cannot be used to construct complex functional logics. Now
diode logic has evolved to transistor-transistor logics (TTL) following
resistor –transistor logics and then diode-transistor logics levels. The
transistors used are BJT (bipolar junction transistor) so as to reduce the
space occupied and to increase the level of complexity in logics.TT implies
that one transistor amplify the functions and the other helps in the logic
gating function.
Electronic logic gates are generally preferred than the mechanical ones
because of its qualities like speed, size and they consume less power.
Semiconductor logic gates are also built which act as high gain voltage
amplifier.
The inputs and outputs levels, which are represented by voltage or
current, can be tabulated and that is known as a truth table. So for each
logic gate a unique truth table and a symbol can be associated. The
fundamental logic gates are or & and gates and the other logics include
inverter, Nand, or, Ex-or gates
Example:
Symbol of and gate:
INPUT OUTPUT
A B A NAND B
0 0 1
NAN 0 1 1
D
1 0 1
1 1 0
INPUT OUTPUT
A B A NOR B
0 0 1
NOR 0 1 0
1 0 0
1 1 0
NAND GATE
When both the inputs are high i.e., 1 then the transistor will be in reversed
bias, thus allowing the charge in the base flows through the transistor
Similarly when both the inputs are high or 1 the T1 will be in reversed bias
(base-emitter junction). So the current flows through resistor R1 into the
base of T2 making T2 into saturation level and the stored charge from the
base of the T3 will flow from it to the emitter ofT2 and make the T4 into
cut-off region making the output to be 0 or low .And T3 will also be in the
cut-off region so no current flows through it. So the output will be low.
So from the figure we can say that unless both the inputs are high the
output cannot be high.
VOLTAGE LEVELS
The definitions for high level and low level will be different for different
ones used for the building of nand gate. Like for TTL nand gate the ideal
voltage at which it is operated is 5+%5 volts. The definition for high input
is any voltage between 2v and 5v and the low is between 0v to 0.8v.
The output high value will be possible when the output value voltage is
between 2.7v and 5v. And low means the voltage levels between 0v and
0.5v
Similarly for CMOS the input high means 3.5v to 5v and low corresponds
to 0v to 1.5v and the output high corresponds to 4.95 to 5v and the low
corresponds to 0v to 0.05v. But unlike TTL the CMOS can be operated at
different voltage levels like 12v and 15v etc.
The values are not exactly 5 for high and 0 for low because some
resistance in the transistor present is responsible in that and the noise
margin also affects the output voltage levels. If the noise is greater than
the noise margin the output will be affected. So care should be taken such
that noise should be less than noise margin i.e., to minimize the noise or
to maximise the signal.
The advantage of using CMOS in building the NAND gate is that the noise
margin will be high for CMOS compared to BJT’s.
Since ideal nand gates are not possible so one can try to make it more
closer towards the ideal nature.
If bubbles are introduced at AND gates output and OR gates inputs (the
same for NOR gates), the above circuit becomes as shown in figure.
Now replace OR gate with input bubble with the NAND gate. Now we have
circuit which is fully implemented with just NAND gates.
NOR GATE
It is the second universal logic gate. Same as nand gate any entire logic
system can be implemented using only NOR gate. It is basically
complement of OR logic gate and denoted by different ways. Logic nor
gate function is sometimes called the ‘pierce function’ and denoted by A B
.the other way to represent it is A+B.
A NOR gate gives high output only when all the inputs given to it are low
otherwise the output remains high.
If we represent this CMOS NOR GATE with analogous idealised circuit then
it will be like 2nd circuit. If either A or B is at logic 1, the output is ground.
No path is permissible between the output node and the power supply
Vdd .if either or both inputs are at 1, then output gives 0.if both switches
are open output will be Vdd.
F = (X+Y) . (Y+Z)
Like other POS expression this can also be implemented very easily step
by step.
The above expression can be implemented with three OR gates in first
stage and one AND gate in second stage as shown in figure.
If bubble are introduced at the output of the OR gates and the inputs of
AND gate, the above circuit becomes as shown in figure.
Now replace AND gate with input bubble with the NOR gate. Now we have
circuit which is fully implemented with just NOR gates.
To achieve the same drive strength as the inverter, the 2-input NAND
must have an input capacitance of four units (as seen by each input), and
thus its logical effort is taken to be 4/3. The 2-input NOR has an input
capacitance of five units (as seen by each input) and thus its logical effort
is taken to be 5/3.
More complex gates necessarily have more input capacitance than the
inverter, and thus are slower, given identical output drive strengths.
Logical effort captures this in a single number; gates with higher logical
effort are slower.
NOR & NAND gates are two pillars of logic and logic circuits are widely
made by them only. Logic circuits include devices such as multiplexers,
registers, arithmetic logic units (ALUs) and computer memory all the way
up through complete micro processors which contain 100 million logic
gates.
In computer memory the most debated application of these gates is flash
memory.
Programming
Erasing
Erasing a NOR memory cell (setting it to logical 1), via quantum tunneling.
To erase a NOR flash cell (resetting it to the "1" state), a large voltage of
the opposite polarity is applied between the CG and source, pulling the
electrons off the FG through quantum tunneling. Modern NOR flash
memory chips are divided into erase segments (often called blocks or
sectors). The erase operation can only be performed on a block-wise
basis; all the cells in an erase segment must be erased together.
Programming of NOR cells, however, can generally be performed one byte
or word at a time.
NAND flash:
NAND flash memory wiring and structure on silicon