UNIT- 2 COMBINATIONAL CIRCUITS
UNIT- 2 COMBINATIONAL CIRCUITS
UNIT- 2 COMBINATIONAL CIRCUITS
COMBINATIONAL CIRCUITS
By
Kanchan S
Assistant Professor
Department of Computer Applications
ASC Degree College, Bangalore
Combinational Logic Circuits
From Truth table, we can directly write the Boolean function for
output, Y as
Y = S1 S0 I0 + S1 S0 I1 + S1 S0 I2 + S1 S0 I3
• From Truth table, we can directly write the Boolean function for output,
Y as
Y = S1 S0 I0 + S1 S0 I1 + S1 S0 I2 + S1 S0 I3
We can implement this Boolean function using Inverters, AND gates & OR gate. The circuit diagram of 4x1
multiplexer is shown in the following figure.
Encoders
The combinational circuits that change the binary information into N output lines are known as Encoders.
The binary information is passed in the form of 2N input lines. The output lines define the N-bit code for the
binary information. In simple words, the Encoder performs the reverse operation of the Decoder. At a time,
only one input line is activated for simplicity. The produced N-bit output code is equivalent to the binary
information.
8 to 3 Encoder:
he 8 to 3 line Encoder is also known as Octal to Binary Encoder. In 8 to 3 line encoder, there is a total of eight
inputs, i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, and Y7 and three outputs, i.e., A0, A1, and A2. In 8-input lines, one
input-line is set to true at a time to get the respective binary code in the output side. Below are the block
diagram and the truth table of the 8 to 3 line encoder
Block Diagram:
Decoders
The combinational circuit that change the binary information into 2N output lines is known as Decoders. The
binary information is passed in the form of N input lines. The output lines define the 2N-bit code for the binary
information. In simple words, the Decoder performs the reverse operation of the Encoder. At a time, only one
input line is activated for simplicity. The produced 2N-bit output code is equivalent to the binary information.
3 to 8 Line Decoder
S0 S1 S2 E D0 D1 D2 D3 D4 D5 D6 D7
x x x 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 1
0 0 1 1 0 0 0 0 0 0 1 0
0 1 0 1 0 0 0 0 0 1 0 0
0 1 1 1 0 0 0 0 1 0 0 0
1 0 0 1 0 0 0 1 0 0 0 0
1 0 1 1 0 0 1 0 0 0 0 0
1 1 0 1 0 1 0 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0 0 0
• This decoder circuit gives 8 logic outputs for 3 inputs and has a
enable pin. The circuit is designed with AND and NAND logic gates.
It takes 3 binary inputs and activates one of the eight outputs. 3 to
8 line decoder circuit is also called as binary to an octal decoder.
• Application of Decoder
• The Decoders were used in analog to digital conversion in analog decoders.
• Used in electronic circuits to convert instructions into CPU control signals.
• They mainly used in logical circuits, data transfer.
Shift Register
Applications of shift registers
1. Temporary memory: Shift registers are used as temporary storage for data, usually by the
CPU while processing data.
2. Data conversion: Shift registers can convert data from one form to another, such as from
serial to parallel or vice versa.
3. Data transfer: Shift registers can transfer data between different parts of a system.
4. Data manipulation: Shift registers can perform bitwise operations on data, such as shifting
or rotating.
5. Delay: Shift registers can be used to create time delays in digital circuits.
2. Serial In Parallel Out (SIPO) Shift Register
In the "Serial IN Parallel OUT" shift register, the data is passed serially to the flip flop, and
outputs are fetched in a parallel way. The data is passed bit by bit in the register, and the
output remains disabled until the data is not passed to the data input.
Sequential circuits
A sequential circuit is a logical circuit, where the output depends on the present
input and also on previous inputs and outputs .
Eg : Flip Flops , shift registers , counters etc.
Synchronous Circuit
Asynchronous Circuit
In synchronous sequential circuits, the state of device changes at discrete times
in response to a clock signal. In asynchronous circuits, the state of the device
changes in response to changing inputs.
Synchronous Circuits
In synchronous circuits, the inputs are pulses with certain restrictions on pulse
width and propagation delay. Thus synchronous circuits can be divided into
clocked and un-clocked or pulsed sequential circuits.
Synchronous Circuit
Asynchronous Circuit
Flip flop is said to be edge sensitive or edge triggered rather than being level triggered
like latches.
The R-S flip-flop is the simplest flip-flop. It has two outputs, one output is
the reverse of the other, and two inputs. The two inputs are Set and Reset.
The flip-flop basically uses NAND gates with an additional enable pin. The
circuit gives output only when the enable pin is high.
Block Diagram
Circuit Diagram
SR Flip Flop Circuit Diagram
Truth Table
Operation
1 S = R = 0 : No
change
If S = R = 0 then output of NAND gates 3 and 4 are
forced to become 1.
Hence R' and S' both will be equal to 1. Since S' and
R' are the input of the basic S-R latch using NAND
gates, there will be no change in the state of outputs.
2 S = 0, R = 1, E = 1
Since S = 0, output of NAND-3 i.e. R' = 1 and E = 1
the output of NAND-4 i.e. S' = 0.
Hence Qn+1 = 0 and Qn+1 bar = 1. This is reset
condition.
3 S = 1, R = 0, E = 1
Output of NAND-3 i.e. R' = 0 and output of NAND-4
i.e. S' = 1.
Hence output of S-R NAND latch is Qn+1 = 1 and Qn+1
bar = 0. This is the reset condition.
4 S = 1, R = 1, E = 1
As S = 1, R = 1 and E = 1, the output of NAND gates
3 and 4 both are 0 i.e. S' = R' = 0.
Hence the Race condition will occur in the basic
NAND latch.
The name JK flip-flop is termed from the inventor Jack Kilby from texas
instruments. The basic S-R NAND flip-flop circuit has many advantages
and uses in sequential logic circuits but it suffers from two basic switching
problems.
1. the Set = 0 and Reset = 0 condition (S = R = 0) must always be
avoided
2. if Set or Reset change state while the enable (EN) input is high
the correct latching action may not occur
Then to overcome these two fundamental design problems with the SR flip-
flop design, the JK flip Flop was developed.
This simple JK flip Flop is the most widely used of all the flip-flop designs
and is considered to be a universal flip-flop circuit.
Block Diagram
Inputs Outputs
Circuit Diagram
JK
E/CLK J K Q Q
1 0 0 Q Q No Changes
1 0 1 0 1 Reset to 0
1 1 0 1 0 Set to 1
1 1 1 Q Q Toggling
Operation
1 J = K = 0 , E=1:
No change
If J = K = 0 then there will be no change in the state
of outputs , previous value of Q and Q will be retained
as it is
2 J = 0, K = 1, E = 1
Outputs Q = 0 and Q = 1 ie. Flip Flop will be in Reset
or Clear state
3 J = 1, K = 0, E = 1
Outputs Q = 1 and Q = 0 ie. Flip Flop will be in Set
State
4 J = 1, R = 1, E = 1
It sets and rese ts the flip Flop , if Q = 0 and Q = 1 and
if Q = 1 and Q = 0 , Flip Flop will be Toggling or Racing
Condition.
Block Diagram
Circuit Diagram
Truth Table
Q Q
Operation
1 E=0
Latch is disabled. Hence no change in output.
2 E = 1 and D =
0
If E = 1 and D = 0 then S = 0 and R = 1. Hence irrespective of
the present state, the next state is Q = 0 and Q=1. This is the
reset condition.
3 E = 1 and D =
1
If E = 1 and D = 1, then S = 1 and R = 0. This will set the
latch and Q = 1 and Q=0 irrespective of the present state.
Symbol Diagram
Block Diagram
Truth Table
Q Q
Operation