0% found this document useful (0 votes)
92 views

Combinational Logic Circuit

This document provides information about combinational logic circuits, including: 1) Combinational logic circuits consist of logic gates whose outputs are determined solely by the present inputs. They perform operations specified by Boolean functions and have no internal storage. 2) Half adders, full adders, half subtractors and full subtractors are described as examples of combinational logic circuits. They perform basic arithmetic operations using logic gates. 3) Binary adders and subtractors can be constructed by connecting full adders/subtractors in cascade. This allows adding/subtracting multi-bit binary numbers.

Uploaded by

Ravi Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views

Combinational Logic Circuit

This document provides information about combinational logic circuits, including: 1) Combinational logic circuits consist of logic gates whose outputs are determined solely by the present inputs. They perform operations specified by Boolean functions and have no internal storage. 2) Half adders, full adders, half subtractors and full subtractors are described as examples of combinational logic circuits. They perform basic arithmetic operations using logic gates. 3) Binary adders and subtractors can be constructed by connecting full adders/subtractors in cascade. This allows adding/subtracting multi-bit binary numbers.

Uploaded by

Ravi Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 14

INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT

E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,


Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

COMBINATIONAL LOGIC CIRCUIT


 A combinational circuit consists of logic gates whose outputs at any time are determined from only the
present combination of inputs.
 A combinational circuit performs an operation that can be specified logically by a set of Boolean functions.

 It consists of an interconnection of logic gates. Combinational logic gates react to the values of the signals
at their inputs and produce the value of the output signal, transforming binary information from the given
input data to a required output data.
 A block diagram of a combinational circuit is shown in the below figure.

 The n input binary variables come from an external source; the m output variables are produced by the
internal combinational logic circuit and go to an external destination.
 Each input and output variable exists physically as an analog signal whose values are interpreted to be a
binary signal that represents logic 1and logic 0.

BINARY ADDER–SUBTRACTOR:-
 Digital computers perform a variety of information-processing tasks. Among the functions encountered are
the various arithmetic operations.
 The most basic arithmetic operation is the addition of two binary digits. This simple addition consists of
four possible elementary operations: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, and 1 + 1 = 10.
 The first three operations produce a sum of one digit, but when both augend and addend bits are equal to
1; the binary sum consists of two digits. The higher significant bit of this result is called a carry.
 When the augend and addend numbers contain more significant digits, the carry obtained from the
addition of two bits is added to the next higher order pair of significant bits.
 A combinational circuit that performs the addition of two bits is called a half adder.
 One that performs the addition of three bits (two significant bits and a previous carry) is a full adder. The
names of the circuits stem from the fact that two half adders can be employed to implement a full adder.

HALF ADDER:-
 This circuit needs two binary inputs and two binary outputs.

 The input variables designate the augend and addend bits; the output variables produce the sum and
carry. Symbols x and y are assigned to the two inputs and S (for sum) and C (for carry) to the outputs.
 The truth table for the half adder is listed in the below table.

 The C output is 1 only when both inputs are 1. The S output represents the least significant bit of the sum.

 The simplified Boolean functions for the two outputs can be obtained directly from the truth table.

 The simplified sum-of-products expressions are


S = x’y + xy’
C = xy
 The logic diagram of the half adder implemented in sum of products is shown in the below figure. It can be
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

also implemented with an exclusive-OR and an AND gate.

FULL ADDER:-

 A full adder is a combinational circuit that forms the arithmetic sum of three bits.
 It consists of three inputs and two outputs. Two of the input variables, denoted by x and y , represent the
two significant bits to be added. The third input, z , represents the carry from the previous lower
significant position.

 Two outputs are necessary because the arithmetic sum of three binary digits ranges in value from 0 to 3,
and binary representation of 2 or 3 needs two bits. The two outputs are designated by the symbols S for
sum and C for carry.

 The binary variable S gives the value of the least significant bit of the sum. The binary variable C gives the
output carry formed by adding the input carry and the bits of the words.
 The eight rows under the input variables designate all possible combinations of the three variables. The
output variables are determined from the arithmetic sum of the input bits. When all input bits are 0, the
output is 0.
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

 The S output is equal to 1 when only one input is equal to 1 or when all three inputs are equal to 1. The C
output has a carry of 1 if two or three inputs are equal to 1.
 The simplified expressions are
S = x’y’z + x’yz’ + xy’z’ + xyz
C = xy + xz + yz
 The logic diagram for the full adder implemented in sum-of-products form is shown in figure.

 It can also be implemented with two half adders and one OR gate as shown in the figure.

 A full adder is a combinational circuit that forms the arithmetic sum of three bits.
BINARY ADDER:-
 A binary adder is a digital circuit that produces the arithmetic sum of two binary numbers.

 It can be constructed with full adders connected in cascade, with the output carry from each full adder
connected to the input carry of the next full adder in the chain.
 Addition of n-bit numbers requires a chain of n full adders or a chain of one-half adder and n-1 full
adders. In the former case, the input carry to the least significant position is fixed at 0.
 The interconnection of four full-adder (FA) circuits to provide a four-bit binary ripple carry adder is shown
in the figure.
 The augend bits of A and the addend bits of B are designated by subscript numbers from right to left, with
subscript 0 denoting the least significant bit.
 The carries are connected in a chain through the full adders. The input carry to the adder is C0, and it
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

ripples through the full adders to the output carry C4. The S outputs generate the required sum bits.
 An n -bit adder requires n full adders, with each output carry connected to the input carry of the next
higher order full adder.
 Consider the two binary numbers A = 1011 and B = 0011. Their sum S = 1110 is formed with the four- bit
adder as follows:

 The bits are added with full adders, starting from the least significant position (subscript 0), to form the
sum bit and carry bit. The input carry C0 in the least significant position must be 0.
 The value of Ci+1 in a given significant position is the output carry of the full adder. This value is transferred
into the input carry of the full adder that adds the bits one higher significant position to the left.
 The sum bits are thus generated starting from the rightmost position and are available as soon as the
corresponding previous carry bit is generated. All the carries must be generated for the correct sum bits
to appear at the outputs.

HALF SUBTRACTOR:-
 This circuit needs two binary inputs and two binary outputs.

 Symbols x and y are assigned to the two inputs and D (for difference) and B (for borrow) to the outputs.

 The truth table for the half subtractor is listed in the below table.

 The B output is 1 only when the inputs are 0 and 1. The D output represents the least significant bit of the
subtraction.
 The subtraction operation is done by using the following rules as
0-0=0;
0-1=1 with borrow 1;
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

1-0=1;
1-1=0.
 The simplified Boolean functions for the two outputs can be obtained directly from the truth table. The
simplified sum-of-products expressions are
D = x’y + xy’ and B =x’y

 The logic diagram of the half adder implemented in sum of products is shown in the figure. It can be also
implemented with an exclusive-OR and an AND gate with one inverted input.

FULL SUBTRACTOR:-
 A full subtractor is a combinational circuit that forms the arithmetic subtraction operation of three bits.

 It consists of three inputs and two outputs. Two of the input variables, denoted by x and y , represent the
two significant bits to be subtracted. The third input, z , is subtracted from the result 0f the first
subtraction.

 Two outputs are necessary because the arithmetic subtraction of three binary digits ranges in value from 0
to 3, and binary representation of 2 or 3 needs two bits. The two outputs are designated by the symbols
D for difference and B for borrow.

 The binary variable D gives the value of the least significant bit of the difference. The binary variable B
gives the output borrow formed during the subtraction process.
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

 The eight rows under the input variables designate all possible combinations of the three variables. The
output variables are determined from the arithmetic subtraction of the input bits.
 The difference D becomes 1 when any one of the input is 1or all three inputs are equal to1 and the borrow
B is 1 when the input combination is (0 0 1) or (0 1 0) or (0 1 1) or (1 1 1).
 The simplified expressions are
D = x’y’z + x’yz’ + xy’z’ + xyz
B = x’z + x’y + yz
 The logic diagram for the full adder implemented in sum-of-products form is shown in figure.

MAGNITUDE COMPARATOR:-
 A magnitude comparator is a combinational circuit that compares two numbers A and B and determines
their relative magnitudes.
 The following description is about a 2-bit magnitude comparator circuit.

 The outcome of the comparison is specified by three binary variables that indicate whether A < B, A = B,
or A > B.
 Consider two numbers, A and B, with two digits each. Now writing the coefficients of the numbers in
descending order of significance:
A = A1 A0
B = B1 B0
 The two numbers are equal if all pairs of significant digits are equal i.e. if and only if A1 = B1, and A0 =
B0.
 When the numbers are binary, the digits are either 1 or 0, and the equality of each pair of bits can be
expressed logically with an exclusive-NOR function as
x1=A1B1+A1’B1’
And x0=A0B0+A0’B0’

 The equality of the two numbers A and B is displayed in a combinational circuit by an output binary
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

variable that we designate by the symbol (A = B).


 This binary variable is equal to 1 if the input numbers, A and B , are equal, and is equal to 0 otherwise.
 For equality to exist, all xi variables must be equal to 1, a condition that dictates an AND operation of all
variables:
(A = B) = x1x0
 The binary variable (A = B) is equal to 1 only if all pairs of digits of the two numbers are equal.
 To determine whether A is greater or less than B, we inspect the relative magnitudes of pairs of significant
digits, starting from the most significant position. If the two digits of a pair are equal, we compare the
next lower significant pair of digits. If the corresponding digit of A is 1 and that of B is 0, we conclude
that A > B. If the corresponding digit of A is 0 and that of B is 1, we have A < B. The sequential
comparison can be expressed logically by the two Boolean functions
(A > B) = A1B1’+x1A0B’0
(A < B) = A1’ B1 +x1A0’B0’
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

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 coded information has unused combinations, the decoder may have fewer than 2n outputs.

 The decoders presented here are called n -to- m -line decoders, where m … 2n.

 Their purpose is to generate the 2n (or fewer) minterms of n input variables.

 Each combination of inputs will assert a unique output. The name decoder is also used in conjunction with
other code converters, such as a BCD-to-seven-segment decoder.
 Consider the three-to-eight-line decoder circuit of three inputs are decoded into eight outputs, each
representing one of the minterms of the three input variables.
 The three inverters provide the complement of the inputs, and each one of the eight AND gates generates
one of the minterms.
 The input variables represent a binary number, and the outputs represent the eight digits of a number in
the octal number system.
 However, a three-to-eight-line decoder can be used for decoding any three-bit code to provide eight
outputs, one for each element of the code.
 A two-to-four-line decoder with an enable input constructed with NAND gates is shown in Fig.
 The circuit operates with complemented outputs and a complement enable input. The decoder is enabled
when E is equal to 0 (i.e., active-low enable). As indicated by the truth table, only one output can be
equal to 0 at any given time; all other outputs are equal to 1.
 The output whose value is equal to 0 represents the minterm selected by inputs A and B.
 The circuit is disabled when E is equal to 1, regardless of the values of the other two inputs.

 When the circuit is disabled, none of the outputs are equal to 0 and none of the minterms are selected.

 In general, a decoder may operate with complemented or un-complemented outputs.

 The enable input may be activated with a 0 or with a 1 signal.

 Some decoders have two or more enable inputs that must satisfy a given logic condition in order to enable
the circuit.
 A decoder with enable input can function as a demultiplexer— a circuit that receives information from a
single line and directs it to one of 2n possible output lines.
 The selection of a specific output is controlled by the bit combination of n selection lines.

 The decoder of Fig. can function as a one-to-four-line demultiplexer when E is taken as a data input line
and A and B are taken as the selection inputs.
 The single input variable E has a path to all four outputs, but the input information is directed to only one
of the output lines, as specified by the binary combination of the two selection lines A and B .
 This feature can be verified from the truth table of the circuit.
 For example, if the selection lines AB = 10, output D2 will be the same as the input value E, while all other
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

outputs are maintained at 1.


 Since decoder and demultiplexer operations are obtained from the same circuit, a decoder with an
enable input is referred to as a decoder – demultiplexer.
 A application of this decoder is binary-to-octal conversion.

ENCODER:-
 An encoder is a digital circuit that performs the inverse operation of a decoder.

 An encoder has 2n (or fewer) input lines and n output lines.

 The output lines, as an aggregate, generate the binary code corresponding to the input value.

 The above Encoder has eight inputs (one for each of the octal digits) and three outputs that generate the
corresponding binary number.
 It is assumed that only one input has a value of 1 at any given time.

 The encoder can be implemented with OR gates whose inputs are determined directly from the truth table.

 Output z is equal to 1 when the input octal digit is 1, 3, 5, or 7.

 Output y is 1 for octal digits 2, 3, 6, or 7, and output x is 1 for digits 4, 5, 6, or 7.

 These conditions can be expressed by the following Boolean output functions:


z = D1 + D3 + D5 + D7
y = D2 + D3 + D6 + D7
x = D4 + D5 + D6 + D7
 The encoder can be implemented with three OR gates.
 The encoder defined above has the limitation that only one input can be active at any given time.

 If two inputs are active simultaneously, the output produces an undefined


combination.
 To resolve this ambiguity, encoder circuits must establish an input priority to ensure that only one input is
encoded which is done in the Priority Encoder .

PRIORITY ENCODER:-

 A priority encoder is an encoder circuit that includes the priority function.


 The operation of the priority encoder is such that if two or more inputs are equal to 1 at the same time, the
input having the highest priority will take precedence.
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

 In addition to the two outputs x and y , the circuit has a third output designated by V ; this is a valid bit
indicator that is set to 1 when one or more inputs are equal to 1.
 If all inputs are 0, there is no valid input and V is equal to 0.
 The other two outputs are not inspected when V equals 0 and are specified as don’t-care conditions.

 Here X ’s in output columns represent don’t-care conditions, the X ’s in the input columns are useful for
representing a truth table in condensed form.

 Higher the subscript number, the higher the priority of the input.
 Input D3 has the highest priority, so, regardless of the values of the other
inputs, when this input is 1, the output for xy is 11 (binary 3).
 If D2 = 1, provided that D3 = 0, regardless of the values of the other two lower priority inputs the output is
10.
 The output for D1 is generated only if higher priority inputs are 0, and so on down the priority levels.

 The maps for simplifying outputs x and y are shown in above Fig.
 The minterms for the two functions are derived from its truth table.
 Although the table has only five rows, when each X in a row is replaced first by 0 and then by 1, we obtain
all 16 possible input combinations.
 For example, the fourth row in the table, with inputs XX10, represents the four minterms 0010, 0110, 1010,
and 1110. The simplified Boolean expressions for the priority encoder are obtained from the maps.
 The condition for output V is an OR function of all the input variables.
 The priority encoder is implemented according to the following Boolean functions: x
= D2 + D3
y = D3 + D1 D’2
V = D0 + D1 + D2 + D3
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

MULTIPLEXER:-
 A multiplexer is a combinational circuit that selects binary information from one of many input lines and
directs it to a single output line.
 The selection of a particular input line is controlled by a set of selection lines.
 Normally, there are 2n input lines and n selection lines whose bit combinations determine which input is
selected.
 A four-to-one-line multiplexer is shown in the below figure. Each of the four inputs, I0 through I3, is
applied to one input of an AND gate.
 Selection lines S1 and S0 are decoded to select a particular AND gate. The outputs of the AND gates
are applied to a single OR gate that provides the one-line output.
 The function table lists the input that is passed to the output for each combination of the binary selection
values.
 To demonstrate the operation of the circuit, consider the case when
S1S0= 10.
 The AND gate associated with input I2 has two of its inputs equal to 1 and the third input connected to
I2.
 The other three AND gates have at least one input equal to 0, which makes their outputs equal to 0.
The output of the OR gate is now equal to the value of I 2, providing a path from the selected input to
the output.
 A multiplexer is also called a data selector, since it selects one of many inputs and steers the binary
information to the output line.
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical Engineering ,
Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

DEMULTIPLEXER:-

 The data distributor, known more commonly as a Demultiplexer or “Demux” for short, is the exact
opposite of the Multiplexer.
 The demultiplexer takes one single input data line and then switches it to any one of a number of
individual output lines one at a time. The demultiplexer converts a serial data signal at the input to a
parallel data at its output lines as shown below.
 The Boolean expression for this 1-to-4 demultiplexer above with outputs A to D and data select lines a,
b is given as:

F = (ab)’A + a’bB + ab’C + abD

 The function of the demultiplexer is to switch one common data input line to any one of the 4 output
data lines A to D in our example above. As with the multiplexer the individual solid state switches are
selected by the binary input address code on the output select pins “a” and “b” as shown.
INTERNATIONAL INSTITUTE OF TECHNOLOGY & MANAGEMENT, MURTHAL SONEPAT
E-NOTES , Subject : DIGITAL ELECTRONICS, Course: Diploma , Branch : Electrical
Engineering , Sem-4th , Chapter Name: COMBINATIONAL LOGIC CIRCUITS
( Prepared By: Mrs. Gurpreet Kaur , Assistant Professor , EE)

 Unlike multiplexers which convert data from a single data line to multiple lines and
demultiplexers which convert multiple lines to a single data line, there are devices
available which convert data to and from multiple lines and in the next tutorial about
combinational logic devices.
 Standard demultiplexer IC packages available are the TTL 74LS138 1 to 8-output
demultiplexer, the TTL 74LS139 Dual 1-to-4 output demultiplexer or the CMOS
CD4514 1-to-16 output demultiplexer.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy