TEAHLAB NEW ADDITION
BUILD. SAVE. SHARE.
The world's first and only Integrated Simulator Community.

The Basic RS Nor Latch

The interactive Basic RS Nor Latch digital logic circuit, with Boolean function and truth table.
Click on the board to energize the circuit.VHDL Program
Watch Short Film
TRUTH TABLE
Input Output Comment
S R Q not-Q
0 0 Latch Latch
0 1 0 1
1 0 1 0
1 1 Invalid Invalid

FEEDBACK SEQUENTIAL CIRCUIT INTRODUCTION

Digital logic systems have been divided into two main categories: combinational circuits, and feedback sequential circuits. A combinational circuit is a circuit whose output can be determined from its inputs. Examples from this group are Half-Adders, Decoders, Multiplexers, and the basic gates. If I tell you the inputs of an AND gate, for instance, you can readily tell me the output. Feedback sequential circuits, on the other hand, are a bit fancier than that. The output of a feedback sequential circuit depends not only on the inputs but also on the given state (or condition) of the circuit. Before we continue, however, let’s take a short break here for a story.

The Boolean Function

Whenever someone asks you to analyze an object, they will give you the object; otherwise, you couldn’t verify anything. I can’t verify that your pizza is too small to share if you won’t show it to me. Hence, your professor will give you the circuit you need to analyze. As such, that is since we already have the circuit, the easiest thing to do is get the Boolean function.

To get the Boolean function, we are going to adopt a nice little technique that will allow us to treat all multivibrators — including this SR Latch — like a combinational circuit. Our technique is illustrated in figure 1 below, where we break the feedback loops into individual outputs and inputs. We use lower case q to represent the given condition (or given state) of the circuit while the upper case Q refers to the output you will get based on how you select R and S.

SR Nor Latch image

Figure 1

From figure 1 we can readily get two equations:

Q = (R + not-q)’

not-Q = (S + q)’.

if you are taking an exam and you are running out of time, the two expressions will suffice to show your professor that you get it. Nonetheless, it is customary to present the characteristic equation of any latch or flipflop as a solution of Q in terms of q. so let’s follow the tradition:

Q = (R + not-q)’
Q = (R + not-Q)’ after substituting for not-q = not-Q
Q = (R + (S + q)’)’ after substituting for not-Q = (S + q)’
Q = R’ • (S + q) after simplifying the double negatives
Q = R’ • S + R’ • q after expanding

Voila! The solution of Q in as a function of q!

That was question three on the list. Now we can answer question two: what are the possible transitions.

The State Transition Table

A state transition table is a table that shows how a circuit moves between states. From the characteristic equation we see that we have one state variable, q, and two input variables, R and S. Therefore, since each variable in Boolean logic can have two possible values, we can say with certitude that the set-reset latch has two possible states (q = 0; q = 1) and four possible input conditions (RS = 00; RS = 01; RS = 10; RS = 11). On that account, we can now create a table that shows the relationship between the two states and the four input conditions. Accordingly we label the rows of the table by states and the columns by input conditions. And we call the table a state transition table. Table 2 below shows what I am talking about.

Given state
q
Input Condition
RS=00 RS=01 RS=10 RS=11
0
1

Table 2


So far our table is empty. We will fill the table by evaluating Q for each combination of given state and input condition. For example, the value of Q when q = 0 and RS = 00 is
Q = R’ • (S + q)
= 0’ • (0 + 0)
= 1 • (0 + 0)
= 1 • (0)
= 0.

Accordingly we put 0 in the cell where q =0 intersects with RS = 00, as shown in Table 3.

Given state
q
Input Condition
RS=00 RS=01 RS=10 RS=11
0 0
1

Table 3

Without showing all the evaluations, I fill the state transition table for you in Table 4. Feel free to check that my calculations are correct.

Given state
q
Input Condition
RS=00 RS=01 RS=10 RS=11
0 0 1 0 0
1 1 1 0 0

Table 4

Table 4 effectively answers question two, which asked about the relationship between the input conditions and the states of the circuit. Because tables are not always intuitive, however, an easy to understand diagram, called a state diagram, is usually submitted as part of an analysis. The diagram, figure 2, has the same information as the transition table. But as you can see, the state diagram is the simplest method to show how a circuit behaves — after all it is a picture.

Figure 2

Teahlab on LinkedIn     Teahlab on Facebook