https://imgur.com/a/wc86a06
This is a really confusing question because of the next state input. What would be the answer? I got XOR but I am not confident whether it is the correct way to approach this question. Could someone help verify if I am correct?
My workings is as follows:
Q is taken from the previous clock and J is always dictated by A.
If Q=0 and A=0, then both inputs need to be 0 (keep previous state).
If Q=1 and A=0, then we need J=0 and K=1 (kill). J=K=1 (toggle) would do the same, but is not possible, because J would contradict with A.
If Q=0 and A=1, then we can either use J=1 and K=0 (jump), or we can also use J=K=1 (toggle). We do the latter.
If Q=A=1, then we need J=0 and K=0 (keep current state) - this is however not possible with the given circuit (J=A is always the case), but we can try J=1 and K=0 (jump), which will do the same now.
Now we can make a simple truth table for K.
Q A K
0 0 0
0 1 1
1 0 1
1 1 0
This table is equivalent to K = Q XOR A
Note that for JK FF conversion to D FF, the logic circuit is an inverter without the feedback input. So if we try and force the K input to be inverted and equate K=Function(A,Q(n+1), I think XOR gate is the answer.
This is a really confusing question because of the next state input. What would be the answer? I got XOR but I am not confident whether it is the correct way to approach this question. Could someone help verify if I am correct?
My workings is as follows:
Q is taken from the previous clock and J is always dictated by A.
If Q=0 and A=0, then both inputs need to be 0 (keep previous state).
If Q=1 and A=0, then we need J=0 and K=1 (kill). J=K=1 (toggle) would do the same, but is not possible, because J would contradict with A.
If Q=0 and A=1, then we can either use J=1 and K=0 (jump), or we can also use J=K=1 (toggle). We do the latter.
If Q=A=1, then we need J=0 and K=0 (keep current state) - this is however not possible with the given circuit (J=A is always the case), but we can try J=1 and K=0 (jump), which will do the same now.
Now we can make a simple truth table for K.
Q A K
0 0 0
0 1 1
1 0 1
1 1 0
This table is equivalent to K = Q XOR A
Note that for JK FF conversion to D FF, the logic circuit is an inverter without the feedback input. So if we try and force the K input to be inverted and equate K=Function(A,Q(n+1), I think XOR gate is the answer.
Last edited: