next up previous contents index

[ENGN3213 Home]

The SR Latch

A good place to start is with the SR latch, and see how it can in principle be constructed using feedback and combinational elements.

   

Figure 53 shows a set latch, i.e. a latch which can only be set.


  
Figure 53: Setting a set latch.
\begin{figure}
\begin{center}
\epsfig{file=images/seqimg2.eps}\end{center}\end{figure}

When S is set to 1, this logical value is transferred to the output Q (after a non-zero propagation delay). The output is fed back to the input of the OR gate, so if S is now reset to 0, the gate remains set at 1. This latch can be set, but not reset.

Similarly, Figure 54 shows a reset latch, which can only be reset.


  
Figure 54: Reset latch.
\begin{figure}
\begin{center}
\epsfig{file=images/seqimg3.eps}\end{center}\end{figure}

Describe for yourself the operation of this circuit.

In general we need a latch which can both be set and reset. We consider two designs.

  Figure 55 shows a NAND-based SR latch.


  
Figure 55: NAND-based SR latch.
\begin{figure}
\begin{center}
\epsfig{file=images/seqimg4.eps}\end{center}\end{figure}

Note the double feedback. Like the latches above, this SR latch has two states:

\begin{displaymath}Q = 0 \ \ \ {\rm or} \ \ \ Q =1
\end{displaymath}

The operation table for this NAND based latch is as follows:

S R Qt+ Zt+ mode
0 0 Qt Qt HOLD
0 1 0 0 RESET
1 0 1 1 SET
1 1 1 0 AMBIGUOUS

Here, Qt refers to the current state value, and Qt+ refers to the next state value.

In terms of equations,

\begin{displaymath}\begin{array}{rl}
Q_{t+} & = S + \overline{R} Q_t \\
Z_{t+} &= \overline{R}(S + \overline{R} Q_t)
\end{array}\end{displaymath}

This circuit is set dominant, since S=R=1 implies Q=1.

Note that Q=Z except when S=R=1.

  If we disallow the input combination S=R=1, then the outputs Q and Z are called mixed rail, meaning that they are logically identical but are of opposite activation level.

So if we adopt the convention of disallowing S=R=1, we can draw the NAND-based SR latch as in Figure 56.


  
Figure 56: NAND-based SR latch, S=R=1 disallowed.
\begin{figure}
\begin{center}
\epsfig{file=images/seqimg5.eps}\end{center}\end{figure}

The state transition table for the NAND-based SR latch is as follows:

$Q_t \to Q_{t+}$ S R
$0 \to 0$ 0 $\phi$
$0 \to 1$ 1 $\phi$
$1 \to 0$ 0 1
$1 \to 1$ 1 $\phi$ or
  $\phi$ 0

State transition tables are useful for state machine synthesis. The right two columns tell you the inputs required to effect the state transition in the right column.

  Figure 57 shows a NOR-based SR latch.


  
Figure 57: NOR-based SR latch.
\begin{figure}
\begin{center}
\epsfig{file=images/seqimg6.eps}\end{center}\end{figure}

The NOR-based SR latch is reset dominant, as can be seen from its operation table:

S R Qt+ Zt+ mode
0 0 Qt Qt HOLD
0 1 0 0 RESET
1 0 1 1 SET
1 1 0 1 AMBIGUOUS

In terms of equations,

\begin{displaymath}\begin{array}{rl}
Q_{t+} &= (S + Q_t) \overline{R} \\
Z_{t+} & = S + \overline{R}(S + Q_t)
\end{array}\end{displaymath}

This the outputs Q and Z are also mixed rail if we exclude the input combination S=R=1.

The state transition table for the NOR-based SR latch is:

$Q_t \to Q_{t+}$ S R
$0 \to 0$ 0 $\phi$ or
  $\phi$ 1
$0 \to 1$ 1 0
$1 \to 0$ $\phi$ 1
$1 \to 1$ $\phi$ 0

In summary, we see that an SR latch can be implemented in two ways, using either NAND gates or NOR gates.

The basic features of the SR latch (independent of implementation) are as follows.

Operation table:

S R Qt+ mode
0 0 Qt HOLD
0 1 0 RESET
1 0 1 SET
1 1 - INVALID
State transition table:
$Q_t \to Q_{t+}$ S R
$0 \to 0$ 0 $\phi$
$0 \to 1$ 1 0
$1 \to 0$ 0 1
$1 \to 1$ $\phi$ 0

The standard circuit symbol for the SR latch is given in Figure 58.


  
Figure 42: SR latch.
\begin{figure}
\begin{center}
\epsfig{file=images/seqimg7.eps}\end{center}\end{figure}


next up previous contents index

[ENGN3213 Home]

ANU Engineering - ENGN3213