Lecture 29 30
Lecture 29 30
Lecture 29 30
Lecture 29
Outline
• Design of Sequential Circuits
– Design with D Flip Flop
– Excitation Table
– Design with JK Flip Flop
– Design with T Flip Flop
11 10
1/0
1/1
B = DB = Ax + B’x
Q = 0; Q(t+1) = 1 Q = 1; Q(t+1) = 1
Q’ = 1, K’Q = 0 Q’ = 0, JQ’ = 0
J must be 1, K can be 0 or 1 K must be 0, J can be 0 or 1
Q = 0; Q(t+1) = 1 Q = 1; Q(t+1) = 1
T must be 1 T must be 0
Lecture 30
Outline
• Registers
– Registers with Parallel Load
• Shift Registers
– Serial Transfer
– Serial Addition
– Comparison of Serial and Parallel Adder
transferred to register
• The outputs A0, A1, A2 and A3 can be sampled I2 D A2
any time >R
• The clear_b input is active low
– When connected to logic 1 the register performs
I3 D A3
normal operation
– When connected to logic 0 it clears all the bits >R
(make all the output bits equal to 0)
Serial SI SO Serial
D D D D Output
Input
>C >C >C >C
Clk
CLK CLK
Clock
Shift CLK
Control
Numerical example is
on next slide
Initial Values 1 0 1 1 0 0 1 0 - - - - - 0
After T1 1 1 0 1 0 0 1 1 0 0 1 0 0
After T2 0 1 1 0 0 0 1 1 0 0 1 1
After T3 1 0 1 1 0 0 0 1 1 0 0
After T4 1 1 0 1 1 0 0 1 0 0
JQ = xy
KQ = x’y’ = (x + y)’
S=xyQ
EE1005 - DLD Course Instructor : Muhammad Sajid Iqbal 40
Serial Addition with JK Flip Flop (2/2)
JQ = xy KQ = (x + y)’ S=xyQ
A3 A2 A1 A0
Q Q Q Q
Clear_b
^ D ^ D ^ D ^ D
Clock
S1 y y y y
S0 4x1 MUX 4x1 MUX 4x1 MUX 4x1 MUX
3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0
Serial Input
Shift Right I0
I3 I2 I1
Parallel Inputs Serial Input
EE1005 - DLD Shift Left 46
Course Instructor : Muhammad Sajid Iqbal
Practice Problem 1
• Draw the logic diagram of a four‐bit register
with four D flip‐flops and four 4 × 1
multiplexers with mode selection inputs S1
and S0. The register operates according to
the following function table.
S1 S0 Register Operation
0 0 No change
0 1 Complement the four outputs
1 0 Clear register to 0 (synchronous with the clock)
1 1 Load parallel inputs