Problem:
Given three inputs, design a combinational digital circuit that corresponds to three mutually exclusive outputs. You may only use T flip-flops to store outputs.
Example:
User presses button A to turn light A on, then presses button C to turn light C on and turn light A off. If the user presses button C again, then light C will turn off.
...
I've been stuck on this problem for a while now and so far I've only been able to come up with a sequential logic solution.
However, it's asking for a combinational solution and I'm not certain how to find one without being able to use the states of each T flip-flop.
I keep running into two issues: determining when to toggle a flip-flop without knowing its state and finding a way to modify other input without creating a feedback loop.
It looks like I could solve both issues by using the asynchronous 'reset' function that is found on integrated circuit chips, specifically by OR'ing non-corresponding inputs to a T flip-flop's 'reset'.
Unfortunately, I doubt this is the solution my instructor is looking for because I've lost points in the past for using similar solutions.
Without using asynchronous 'set' or 'reset' functions, my other idea was to encode all the output into four states using a 2-bit counter: all off (00), light A on (01), light B on (11), and light C on (10). However, I haven't found a way to consistently iterate the counter so that each input lands on the correct state.
Thus, I've come here. I'm uncertain how to proceed on this problem. Any advice or hints would be very much appreciated, thank you.
Given three inputs, design a combinational digital circuit that corresponds to three mutually exclusive outputs. You may only use T flip-flops to store outputs.
Example:
User presses button A to turn light A on, then presses button C to turn light C on and turn light A off. If the user presses button C again, then light C will turn off.
...
I've been stuck on this problem for a while now and so far I've only been able to come up with a sequential logic solution.
However, it's asking for a combinational solution and I'm not certain how to find one without being able to use the states of each T flip-flop.
I keep running into two issues: determining when to toggle a flip-flop without knowing its state and finding a way to modify other input without creating a feedback loop.
It looks like I could solve both issues by using the asynchronous 'reset' function that is found on integrated circuit chips, specifically by OR'ing non-corresponding inputs to a T flip-flop's 'reset'.
Unfortunately, I doubt this is the solution my instructor is looking for because I've lost points in the past for using similar solutions.
Without using asynchronous 'set' or 'reset' functions, my other idea was to encode all the output into four states using a 2-bit counter: all off (00), light A on (01), light B on (11), and light C on (10). However, I haven't found a way to consistently iterate the counter so that each input lands on the correct state.
Thus, I've come here. I'm uncertain how to proceed on this problem. Any advice or hints would be very much appreciated, thank you.