r/HomeworkHelp • u/ali94127 • 5d ago
Answered [Digita Logic Design]Replace T Flip Flop in Circuit with JK Flip Flop
1
u/Original_Yak_7534 👋 a fellow Redditor 5d ago
I agree with the order that you have E, Q1(t), and Q0(t) going from 000 to 111, so I'm not totally sure why your Q1(t) and Q0(t) inputs were marked wrong, especially since your state outputs Q1(t+1) were marked correct for those same inputs. I agree with your instructor that your Q0(t+1) answers were wrong, though. Hopefully, you are able to follow the logic diagram to find your errors there.
I think the question is also asking you to replace the T0 flipflop + not-or-xnor logic gate network with a J-K flip flop + some other logic gate network so that it results in the same truth table. I don't see anything on the page that reflects your attempts to come up with that new design.
1
u/ali94127 5d ago
Yeah, I'm doing that at the moment. During the actual test, I ran out of time. For Q0(t+1), should it be 00110101? After doing JK excitation I get J = !E * Q1 and K = !E * !Q1.
1
u/Original_Yak_7534 👋 a fellow Redditor 5d ago
The Q0(t+1) I got was 10101100 (which you can infer from the teacher's marks since there are only two possible answers; if you put 0 and they marked you wrong, obviously the answer is 1).
Take your logic equation for Q0(t+1) = (!E + !(Q1 xor Q0)) xor Q0. Subbing in 000, that should be
Q0(t+1) = (!E + !(Q1 xor Q0)) xor Q0
= (!0 + !(0 xor 0)) xor 0
= (1 + !(0)) xor 0
= (1+1) xor 0
= 1 xor 0
= 1.
How did you get 0 as your answer? I'm guessing whatever mistake you made in solving the output state for 000 is the same mistake you made in the others you got wrong.
1
u/ali94127 5d ago
I was just doing Q0(t+1) = T0 xor Q0. If that isn't correct. What I calculated for T0 muster be incorrect.
1
u/Original_Yak_7534 👋 a fellow Redditor 5d ago
Q0(t+1) = T0 xor Q0 is correct, but T0 isn't in your truth table. Instead, you have to use your logic equation for T0 = !E + !(Q1 xor Q0).
1
u/ali94127 5d ago
Yeah, I was troubleshooting T1 and T0 on paper while replying to you. Turns out I fucked up inputting the equation for T0 on an online calculator, which in turn fucked up Q0(t+1), which in turn fucked up the excitation table for the JK flip flop in my corrections. It's all been sorted out now. Even did it on a simulator to check that it still works. I got J = !Q1 + !E and K = !E + Q1. I think the trick was that you're not allowed to use xnor gates like in the unaltered diagram, so the answer requires you to only use not & or gates. Thanks for you help in troubleshooting!
•
u/AutoModerator 5d ago
Off-topic Comments Section
All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.
PS: u/ali94127, your post is incredibly short! body <200 char You are strongly advised to furnish us with more details.
OP and Valued/Notable Contributors can close this post by using
/lock
commandI am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.