[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.
Example D-Flip Flop.
Enable (E).
Input (D).
Output (Q).
Inverted Output (!Q).
Output (Q).
Inverted Output (!Q).