The table in the bottom image is the solution for an exercise based on a NAND SR flip-flop.
"Complete the truth table for the SR flip-flop."
The "initially" row is given, and I was supposed to fill in the q and Q-bar values for the remaining rows. I don't understand the solution - why does changing S to 0 result in Q switching to 1? And why does switching S and R to 0 result in Q = 1 and Q-bar = 1?
From my very limited understanding so far in this topic, I would have thought that applying 0 to S would leave Q and Q-bar unchanged, as S stands for "set" and we are not applying a current.
Any help much appreciated.
Solution: