[Tiny Tapeout Puzzles](https://tinytapeout.com/digital_design/puzzle_flipflop/)
A flip flop has been created from logic gates below. However, someone has changed all the gates to OR gates and now the outputs are wrong! Using your [knowledge of logic gates and truth tables](/digital_design/logic_gates), **can you figure out which gate to use to fix the flip flop?**
| D | E | Q | !Q |
|---------|---------|--------|--------|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 |
You can either replace the gates in the GUI, or edit the diagram.json file.
You can also check out the [**solution**](https://wokwi.com/projects/346662209986757203).You can either replace the gates in the GUI, or edit the diagram.json file.
Output (Q).
Inverted Output (!Q).
ERC Warnings
flipflop1:CLK: Clock driven by combinatorial logic
flop1:CLK: Clock driven by combinatorial logic
flop2:CLK: Clock driven by combinatorial logic
flop3:CLK: Clock driven by combinatorial logic
flop4:CLK: Clock driven by combinatorial logic
flop5:CLK: Clock driven by combinatorial logic
flop6:CLK: Clock driven by combinatorial logic
flop7:CLK: Clock driven by combinatorial logic
flop8:CLK: Clock driven by combinatorial logic