Combinational Circuits
Combinational Circuits
Remember logic gates are the building blocks of the digital circuits.
In combinational logic gates we can notice that we are free to use any
gate to express a logic operation.
Restricting our choice of gates to one type has the advantage of
simplicity – of avoiding using a range of gates – but this advantage is
apparently offset by the major disadvantage that more gates are being
used.
Combinational Logic Circuits are memoryless digital logic circuits whose
output at any instant in time depends only on the combination of its
input.
Combinational logic circuits do not have an internal stored state, i.e.,
they have no memory. Consequently the output is solely a function of
the current inputs.
Unlike Sequential Logic Circuits whose outputs are dependent on both
their present inputs and their previous output state giving them some
form of Memory.
The outputs of Combinational Logic Circuits are only determined by
the logical function of their current input state, logic “0” or logic
“1”, at any given instant in time.
The result is that combinational logic circuits have no feedback, and
any changes to the signals being applied to their inputs will
immediately have an effect at the output. In other words, in a
Combinational Logic Circuit, the output is dependent at all times on
the combination of its inputs.
Combinational Logic Circuits are made up from basic logic gates
that are “combined” or connected together to produce more
complicated switching circuits.
These logic gates are the building blocks of combinational logic
circuits.
An example of a combinational circuit is a decoder, which
converts the binary code data present at its input into a number
of different output lines, one at a time producing an equivalent
decimal code at its output.
Combinational logic circuits can be very simple or very
complicated and any combinational circuit can be implemented by
using“universal” gates.
As combinational logic circuits are made up from individual
logic gates only, they can also be considered as “decision
making circuits”.
Combinational logic is about combining logic gates together
to process two or more signals in order to produce at least
one output signal according to the logical function of each
logic gate.
Common combinational circuits made up from individual
logic gates that carry out a desired application include
Multiplexers, De-multiplexers, Encoders, Decoders, Full
and Half Adders etc.
Classification of Combinational Logic
One of the most common uses of combinational logic is in Multiplexer
and De-multiplexer type circuits.
Here, multiple inputs or outputs are connected to a common signal
line and logic gates are used to decode an address to select a single
data input or output switch.
A multiplexer consist of two separate components, a logic decoder
and some solid state switches.
AND-OR Logic
Fig.(a) shows an AND-OR circuit consisting of two 2-input AND gates and one 2-
input OR gate; Fig.(b) is the ANSI standard rectangular outline symbol. The
Boolean expressions for the AND gate outputs and the resulting SOP expression
for the output X are shown in the diagram. In general, all AND-OR circuit can
have any number of AND gates each with any number of inputs.
For a 4-input AND-OR logic circuit, the output X is HIGH (1) if both input
A and input B are HIGH (1) or both input C and input D are HIGH (1).
UNIVERSAL PROPERTY OF NAND AND NOR
GATES
The NAND gate is a universal gate because it can be used to produce the NOT, the
AND, the OR, and the NOR functions.
An inverter can be made from a NAND gate by connecting all of the inputs
together and creating, in effect, a single input, as shown in Fig.(a) for a 2-input
gate.
An AND function can be generated by the use of NAND gates alone, as shown in
Fig.(b).
An OR function can be produced with only NAND gates, as illustrated in part (c).
Finally. a NOR function is produced as shown in part (d).
The NOR Gate as a Universal Logic Element
Like the NAND gate, the NOR gate can be used to produce the NOT, AND.
OR and NAND functions.
A NOT circuit, or inverter, can be made from a NOR gate by connecting
all of the inputs together to effectively create a single input, as shown
in Fig.(a) with a 2-input example.
Also, an OR gate can be produced from NOR gates, as illustrated in
Fig.(b). An AND gate can be constructed by the use of NOR gates, as
shown in Fig.(c).
Basic Adders
Half Adder
A half-adder adds two bits and produces a sum and a carry output.
Adders are important in computers and also in other types of digital
systems in which numerical data are processed.
One major disadvantage of the Half Subtractor circuit when used as a binary
subtractor, is that there is no provision for a “Borrow-in” from the previous circuit
when subtracting multiple data bits from each other. Then we need to produce what
is called a “full binary subtractor” circuit to take into account this borrow-in input
from a previous circuit.
Full Subtractors
The disadvantage of a half subtractor is overcome by full
subtractor.
The full subtractor is a combinational circuit with three
inputs X, Y, Bin and two output D for difference and Bout.
X is the 'minuend’, Y is 'subtrahend’, Bin is the 'borrow'
produced by the previous stage, D is the difference output
and Bout is the borrow output.
Equality
The exclusive-OR gate can be used as a basic comparator because its output
is a 1 if the two input bits are not equal and a 0 if the input bits are equal.
The figure below shows the exclusive-OR gate as a 2-bit comparator
In order to compare binary numbers containing two bits each, an additional
exclusive- OR gate is necessary. The two least significant bits (LSBs) of the two
numbers are compared by gate G1. and the two most significant bits (MSBs) are
compared by gate G2, as shown in Fig.(7-12). If the two numbers are equal,
their corresponding bits are the same, and the output of each exclusive-OR
gate is a 0. If the corresponding sets of bits are not equal, a 1 occurs on that
exclusive-OR gate output.
What are the comparator outputs when A3A2A1A0 =1001 and B3B2B1B0=1010?
Pin diagram and logic symbol for 74HC85