So right now, we're going to talk about those flip flops that we have talked about in the introduction,
and the flip flop is similar to a sludge and it's basically an allege that it has some improvement on
the circuitry.
So it let's get started.
This is our research.
And if we add to and get to it like this.
And we add some enabled button to it, we're going to have a similar function of the action.
So right now.
We have added this enabled, so we need enabled to be activated in order to activate the reset or reset.
This can be useful in many cases, as you were going to see.
Now, as you can see, when enable is zero.
Well, these two and gates cannot output anything.
So whatever you put on your or on your --, it doesn't really matter because you need to enable to
be on in order to get anything here or here.
So whenever and as always, zero and enabled is also zero.
We are retaining our state.
How about we reduce this and we use only one input for it, and we said that actually possible?
If we just take out this and this and we shot them together.
And then we add another gate like that, we're going to have the same functionality as well.
No, if we try to set this, what we're going to have is as long as the enablers activated and we have
a one here, we're going to be setting because, look, the one here is going to come all the way and
it's going to get inverted on this site.
That's a great.
So this is my said operation and we are already having a one zero.
Remember, said is when we have a one zero right now.
If I want a reset, I would write zero here and this zero will come and get inverted.
So we have a zero one.
And remember, zero one is for with it.
So we are still having the same functionality right here.
And at the same time we have eliminated the not allowed the state.
Remember, they're not allowed happens when we have one on set and one on recent, one on S and one
on all.
But right now, since we have this inversion, if we try to put zero, let's say on the on this line
right here, it's going to come here and invert to one.
So we always have zero one or one zero coming on these two lines right here, which means we can never
put one one on these two lines and hence we have prevented not allowed state.
Now, we call this the flip flop, a level detection, the flip flop.
And we're going to see why it's called level detection.
And the advantage of having this enabled signal at all is that sometimes we want to store data at a
certain moment and not all the time.
Right?
I mean, if we don't have that enable, this means that whatever some signal comes to set or reset it
state is going to change.
Well, sometimes we want this set and reset to change only when there is a visible signal because maybe
there is some random noise on the set of the reset or maybe this set and reset signal is coming to multiple
flip flops.
And we want the signal to go to only a certain flip flop.
So we enable it and then the signal will go to.
So when enable is zero and we have one a D, well, it doesn't matter.
The cure will not change anything and the state will stay the same.
However, if I enable it, well, the will go to the queue.
So it's like a small gate.
And it will retain its value, of course, so it's like a small memory type of gate.
Now, this enabled we're going to replace the place with what we call a clock, and we're going to see
how important the clock and synchronized design.