Enjiniaokage•

Chrizz! Didn't even realize you were the one making all the crazy small circuits. I may just borrow your TFF for my counter. And I may just borrow this for some memory :P. Keep up the awesome work!

4
Stenodyon•

Woah

3
IamsodarncoolDeveloper•

Holy crap, that's amazing!

3
Data_Corruption•

Sweet this is great! i love how optimized this is ;p I'm gonna try and stack a kb with it. btw friendly reminder this is not a d-flipflop, this is a d latch. I tested it myself https://i.imgur.com/Cg3qCbP.gifv here are 2 nice diagrams that show what the output result for flipps vs latch (bottom of post). On the latch you will notice your q is high while the clk is high and that's due to your clk manually resetting the rs latch instead of letting the data do it, pretty genius dude. but yeah when the clk is held high data can be changed and whatever it is upon clk release that's what q will be ;P D-flipflop http://hades.mech.northwestern.edu/images/c/cd/D_flipflop_timing.gif D-latch http://hades.mech.northwestern.edu/images/0/04/D_latch_timing.gif

3
IamsodarncoolDeveloper•

I'm gonna try and stack a kb with it

...christ. Are you planning on having read/write capabilities? Please let us know how it goes!

3
Blaidd_Dwrg•

btw friendly reminder this is not a d-flipflop, this is a d latch

See, what confuses me is that every source I read on the subject seems to have a slightly different definition as to the difference between a latch and a flipflop. Some say a flipflop is just a clocked latch, whereas others have diagrams for things labelled as flipflop but there's clearly no clock input.

Would you mind explaining it to me?

2
Blaidd_Dwrg•

I notice there is a brief pulse on the output when the clock signal goes high.

2
Enjiniaokage•

Take the output from the other leg of the latch, it'll be inverted but stable.

2
Blaidd_Dwrg•

No, I don't think that's the case. There's only one pin that can be used as an output as all the others change state for multiple ticks. The output pin pulses for a single tick when D=0, CLK=1. It's barely noticeable unless you slow the game down, as I've done in this video:

Vid

I don't know whether this would be an issue in practice. I did try slaving an SRFF to it and the resulting circuit functioned correctly with no output anomalies at the other end, so that's encouraging. I need to try something a bit larger like a counter or shift register.

edit: made a basic 3-bit shift reg out of 6 of Chrizz' DFFs, works perfectly!

2