Unit-6 LDICA Combinational and Sequential
Unit-6 LDICA Combinational and Sequential
• The input code generally has fewer bits than the output code,
n : 2n
n data
Decoder
inputs
Possible 2n
outputs
Enable
inputs
En A B Y3 Y2 Y1 Y0
0 X X 0 0 0 0
1 0 0 0 0 0 1
1 0 1 0 0 1 0
1 1 0 0 1 0 0
1 1 1 1 0 0 0
2 to 4 Decoder
Truth table for 3 to 8 decoder
EN A B C Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
0 X X X 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 1
1 0 0 1 0 0 0 0 0 0 1 0
1 0 1 0 0 0 0 0 0 1 0 0
1 0 1 1 0 0 0 0 1 0 0 0
1 1 0 0 0 0 0 1 0 0 0 0
1 1 0 1 0 0 1 0 0 0 0 0
1 1 1 0 0 1 0 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0 0 0
Logic diagram for 3 to 8 decoder
IC 74X138 3 to 8 Decoder
Y0
15
1
A Y1 14
2
B
3
Y2 13
C
Y3
12
74X138 11
Y4
10
Y5
G1
9
6 Y6
5 G2A 7
4 G2B Y7
IC 74X138 3 to 8 Decoder
• The device has three enable inputs : two active low (G2A’,
G2B’) and one active high G1.
Truth table for 74X138 IC
G2B G2A
G1 C B A Y7’ Y6’ Y5’ Y4’ Y3’ Y2’ Y1’ Y0’
1 X X X X X 1 1 1 1 1 1 1 1
X 1 X X X X 1 1 1 1 1 1 1 1
X X 0 X X X 1 1 1 1 1 1 1 1
0 0 1 0 0 0 1 1 1 1 1 1 1 0
0 0 1 0 0 1 1 1 1 1 1 1 0 1
0 0 1 0 1 0 1 1 1 1 1 0 1 1
0 0 1 0 1 1 1 1 1 1 0 1 1 1
0 0 1 1 0 0 1 1 1 0 1 1 1 1
0 0 1 1 0 1 1 1 0 1 1 1 1 1
0 0 1 1 1 0 1 0 1 1 1 1 1 1
0 0 1 1 1 1 0 1 1 1 1 1 1 1
74x139 Dual 2 to 4 decoder
4
1
1Y0 5
1G
2 1Y1 6
3
1A
1Y2 7
1B
1Y3
74X139
12
2Y0
11
6
2G 2Y1
5 10
2A 2Y2
4 9
2B 2Y3
Realization of Multiple output function
using binary decoder
W h e n d e c o d e r o u t p u t i s a c t i v e l o w, t h e o u t p u t i s i n
complemented form, I.e., it generates maxterms for input
variables. It makes selected output logic 0. In such a case to
implement POS function we have to take product of selected sum
terms generated by decoder. This can be achieved by ANDing
the selected decoder outputs.
SOP function implementation
Cascading of Decoders
2. Priority encoder
Encoder
2n inputs
n data
2n:n ouputs
Encoder
Enable
inputs
• A decoder’s output code normally has more bits than its input code. If the device’s
output code has fewer its than the input code, the device is called an encoder. An
encoder has 2n input lines and n output lines. In encoder the output lines generate
binary code corresponding to the input value.
Priority encoder
Inputs Outputs
D0 D1 D2 D3 Y1 Y0 V
0 0 0 0 X X 0
1 0 0 0 0 0 1
X 1 0 0 0 1 1
X X 1 0 1 0 1
X X X 1 1 1 1
Priority encoder IC 74xx148
Truth table for priority encoder 74xx148
Inputs Outputs
EI 0 1 2 3 4 5 6 7 A2 A1 A0 GS EO
1 X X X X X X X X 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 1 1 1 1 1 0 1
0 X 0 1 1 1 1 1 1 1 1 0 0 1
0 X X 0 1 1 1 1 1 1 0 1 0 1
0 X X X 0 1 1 1 1 1 0 0 0 1
0 X X X X 0 1 1 1 0 1 1 0 1
0 X X X X X 0 1 1 0 1 0 0 1
0 X X X X X X 0 1 0 0 1 0 1
0 X X X X X X X 0 0 0 0 0 1
Priority Encoder
• If a minterm exists in a function, we have to connect the AND gate data input to
logic 1; otherwise we have to connect it to logic 0.
4. Binary / Parallel Adder
Bn An B2 A2 B1 A1 B0 A0
Cout
Cout
FA FA FA FA
Cin
Cin
Sn S2 S1 S0
Logic diagram for 4 bit parallel adder
B3 B2 B1 B0 A3 A2 A1 A0
Cout Cin
IC 74LS83 / 74LS283
S3 S2 S1 S0
The 74283 is a 4 bit binary adder that forms its sum and carry
outputs with just a few levels of logic, using the carry lookahead
technique.
Group-ripple carry adder
Sequential Circuits
The Sequential Circuit Model
Models for Sequential Circuits
" Block diagram representation
" The state table lists the inputs across the top, the outputs along
the left side, with the entries in the table being the next state and
" Memory elements exist indefinitely in one of two possible states, 0 and 1.
" Binary data are stored in a memory element by placing the element into the 0
state to store a 0 and into the 1 state to store a 1.
" The output Q of the circuit indicates the present state of the memory.
" The two memory element types most commonly used in switching circuits are
latches and flip-flops.
" Latches are devices whose excitation inputs control the state of the device.
" A flip-flop differs from a latch in that it has a control switch called a clock. This
means a flip-flop waits for its clock signal before changing states. The final state
of a flip-flop is determined by its excitation values at the time the clock signal
occurs.
TTL Memory Elements
Number of
Device Elements Element Description
74LS73A 2 Negative-edge triggered flip-flop with clear
7474 2 Positive-edge triggered D flip-flop with preset and clear
74LS75 4 D latch with enable
7476 2 Pulse-triggered JK flip-flop with preset and clear
74111 2 Master-slave JK flip-flop with preset, clear, data lockout
74116 2 4-Bit hazard-free D latch with clear and dual enable
74175 4 Positive-edge triggered D flip-flop with clear
74273 8 Positive-edge triggered D flip-flop with clear
74276 4 Negative-edge triggered JK flip-flop with preset, clear
74279 4 SR latch with active-low inputs
SR Latch
" The logic symbol of the D latch is can be created from a gated
SR latch, by assigning S = D and R = D.
Delay Latch (D latch)
Logic symbol
NAND implementation
NOR implementation
Flip-Flops
" The latch circuits presented thus far are not appropriate for use
in synchronous sequential logic circuits.
" The clock can then be used to restrict the times at which the
states of the memory elements may change thus preventing the
unstable behavior just described.
5. D - Flip Flop
D Q(t+1) D 0 1
Q
0 0
0 0 1
1 1
1 0 1
Q(t+1) = D
characteristic equation
5. D - Flip Flop
" All the pulse-triggered flip-flops require both a rising and falling edge on
the clock for proper operation.
" A circuit with this design is called positive edge triggered if it responds
to a 0 to 1 clock transition, or negative edge triggered if it responds to a
1 to 0 clock transition.
" Fig presents the logic symbol for the 7474. It is important to note
that the small triangle at the C1 input to the device is the
standard notation to indicate that it is positive edge triggered.
" Note that the asynchronous preset and clear signals override
the clocked operation of the circuit.
" When both CLR and PRE are inactive (high), the clock, CLK,
takes control of the device.
" While CLK is low, the flip-flop is in the hold mode. However, on
a 0 to 1 transition of the clock the data input D is transferred to
the flip-flop output Q.
SN7474 dual positive-edge-triggered D Flip-Flop
J K Q(t+1)
JK 00 01 11 10
0 0 Q(t) Q
0 1 0 0 0 0 1 1
1 0 1 1 1 0 0 1
1 1 Q(t)'
characteristic equation
Dual JK - FF
Pulse-Triggered JK Flip-Flop Realization
Logic symbol
Logic diagram
7476 Dual Pulse-triggered JK Flip-Flop Module
" shows the logic symbol of the 7476. This device packages two
flip-flops that operate in the manner displayed
T 0 1
Q
T Q(t+1)
0 0 1
0 Q(t)
1 1 0
1 Q(t)'
Q(t+1) = TQ(t)' + T'Q(t) = T Q(t)
characteristic equation
Clocked T Flip-Flop
Functional equivalent
Logic symbol
Excitation Table for Clocked T Flip-Flops
Q* = TQ + TQ
Figure 6.36
8. Master Slave JK Flip Flop
D Q(t+1) = D
T Q(t+1) = T Q(t)
Q(t) Q(t+1) D T SR JK
0 0 0 0 0x 0x
0 1 1 1 10 1x
1 0 0 1 01 x1
1 1 1 0 x0 x0
9. Synchronous and Asynchronous Counters
1 T Q T Q T Q
Clock MSB of count
Q Q Q
Q0 Q1 Q2
" Q0 toggles on every 0 $ 1 clock edge
" Q1 toggles on every 1 $ 0 transition of Q0
" Q2 toggles on every 1 $ 0 transition of Q1
" Synchronous Counters
clock cycle Q2 Q1 Q0
0 0 0 0
1 0 0 1
2 0 1 0 T0 = 1 always toggle
3 0 1 1 T1 = Q0 toggle when Q0 = 1
T2 = Q1Q0 toggle when Q1Q0 = 1
4 1 0 0
T3 = Q2Q1Q0 toggle when Q2Q1Q0 = 1
5 1 0 1 …
6 1 1 0
7 1 1 1
8 0 0 0
Binary Synchronous Counter
Mod-11 Counter using 74x163
Decade Counter
Parallel output
Q3 Q2 Q1 Q0
D Q D Q D Q D Q
Q Q Q Q
Parallel input
Clock
serial in/out access
Shift Registers-Types
Shift Registers-Types
Shift Registers-MSI circuits
" 74194 Bi-Directional Shifter