Digital Logic Design - Chapter Four Final Best
Digital Logic Design - Chapter Four Final Best
Combinational Logic
Analysis and Design
By Getahun n.
Digital System
The digital system consists of two types of circuits, namely
Combinational Logic Circuits and
Sequential Logic Circuits
A combinational Logic Circuit:
Consists of logic gates, where outputs are at any instant and are
determined only by the present combination of inputs.
A Sequential Logic Circuits
Contain logic gates as well as memory cells.
And Their outputs depend on the present inputs as well as on the
states of memory elements.
Combinational Logic Circuit
A combinational logic circuit consists of input variables, logic gates,
and output variables.
The logic gates accept signals from inputs and output signals are
generated according to the logic circuits employed in it
Figure below shows a block diagram of a combinational logic circuit.
There are n number of input variables coming from an electric source
and m number of output signals go to an external destination.
Design Procedure OF Combinational Logic Circuit
Any combinational circuit can be designed by the following steps of design
procedure.
1. State the problem.
2. Identify the number of input variables and output functions.
3. Assign the input and output variables with letter symbols.
4. Prepare the truth table which completely defines the relationship
between the input variables and output functions.
5. Obtain the simplified Boolean expression by using any method of
minimization - algebraic method, or Karnaugh map method.
6. Constructing a logic diagram for the simplified expression using logic
gates.
The output Boolean functions from the truth table are simplified by any
available method, such as algebraic manipulation, the K-map method, or the
tabulation procedure.
Design Constraints
However, in any particular application, certain restrictions, limitations, and criteria
will serve as a guide in the process of choosing a particular algebraic expression.
A practical design method would have to consider such constraints as
1. Minimum number of gates,
2. Minimum number of inputs to a gate,
3. Minimum propagation time of the signal through the circuit,
4. Minimum number of interconnections, and
5. Limitations of the driving capabilities of each gate.
Since all these criteria cannot be satisfied simultaneously, and since the importance
of each constraint is dictated by the particular application, it is difficult to make a
general statement as to what constitutes an acceptable simplification.
In most cases, the simplification begins by satisfying an elementary objective, such
as producing a simplified Boolean function in a standard form, and from that
proceeds to meet any other performance criteria.
Half Adder
Basic rules of binary addition are performed by a half adder, which
has two binary inputs (A & B) and two binary outputs (Cout and Sum)
The inputs and outputs can be summarized on a truth table.
The S(sum) represents the least significant bit of the sum.
The Cout represents the most significant bit of the sum.
The Boolean functions for the two output from the truth table:
S = A’B + AB’ = A⊕B Inputs Outputs
A B Cout S
0 0 0 0
Cout = AB 0 1 0 1
1 0 0 1
1 1 1 0
The logic symbol and equivalent circuit are:
Full Adder
Full Adder has three binary inputs (A, B, and Carry in) and two
binary outputs (Carry out and Sum).
Symbol
The Boolean functions for the two output from the truth table:
The output carry (C4) is not ready until it propagates through all of the full adders.
This is called ripple carry, delaying the addition process.
Parallel Adder
Example:
a) What are the sum outputs when 111 and 101 are added by the 3-
bit parallel adder?
b) What are the sum outputs when 1110 and 1011 are added by the
4-bit parallel adder?
Subtractor
The subtraction of binary numbers can be done most conveniently by means
of 2’s complements.
Remember that the subtraction A - B can be done by taking the 2's
complement of B and adding it to A.
The 2's complement can be obtained by taking the 1's complement and
adding one to the least significant pair of bits. A 4-bit subtractor circuit is
shown.
Parallel Adder and Subtractor
The addition and subtraction operations can be combined into one circuit
with one common binary adder.
This is done by including an exclusive-OR gate with each full adder.
A 4-bit adder and subtractor is shown.
Parallel Adder and Subtractor
The mode input M controls the operation.
When M = 0, the circuit is an adder, and
when M = 1, the circuit becomes a subtractor.
Each exclusive-OR gate receives input M and one of the inputs of B.
When M = 0, we have B ⊕ 0 = B
When M = 1, we have B ⊕ 1= B’ and Cin =1.
Decoder
A decoder is a combinational circuit that converts binary information
from n input lines to a maximum of 2n unique output lines.
If the n-bit decoded information has unused or don't-care combinations, the
decoder output will have fewer than 2n output.
The decoders presented here are called n-to-2n-line decoders,
Their purpose is to generate the 2n (or fewer) minterms of n input variables.
The name decoder is also used in conjunction with some code converters
such as a BCD-to-decimal decoder.
Only one output can be active (high) at any times.
Decoder
3x8 Decoder
b) Block diagram
a) Truth table
Decoder
3x8 Decoder
Decoder With Enable Input
Normally every commercially available decoder ICs have a special input
other than normal working input variables called ENABLE.
The use of this ENABLE input is that when activated the complete IC
comes to the working condition for its normal functioning.
If ENABLE input is deactivated the IC goes to sleep mode, the normal
functioning is suspended, and all the outputs become logic 0 irrespective of
normal input variables conditions.
Its function is build higher decoder from lower decoders.