The JK flip-flop (I have it set to rising edge) checks the input state after the clock tick. The result is, if the inputs change simultaneously with the clock edge changing, it will respond to the clock tick as if the inputs were the new input, not the old.
It should store the input state on the falling clock edge and change the output based on that stored state on the rising edge. If the input changes after the falling clock edge (but before the rising edge), the new input should have no bearing on the output at the next rising edge.
Log in to post a comment.