2. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
22 // 2288
RReeggiisstteerrss
Group of D Flip-Flops
Synchronized (Single Clock)
Store Data
D Q
R
I0
I1
I2
I3
Reset
D Q
R
D Q
R
D Q
CLK R
A0
A1
A2
A3
3. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
33 // 2288
RReeggiisstteerrss
D Q
R
I0
I1
I2
I3
Reset
D Q
R
D Q
R
D Q
CLK R
A0
A1
A2
A3
CLK
I3
I2
I1
I0
A3
A2
A1
A0
NNoottee: New data has to go in
with every clock
4. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
44 // 2288
RReeggiisstteerrss wwiitthh PPaarraalllleell LLooaadd
Control LLooaaddiinngg the Register with New Data
REGISTER
D7
D6
D5
D4
D3
D2
D1
D0
Q7
Q6
Q5
Q4
Q3
Q2
Q1
QLD 0
LD Q(t+1)
0 Q(t)
1 D
5. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
55 // 2288
RReeggiisstteerrss wwiitthh PPaarraalllleell LLooaadd
Should we block the “Clock” to keep the “Data”?
D Q
Delays
the
Clock
CLK
I0 A0
I D Q 1 A1
I D Q 2 A2
I D Q 3 A3
Load
REGISTER
D7
D6
D5
D4
D3
D2
D1
D0
Q7
Q6
Q5
Q4
Q3
Q2
Q1
QLD 0
6. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
66 // 2288
RReeggiisstteerrss wwiitthh PPaarraalllleell LLooaadd
Circulate the “old data”
D Q
I MUX 0
I1
CLK
I0
A0
I D Q 1
A1
I D Q 2
A2
I D Q 3
A3
Load
Y
S
I MUX 0
I1
Y
S
I MUX 0
I1
Y
S
I MUX 0
I1
Y
S
7. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
77 // 2288
SShhiifftt RReeggiisstteerrss
4-Bit Shift Register
Serial
Input Serial
Output
D Q D Q D Q D Q
CLK
SI SO
8. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
SI SO
88 // 2288
SShhiifftt RReeggiisstteerrss
D Q D Q D Q D Q
CLK
CLK
SI
Q3
Q2
Q1
Q0
Q3 Q2 Q1 Q0
9. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
99 // 2288
SSeerriiaall TTrraannssffeerr
SI Shift Register A SO SI Shift Register B
Clock
Shift
Control
Shift
Control
CLK CLK
Clock
CLK
10. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
1100 // 2288
SSeerriiaall AAddddiittiioonn
FA
Shift Register A xyz
SC
Q D
CLR
Shift
Control
CLK
Clear
Shift Register B
SI
11. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
1111 // 2288
UUnniivveerrssaall SShhiifftt RReeggiisstteerr
Parallel-in Parallel-out
Serial-in Serial-out
Serial-in Parallel-out
Parallel-in Serial-out
D Q D Q D Q D Q
12. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
1122 // 2288
UUnniivveerrssaall SShhiifftt RReeggiisstteerr
Q3 Q2 Q1 Q0
Q
D
Q
D
Q
D
Q
D
S Y 1
S0
MUX
I3 I2 I1 I0
D1
CLR
CLK
S1
S0
D0 D2 D3
SI
for
SR
SI
for
SL
27. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
2277 // 2288
HHoommeewwoorrkk
6-2 Include a synchronous clear input to the “Register with
Parallel Load”. The modified register will have a parallel
load capability and a synchronous clear capability. The
register is cleared synchronously when the clock goes
through a positive transition and the clear input is equal
to 1.
6-3 What is the difference between serial and parallel
transfer? Explain how to convert serial data to parallel
and parallel data to serial. What type of register is
needed?
28. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
2288 // 2288
HHoommeewwoorrkk
6-4 The content of a 4-bit register is initially 1101. The
register is shifted six times to the right with the serial
input being 101101. What is the content of the register
after each shift?
6-13 Show that a BCD ripple counter can be constructed using
a 4-bit binary ripple counter with asynchronous clear and
a NAND gate that detects the occurrence of count 1010.
6-14 How many flip-flop will be complemented in a 10-bit
binary ripple counter to reach the next count after the
following count:
(a) 1001100111
(b) 0011111111
(c) 1111111111
29. PPrriinncceessss SSuummaayyaa UUnniivveerrssiittyy 44224411 –– DDiiggiittaall LLooggiicc DDeessiiggnn CCoommppuutteerr EEnnggiinneeeerriinngg
DDeepptt..
2299 // 2288
HHoommeewwoorrkk
6-16 The BCD ripple counter has four flip-flops and 16 states,
of which only 10 are used. Analyze the circuit and
determine the next state for each of the other six unused
states. What will happen if a noise signal sends the circuit
to one of the unused states?
6-18 What operation is performed in the up-down counter
when both the up and down inputs are enabled? Modify
the circuit so that when both inputs are equal to 1, the
counter does not change state, but remains in the same
count.