Electronic – D Latches & D Flip Flops

digital-logiclatch

I am trying to recreate this D-Latch using only logic gates:

D-Latch

So far I have this for the latch:

Latch circuit

What am I missing here? There should only be one input of c and an output of A1, so I tried connecting the inverter directly to the output of A1 since there is no input of D allowed. But something is still wrong, because the D input isn't connected directly to the output in that picture but how can I show this using only logic gates and not directly having D as input?? Thank you!

Best Answer

Take a look at: Wikipdia: D-Latch

Specifically, this figure:

enter image description here

The inverting buffer is already required from the D input, and inverting Q to the input of D is a double negative.

Note that the lower And gate has a non-inverted input form D, so you could just move the not gate from the top and gate to the bottom.

The "un-optimized solution":

schematic

simulate this circuit – Schematic created using CircuitLab

Using the double not-gate optimization:

schematic

simulate this circuit

"Cheating" and getting rid of both not gates:

schematic

simulate this circuit

Related Topic