1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Turning JKFF flip-flop into DFF

  1. Mar 25, 2012 #1

    Femme_physics

    User Avatar
    Gold Member

    1. The problem statement, all variables and given/known data
    I'm asked to turn JFKK to DFF. I am always puzzled by such problems. I decided to take it step by step and first draw the truth charts and black-boxes for each:

    http://img204.imageshack.us/img204/6189/jkffkk.jpg [Broken]

    I can see that in order to turn JKFF truth table to DFF, in line to I need it to be 00. But even if I attach NOT gate to K, then the first line no longer matches DFF truth table. I started looking at logic gates, but it appears no matter which change I make in one line I can't get all my lines to correspond. Can I get any hints?


    Another question I have is, am I only allowed to attach logic gates to J or K in such exercises, or can I do crazier things like attaching J to K?
     
    Last edited by a moderator: May 5, 2017
  2. jcsd
  3. Mar 25, 2012 #2
    If you attach not gate to K (from J input) only 2nd and 3rd lines from JKFF truth table will be possible states. Thus your DFF will work as expected.

    BTW, the 1st line of JKFF is wrong. It will be 0 0 Q Q'
    The 1st and 2nd lines of DFF will be 0 0 Q Q' and 0 1 Q Q'
     
  4. Mar 25, 2012 #3

    I like Serena

    User Avatar
    Homework Helper

    Create a new table.
    Start with your input CLK and D and fill it in.
    Then 2 columns for J and K. Leave them empty for now.
    And then a column for the expected output Q and fill that in too.

    Now how do you need to fill in the columns for J and K to get the output Q?

    If you have that, you can make a logic circuit to get J from CLK and D, and also one to get K from CLK and D.


    I like crazy. :biggrin:
    It won't help you here though. :yuck:
     
  5. Mar 25, 2012 #4
    If I may interrupt... With the given truth tables the discussion would be right. But maybe the D-FF is supposed to be edge-triggered, and it is precisely the edge-triggering logic that the OP is being asked to implement. Maybe.
     
  6. Mar 25, 2012 #5

    I like Serena

    User Avatar
    Homework Helper

    Good point.
    I didn't really think about that.

    Still, I think the method will still work if we interpret each value for CLK in the table as being different from the one before.
     
  7. Mar 25, 2012 #6
    The JK flip flop is a clocked device. Look up the 7476 for example. The problem is a lot easier if you assume this.
     
  8. Mar 30, 2012 #7

    Femme_physics

    User Avatar
    Gold Member

    Last edited by a moderator: May 5, 2017
  9. Mar 31, 2012 #8

    I like Serena

    User Avatar
    Homework Helper

    Yes.

    If J and K are always the same, which possibilities do you have for the combination of J and K?
     
  10. Mar 31, 2012 #9

    Femme_physics

    User Avatar
    Gold Member

    00 and 11

    so 00 = No change
    11 = Flips values

    Same as DFF
     
  11. Mar 31, 2012 #10

    I like Serena

    User Avatar
    Homework Helper

    Yep.

    There is no input to DFF that flips Q.
    So this is not the solution to your problem.
     
  12. Mar 31, 2012 #11

    Femme_physics

    User Avatar
    Gold Member

    Are you telling me my teacher was wrong?
     
  13. Mar 31, 2012 #12

    I like Serena

    User Avatar
    Homework Helper

    I do not know what your teacher told you or what he meant.

    Apparently he told you to connect the J and K inputs, which is something you can do.
    However, it does not generally turn JFKK into DFF.
    You need more to do something like that.
     
  14. Mar 31, 2012 #13

    I like Serena

    User Avatar
    Homework Helper

    I just looked up JK flipflop and realized that it has a 3rd input: the clock pulse.

    Both JF and D flipflops only change state on a clock pulse trigger.

    It means you can ignore the clock pulse trigger and look only at the D-input.
    You need to turn the D-input into J and F inputs.

    So you need a truth table with only D-input, show intermediary J and K inputs, and end up with a Q-output.

    It means a slight tweak to the solution your teacher gave you.
     
  15. Mar 31, 2012 #14

    Femme_physics

    User Avatar
    Gold Member

    ILS -- can you confirm this?

    ...and as far as what you said:...


    Don't you mean the other way around? After all, I'm turning JKFF to DFF.
     
  16. Mar 31, 2012 #15

    I like Serena

    User Avatar
    Homework Helper

    Your lines are not wrong.
    What Kholdstare says is the same as what you already have.
    I think he misinterpreted the NC entries.

    For instance, he meant that the 1st line of JFKK should be ##0\ 0\ Q\ \overline{Q}##.
    But this is the same as ##0\ 0\ NC\ NC##.


    I'm interpreting this that you try to build a DFF from a JKFF flipflop.
    That is, you get a D-input, try to connect it to a JKFF somehow, and try to get the related DFF output.
    Did you mean it differently?
     
  17. Mar 31, 2012 #16
    the value of clk doesn't generally get included in a truth table, because the operation of a clocked flip flop is not dependent on its value, rather on its edge. a truth table for a clocked device is generally supposed to be interpreted as "what happens when you get a triggering edge on clk"

    flipjk_tab.jpg


    flipd_tab.jpg

    those two images are easier to work from, and you can see that the D output matches the jk output for two specific cases, D = 1 matches J = 1,K = 0, and D = 0 matches J = 0, K = 1.

    with that information, can you see the combinational logic circuit required to take D as input, and J, K as output?

    edit: just noticed that clk is included in the t-tables i posted, despite me saying that they shouldn't be there. all that entry is showing is that this is only valid for a rising edge on clk, and since they all have it, the conclusion is that without a rising edge nothing happens...
     
  18. Mar 31, 2012 #17

    Femme_physics

    User Avatar
    Gold Member

    Oh, yes! I think I finally get the picture here:


    http://img7.imageshack.us/img7/9407/notqid.jpg [Broken]
     
    Last edited by a moderator: May 5, 2017
  19. Mar 31, 2012 #18

    I like Serena

    User Avatar
    Homework Helper

    Almost!

    You're definitely on the right track. :)
     
  20. Mar 31, 2012 #19

    Femme_physics

    User Avatar
    Gold Member

    Last edited by a moderator: May 5, 2017
  21. Mar 31, 2012 #20

    I like Serena

    User Avatar
    Homework Helper

    Yep! ;D


    :rofl:
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Turning JKFF flip-flop into DFF
  1. Flip flop mod counter (Replies: 10)

Loading...