Need help to double check in this timing diagram of a latch

kafor1

Oct 4, 2024
2
Joined
Oct 4, 2024
Messages
2
Hello guys, i wanted to know if my answer to this assignment is correct. And i also wanted to know what is the function of this circuit. I tried searching for answers but to no avail i couldn't find it. Help is appreciated. Many thanks
 

Attachments

  • latch.png
    latch.png
    67.3 KB · Views: 14
  • latch2.png
    latch2.png
    72 KB · Views: 13

Harald Kapp

Moderator
Moderator
Nov 17, 2011
14,273
Joined
Nov 17, 2011
Messages
14,273
i wanted to know if my answer to this assignment is correct.
For the first part: your timing diagram looks correct. Only you could have drawn the edges on the "C" signal also slewed as on "A", but that is a minor thing as the "S" signal also is not slewed.
i also wanted to know what is the function of this circuit.
That would be the answer to the second part of the assignment. Our policy is not to directly answer homework questions.
Here's a hint: consider "S" as a clock signal, then compare input "A" and output "C". This circuit is a fairly standard circuit and you should be able to find the answer with this information at hand.
 

AnalogKid

Jun 10, 2015
3,046
Joined
Jun 10, 2015
Messages
3,046
Your drawing shows B changing state in-between the S clock edges. Assuming that the flipflops are standard clocked devices, not transparent latches, this is incorrect.

Actually . . . The S signal is shown going into an "en"able input, not a clock input. This implies that the devices are transmission gates, not flipflops. While I think this is just a case of a sloppy question, you might want to get some clarification on this before committing to an answer. Or preface your answer with a big IF.

ak
 
Last edited:

Harald Kapp

Moderator
Moderator
Nov 17, 2011
14,273
Joined
Nov 17, 2011
Messages
14,273
Assuming that the flipflops are standard clocked devices, not transparent latches, this is incorrect.
As there is only an /EN or EN input, respectively, these elements are latches, not flipflops. I take it the idea of this assignment is to make the student aware of the difference between a latch and a flipflop.
'nough said - to keep me from solving the task ;)
 

kafor1

Oct 4, 2024
2
Joined
Oct 4, 2024
Messages
2
For the first part: your timing diagram looks correct. Only you could have drawn the edges on the "C" signal also slewed as on "A", but that is a minor thing as the "S" signal also is not slewed.

That would be the answer to the second part of the assignment. Our policy is not to directly answer homework questions.
Here's a hint: consider "S" as a clock signal, then compare input "A" and output "C". This circuit is a fairly standard circuit and you should be able to find the answer with this information at hand.

As there is only an /EN or EN input, respectively, these elements are latches, not flipflops. I take it the idea of this assignment is to make the student aware of the difference between a latch and a flipflop.
'nough said - to keep me from solving the task ;)
yeah i actually agree, i was going to write master slave d flip flop configuration but i changed my mind seeing the enable input was used. what i wrote is 2 transparent latches in series. all in all i think my answer in the timing diagram is correct, not yet checked by the teacher but my gut tells me it is correct.
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
14,273
Joined
Nov 17, 2011
Messages
14,273
So what is the difference between a "master slave flipflop" and "two transparent latches in series"? Or is there any difference at all? Note that the enable inputs are complementary on the two latches.
 
Top