Solving SR Latch: Get 2nd Input from NOR Gates

  • Thread starter Thread starter whitehorsey
  • Start date Start date
  • Tags Tags
    Sr
Click For Summary

Discussion Overview

The discussion revolves around the functioning of an S-R latch, particularly focusing on the inputs to the NOR gates and the implications of different input states. Participants explore the behavior of the latch under various conditions, including the scenario where both inputs are set to 1.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants question how to determine the second input for the NOR gates in an S-R latch when one input is set to 1.
  • It is noted that when S and R are both 0, the outputs Q and ¬Q are stable and complementary.
  • One participant states that the second input could be ¬Q, but its state does not affect the output of the NOR gate.
  • Another participant explains the step-by-step behavior of the latch when S=1, detailing how the outputs change based on the inputs.
  • There is a discussion about the undefined state when both S and R are set to 1, with participants trying to clarify the implications of this condition.
  • One participant presents a truth table for the S-R latch, outlining the outputs based on different combinations of S and R.

Areas of Agreement / Disagreement

Participants express differing views on the significance of the second input to the NOR gate and the implications of having both S and R set to 1. The discussion remains unresolved regarding the specific outputs and states in these scenarios.

Contextual Notes

Some assumptions about the behavior of the NOR gates and the definitions of stable states are not fully articulated, leading to potential ambiguity in the discussion.

whitehorsey
Messages
188
Reaction score
0
1. http://forum.allaboutcircuits.com/image_cache/httpwww.cs.nyu.educoursesfall00V22.0436001lecturesfigssrlatch.png

Using this image, how would you get the second input if the second input has to come from the output of the nor gates?
 
Last edited by a moderator:
Physics news on Phys.org
whitehorsey said:
Using this image, how would you get the second input if the second input has to come from the output of the nor gates?
I don't understand what you are asking? Do you even understand what you are asking? :confused:

The S-R latch is a basic memory cell. S and R cannot* both simultaneously be TRUE. Provided only one of R and S is TRUE, this forces the cell to take up one of two stable memory states. When that input returns to FALSE, meaning both inputs are now FALSE, the cell remembers that last state.

Now, what was your question? http://imageshack.us/a/img402/3247/undecidedg.gif
 
Last edited by a moderator:
NascentOxygen said:
I don't understand what you are asking? Do you even understand what you are asking? :confused:

The S-R latch is a basic memory cell. S and R cannot* both simultaneously be TRUE. Provided only one of R and S is TRUE, this forces the cell to take up one of two stable memory states. When that input returns to FALSE, meaning both inputs are now FALSE, the cell remembers that last state.

Now, what was your question? http://imageshack.us/a/img402/3247/undecidedg.gif

Ah my question is because the nor gate needs two inputs what is the other input the one that belongs to the criss crossed line. So if S = 1 what is the other input that is going into the nor gate with it?
 
Last edited by a moderator:
whitehorsey said:
So if S = 1 what is the other input that is going into the nor gate with it?

It doesn't matter. The result out of the NOR gate will be zero.

When S and R are both zero, the output is in a stable state with Q and /Q being complements of each other. If for some reason Q and /Q are the same (both 1 or both 0), the state immediately changes to 1/0 with the fastest NOR gate deciding which will be 1 and which will be 0.
 
whitehorsey said:
Ah my question is because the nor gate needs two inputs what is the other input the one that belongs to the criss crossed line. So if S = 1 what is the other input that is going into the nor gate with it?

The second input is ¬Q. Maybe it's 1, maybe it's 0. Try both, one at a time.
 
Ah my question is because the nor gate needs two inputs what is the other input the one that belongs to the criss crossed line. So if S = 1 what is the other input that is going into the nor gate with it?

The short answer is that the other input is Q but its state doesn't matter.

Longer answer...

So you asked what happens with S=1... Follow it around the circuit step by step...

If S=1 then Qbar = 0 whatever the other input is. Draw the truth table for a NOR gate.

Then if R=0 the inputs to the top gate are R=0 and Qbar=0 so the output Q=1.

If Q=1 then the two inputs at the lower gate are S=1 and Q=1 so the output Qbar = 0

If you then set S back to 0 the circuit will stay ("remember") Q=1 and Qbar=0. That's why S stands for "Set". It sets Q=1.

By symetry if you pulse R from 0 to 1 and back you get Q=0, and Qbar = 1 which is why R stands for "Reset".

So the truth table is...

RS Q Qbar
------------
00 Q and Qbar remember their state
01 Q=1, Qbar=0
10 Q=0, Qbar=1

It is possible to have RS=11 in which case Q=0 and Qbar=0 but if RS change back from 11 to 00 at exactly the same time you can't predict how Q and Qbar will end up. If they change at different times the last one remaining at logic 1 "wins".
 
CWatters said:
The short answer is that the other input is Q but its state doesn't matter.

NascentOxygen said:
The second input is ¬Q. Maybe it's 1, maybe it's 0. Try both, one at a time.

aralbrec said:
It doesn't matter. The result out of the NOR gate will be zero.

When S and R are both zero, the output is in a stable state with Q and /Q being complements of each other. If for some reason Q and /Q are the same (both 1 or both 0), the state immediately changes to 1/0 with the fastest NOR gate deciding which will be 1 and which will be 0.

Thank You for your responses! So then I tried working on some practice problems I found on the internet but there's one that I'm stuck on.

219ubzb.jpg


E Qt St Rt Qt+1
0 0 0 0 Qt
...
1 0 0 0 0
1 0 1 1 undefined
1 0 1 0 1
1 1 0 0 Qt In this problem, you have to solve for Qt+1.
The answers I got was Qt whenever the Enable was equal to 0. I also got Qt with the second one and fourth and fifth one. Yet, the second one is equal to 0, the fourth one is equal 1 and the fifth one is equal to Qt. (Answers that came with this problem) Why is that?Also, just to make sure if I understand a part about SR Latch is that whenever S and R = 1 the state would always be undefined?
 
whitehorsey said:
Also, just to make sure if I understand a part about SR Latch is that whenever S and R = 1 the state would always be undefined?
Precisely what state are we talking about?

If your question involves what are the gates' outputs when S=R=1, then you should be able to work that out. What is the output of any NOR gate when an input equals 1?

Maybe your question is about something else?
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
20
Views
4K
Replies
15
Views
3K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 18 ·
Replies
18
Views
8K
  • · Replies 2 ·
Replies
2
Views
6K
Replies
4
Views
6K