Professional Documents
Culture Documents
KEC302
Unit-2
Combinational Circuits
Deepak Sigroha
Electronics Engineering Department
Rajkiya Engineering College Sonbhadra
deepak.sigroha@recsonbhadra.ac.in
+91-9478856526
Outline
Looping
• Combinational Circuits
o Analysis & Design
• Arithmetic Circuits
o Adder, Subtractor, & Multiplier
• Non-arithmetic Circuits
o Magnitude Comparator, Code Convertors & Parity Generator/Checker
• Encoder & Decoder
• Multiplexer & De-Multiplexer
• ALU
• Barrel Shifter
Combinational Circuit
(Multiplexers & Demultiplexers)
Multiplexing
Multiplexing means sharing. A common example of multiplexing or sharing occurs when
several peripheral devices share a single transmission line or bus to communicate with a
computer.
1. Time Multiplexing: Each device in succession is allocated a brief time to send or receive data. At any given
time, one and only one device is using the line.
2. Frequency Multiplexing: Several devices share a common line by transmitting at different frequencies.
In a large mainframe computer, numerous users are time-multiplexed to the computer in such a
rapid succession that all appear to be using the computer simultaneously.
A digital multiplexer or data selector is a logic circuit that accepts several digital data inputs
and selects one of them at any given time to pass on to the output.
The selection of a particular input line is controlled by a set of selection lines. Normally, there
are input lines and ‘n’ selection lines (sometime referred as ADDRESS input) whose bit
combinations determine which input is selected.
m Inputs: ///………./
One Output: Y/Z
Such that Y/Z may be equal to one of the inputs, depending upon the control inputs.
1
′
Y =S I 0 +S I 1
2
The multiplexer acts like an electronic switch that selects one of two sources.
Unit 2 – Combinational Circuits 9
Multiplexer
A two-input MUX could be used is in a digital system that uses two different MASTER CLOCK signals:
a high-speed clock (say, 10 MHz) in one mode and a slow-speed clock (say, 4.77 MHz) for the other.
Using the circuit of, the 10-MHz clock would be tied to and the 4.77-MHz clock would be tied to .
A signal from the system’s control logic section would drive the SELECT input to control which clock signal appears at
output for routing to the other parts of the circuit.
inputs
I1 I0
4x1
Y
I2 MUX 1 output 0 0
0 1
I3
1 0
1 1
Enable (G)
S1 S0 Y =S ′1 S ′0 I 0 + S ′1 S0 I 1+ S 1 S′0 I 2 +S 1 S 0 I 3
0 0
n control inputs
Unit 2 – Combinational Circuits 11
MUX Actual Circuit
I3
I2
Y
I1
I0 Y =S ′1 S ′0 I 0 + S ′1 S0 I 1+ S 1 S′0 I 2 +S 1 S 0 I 3
S 1 S 0Enable (G)
Unit 2 – Combinational Circuits 12
Multiplexers
The AND gates and inverters in the multiplexer resemble a decoder circuit, and indeed, they decode
the selection input lines.
In general, a line multiplexer is constructed from an decoder by adding input lines to it, one input
to each AND gate. The outputs of the AND gates are applied to a single OR gate.
The size of a multiplexer is specified by the number of its data input lines and the single output
line. The selection lines are implied from the data lines.
As in decoders, multiplexers may have an enable input to control the operation of the unit.
When the enable input is in the inactive state, the outputs are disabled, and when it is in the active state, the
circuit functions as a normal multiplexer.
The buffer has a normal input, an output, and a control input that determines the state of the
output.
When the control input is equal to 1, the output is enabled and the gate behaves like a conventional buffer,
with the output equal to the normal input.
When the control input is 0, the output is disabled and the gate goes to a high-impedance state, regardless of
the value in the normal input.
Three-state Gates
Four-input multiplexer: (a) using sum of products logic; (b) using tristate buffers
Unit 2 – Combinational Circuits 20
Multiplexers
Two, four, eight, and 16-input multiplexers are readily available in the TTL and CMOS logic
families. These basic ICs can be combined for multiplexing a larger number of inputs.
Some packages contain more than one multiplexer, for example, the 74157 quad 2-to-1
multiplexer (four 2-to-1 multiplexers having the same data select inputs) and the 74153 dual 4-to-
1 multiplexer.
Some designs have 3-state outputs and others have open collector outputs. Most have enable
inputs to facilitate cascading.
2:1 16 : 1
4:1 16 : 1
4:1 64 : 1
8:1 64 : 1
8:1 256 : 1
I0 0
2:1 MUX
I1 1
0 f 0 0
2:1 MUX 0 1
(LSB)
1 1 0
1 1
I2 0
2:1 MUX (MSB)
I3 1
(LSB)
Unit 2 – Combinational Circuits 26
8:1 MUX from Seven 2:1 MUX
I0
2:1 MUX
I1
S0 2:1 MUX
I2
I3
2:1 MUX S1
S0
Y
2:1 MUX
I4
2:1 MUX
I5
S2
S0
2:1 MUX
I6
2:1 MUX
I7 S1
S0
Unit 2 – Combinational Circuits 27
16:1 MUX using 4:1 MUXs
16 inputs are there, the first four inputs are applied to the first 4:1 mux, the second four inputs to the second 4:1 mux,
the third four inputs to the third 4:1 mux, and the fourth four inputs are applied to the fourth 4:1 mux.
Four select inputs are required. Select inputs and are applied to and terminals of the four muxes. The outputs of
these muxes are connected as data inputs to the fifth 4:1 mux and select inputs and are applied to and of that mux.
When ; will appear at, at , D8 at F3 and D12 at F4.
When appears at , at , at and at .
Similarly, when and appear at and respectively.
When and appear at and respectively. Depending upon the values of AB either F1 or F2 or F3 or F4 will appear at the output.
0 I0
Y
1 I1
S
1 I0
Y
0 I1
S
0 I0
Y
B I1
S
B I0
Y
1 I1
S
B′ I0
Y
0 I1
S
Required 2:1 MUX is 2, one to perform OR operation and one to perform NOT operation
1 I0
Y
B′ I1
S
Required 2:1 MUX is 2, one to perform AND operation and one to perform NOT operation
B I0
Y
B′ I1
S
B′ I0
Y
B I1
S
An examination of the logic diagram of a multiplexer reveals that it is essentially a decoder that includes
the OR gate within the unit.
The minterms of a function are generated in a multiplexer by the circuit associated with the selection
inputs. The individual minterms can be selected by the data inputs.
Advantage of using a multiplexer in place of logic gates is that, a single integrated circuit can perform a
function that might otherwise require numerous integrated circuits. Moreover, it is very easy to change the
logic function implemented, if and when redesign of a system becomes necessary.
Method of implementing a Boolean function of variables with a multiplexer that has selection
inputs and data inputs as follows:
1. Construct a truth table for the function to be implemented or express the Boolean function in terms of sum-of-
minterms.
2. Connect logic 1 to each data input of the multiplexer corresponding to each combination of the input variables,
for which the truth table shows the function to be equal to 1 or one for each minterm. Logic 0 is connected to
the remaining data inputs.
3. The variables themselves are connected to the data select inputs of the multiplexer.
S2 S1 S0
𝑧 S0
𝑦 S1
0 0 0 1 𝑥 S2
0 0 1 0
1 D0
0 1 0 1 0 D1 8x1
0 1 1 1 1 D2 MUX Output=F
1 D3
1 0 0 0 0 D4
1 0 1 1 1 D5
1 1 0 0 0 D6
0 D7
1 1 1 0
F (A ,B ,C)=∑(1,2,4,7)
0 2 4 6 8 10 12 14
1 3 5 7 9 11 13 15
0 1 4 5 8 9 12 13
2 3 6 7 10 11 14 15
0 1 2 3 8 9 10 11
4 5 6 7 12 13 14 15
0 1 2 3 4 5 6 7
8 9 10 11 12 13 14 15
0 4 8 12
1 5 9 13
2 6 10 14
3 7 11 15
0 8 0 4
1 9 1 5
2 10 2 6
3 11 3 7
4 12 8 12
5 13 9 13
6 14 10 14
7 15 11 15
0 2 4 6 8 10 12 14
1 3 5 7 9 11 13 15
0
0 2 4 6 8 10 12 14
1 3 5 7 9 11 13 15
1 1 1 1 1
0 2 4 6
1 3 5 7
F(A,B,C,D)=∑(1,2,4,7,8,9,10,1 ,13,15)
0 4 8 12
1 5 9 13
2 6 10 14
3 7 11 15
1 5 9 13
2 6 10 14
3 7 11 15
0 1
2 3
4 5
6 7
8 9
10 11
12 13
14 15
F= A ⊕C
A B
Solution
Solution
Solution
Solution
𝟏 0
Solution
Solution
Solution: When output is 1, then will also be 1 and switch will go to 1 after and output become zero, again becomes
0 and switch will go to 0 after and output goes to 1 and this will continue and we will get the waveform at output as
so, 1 1 1 1
Then, 0 0 0 0 0
The purpose of the multiplexing technique, as it is used here, is to timeshare the decoder/drivers
and display circuits between the two counters rather than have a separate set of decoder/drivers
and displays for each counter.
This results in a significant saving in the number of wiring connections, especially when more BCD stages are
added to each counter.
Waveforms for
S1 S0 O2=D S 1 S′0
0 0 0 0 0 D
0 1 0 0 D 0 The input data line goes to all of the AND gates. The two select lines
S0 and S1 enable only one gate at a time, and the data appearing on the
1 0 0 D 0 0
input line will pass through the selected gate to the associated output
1 1 D 0 0 0
line.
Unit 2 – Combinational Circuits 81
1-to-8 Demultiplexer
► The single data input line is connected to all eight
AND gates, but only one of these gates will be
enabled by the select input lines.
► For example, with , only the AND gate will be enabled,
and the data input will appear at output . Other select
codes cause input to reach the other outputs.
1:2 1 : 16
1:4 1 : 16
1:4 1 : 64 1 + 4 + 16
1:8 1 : 64 1+8
1:8 1 : 256 1 + 4 + 32 = 37
Solution