Powered By

Skin Design:
Free Blogger Template

Powered by Blogger

Tuesday, June 8, 2010

The D Latch and the D flip-flop

It is possible to create a latch which has no race condition, simply by providing only one input to a RS latch, and generating an inverted signal to present to the other terminal of the latch. In this case, the S and R inputs are always inverted with respect to each other, and no race condition can occur. The circuit for a D latch is shown in Figure 2.7.

Figure 2.7:
\begin{figure}\begin{center} \begin{picture}(600,210) \par \put(50,0){ \begin{pi... ...$\overline{Q}$}} \end{picture}} \par \end{picture}\end{center} \par \end{figure}

The D latch is used to capture, or ``latch'' the logic level which is present on the Data line when the clock input is high. If the data on the $D$ line changes state while the clock pulse is high, then the output, $Q$, follows the input, $D$. This effect can be seen in the timing diagram, Figure 2.8 (a).

The D flip-flop, while a slightly more complicated circuit, performs a function very similar to the D latch. In the case of the D flip-flop, however, the rising edge of the clock pulse is used to ``capture'' the input to the flip flop. This device is very useful when it is necessary to ``capture'' a logic level on a line which is very rapidly varying. Figure 2.8 (b) shows a timing diagram for a D-type flip-flop. This type of device is said to be ``edge triggered'' -- either rising edge triggered (i.e. a 0-1 transition) or falling edge triggered (i.e., a 1-0 transition) devices are available.

Figure 2.8:
\begin{figure}\begin{center}\setlength{\unitlength}{0.14mm} \begin{picture}(1... ...{\makebox(0,0)[l]{(b) The D flip flop}} } \end{picture}\end{center} \end{figure}

Both the D latch and D flip-flop have the following truth table:


$\overline{Preset}$ $\overline{Clear}$ Clock D Q $\overline{Q}$
0 1 x x 1 0
1 0 x x 0 1
0 0 x x 1 1
1 1 $\uparrow$ or 1 0 0 1
1 1 $\uparrow$ or 1 1 1 0
1 1 0 X $Q_0$ $\overline{Q_0}$


The symbol $\uparrow$ means a leading edge, or $0-1$ transition as the clock input to the flip flop. For a D latch, it would be the level 1.


source : http://web.cs.mun.ca/~paul/cs3724/material/web/notes/node13.html

1 komentar:

Anonymous said...

Great ρost. I uѕed to bе cheсking contіnuοusly this weblog
and I am impresseԁ! Extгеmely
hеlрful info ѕpесially the remaining phase :
) Ӏ takе care of such informatіon much.
I wаs seeking thіs paгticular infο foг a long tіme.

Thаnκ you and best of luсκ.

my web-sitе; Espaceface.Com

Post a Comment

Thank you for visiting our blog. please leave comments, complaints, criticisms, suggestions, or you're looking for in the box bellow. And do not be bored to visit our blog