Now that we've explored the Set-Reset Flip-Flop, let's take a look at the Toggle Flip-Flop. As the name suggests, instead of directly setting or resetting the current state, this chip only has one input which will toggle the signal every time it is pulsed.
┌───────────┐
│ ├─● Q
T ●─┤ TFF │
│ ├─● QBAR
└───────────┘
The TFF chip will be in the state Q = 1 after it is initially placed.
The state of Q will invert each time a rising edge is detected on T.
QBAR will always transmit the opposite signal of Q.
The circuit board will come pre-installed with INPUT and OUTPUT chips as shown below:
───────┐ ┌────────
│ Q ●─┤
INPUT ├─● T │ OUTPUT
│ QBAR ●─┤
───────┘ └────────
Real-Time Testcases
This task is the first to use the "real-time" alternative of testing. See the Wiki Page for a detailed explanation.
Digital Logic Circuit Interface
For these Digital Logic Circuits tasks, you will not be providing an answer string you would for other tasks.
Instead, your Solution Code will be interpreted directly to place chips onto the circuitboard and connect them with wires.
Click here to learn the Digital Logic Circuit Syntax used on this site.
After the chips have been placed and connected, the server will run a series of tests, randomly assigning values to the input pin(s) and checking to see if the output pins read the corresponding expected values. If all tests produce the expected outputs, then the circuitboard is considered a success.
Even though we won't be using the "Your answer" box, you'll still need to put something in that box to submit your solution. Just put anything - it will not be passed to the interpreter.