Docsity

Potential Problems - Components and Techniques for Digital Systems - Solved Quiz, Exercises of Computer Science

Toggle sidebar
bg1
Department of Electrical Engineering and Computer Science
EECS 150
Fall 2000
Solution Set # 5
1. In lecture, we briefly presented a design for a negative edge-triggered D flip-flop.
(a) Create a timing diagram that illustrates the potential problems that happen when the data input D
changes (too) close to the falling edge. That is, illustrate a situation in which the input change is
not latched by the flip-flop.
CLK
D
Q
D transitions too close to the falling edge, and the high value is not latched. The D input is seen only after
another falling edge occurs.
(b) Modify the design of the flip-flop to make it positive edge-triggered. Include a timing waveform
that illustrates how your flip-flop implementation works.
Q
CLK
Q’
D
Docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Potential Problems - Components and Techniques for Digital Systems - Solved Quiz and more Exercises Computer Science in PDF only on Docsity!

Department of Electrical Engineering and Computer Science

EECS 150

Fall 2000

Solution Set # 5

  1. In lecture, we briefly presented a design for a negative edge-triggered D flip-flop. (a) Create a timing diagram that illustrates the potential problems that happen when the data input D changes (too) close to the falling edge. That is, illustrate a situation in which the input change is not latched by the flip-flop.

CLK

D

Q

D transitions too close to the falling edge, and the high value is not latched. The D input is seen only after another falling edge occurs.

(b) Modify the design of the flip-flop to make it positive edge-triggered. Include a timing waveform that illustrates how your flip-flop implementation works.

Q

CLK

Q’

D

CLK

D

Q

(c) Add to the negative edge-triggered flip-flop the inputs R (Reset) and S (Set). When the former is asserted, independent of the clock, the flip-flop state is forced to zero. When Set is asserted, the state is forced to one.

R

Q

CLK

Q’

S

D

(d) Modify your answer to part (c) so that the Rest and Set input only take effect on the falling edge of the clock.

An RS latch is made of two NOR gates that hold state when the inputs are 0. If Set transitions to 1 then it gets set. If it subsequently transitions back to 0 it is still set at 1. If the Set glitches and jumps to 1 and then back to 0 quickly the 1 will still be held by the latch. It catches the one even though it may be a quick transition.

A flipflop may catch zeros if it is made of NAND gates where 1’s will make the latch hold state and a zero will set the latch. If there is a glitch, the latch may catch a zero, therefore it is possible for a Master-Slave flip-flop to do “zeros catching.”

  1. The circuit shown below can be used as a debouncer. Once the switch is set to S, the output will become high. Then, even if the switch disconnects with S the output will keep its current value.

The timing diagram shown below shows the circuit’s behavior:

4a) Q+ = Q XOR T

Q T Q+ 0 0 0 0 1 1 1 0 1 1 1 0

4b) JK: T = JQ’ + KQ

J K Q Q+ T 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 1 1 0 0 1 1 1 0 1 1 0 1 1 0 1 1 1 1 1 0 1