Forums - Open Redstone Engineers
CMOSprinkles' Instant D Flip Flop! - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: ORE General (https://forum.openredstone.org/forum-39.html)
+--- Forum: Projects & Inventions (https://forum.openredstone.org/forum-19.html)
+---- Forum: Completed Projects (https://forum.openredstone.org/forum-21.html)
+---- Thread: CMOSprinkles' Instant D Flip Flop! (/thread-722.html)

Pages: 1 2


CMOSprinkles' Instant D Flip Flop! - CMOSprinkles - 08-10-2013

Hello again, some of you may remember the 1 tick DFF I was working on using the Dropper SR Latch. As you may recall, it did not work properly, "for some unknown reason".

[Image: 2013-07-28_185303_zpsfc9ba96e.png]

Turns out, the problem was indirect power. A very helpful member of Minecraftforum pointed out to me that Droppers can become indirectly powered the same way that Pistons can. As you can see in the picture above, the bottom Dropper is one block below the block that the repeater is powering. This causes that Dropper to stay powered even when the repeater has stopped powering the block; thus the first redstone pulse did not move the item, but only updated the Dropper to remind it that it was off. The second pulse could then move the item. This new design not only completely averts that issue, but it also makes it 1 tick faster; it can now instantly save data and output in 1 tick!

Here is an overview of 4 bits stacked 2 wide:
[Image: 2013-08-13_232052_zps2951cb83.png]

Here is a view of the outputs, 2 wide:
[Image: 2013-08-13_232059_zps456afb44.png]

Here is a side view:
[Image: 2013-08-13_232107_zps26d584b4.png]

Now, here is the Shared Clock version, much neater looking:
[Image: 2013-08-14_000528_zps1fdcde28.png]

The clock input goes in one neat little line, no BUD's here:
[Image: 2013-08-14_000536_zpse2ba3bbf.png]


This works because instead of indirectly powering the bottom Dropper, it indirectly powers the top Dropper, which is then updated instantly by the powered rail. Each bit is 7L*[(x*2)+1]W*6H (x is the number of bits) stackable in any direction if it has its own clock, and 7L*[(x*2)+1]W*5H if they have a shared clock. It can save data instantly, and a RAM will be coming soon that will read in 1 tick. There you have it; an instant DFF! That means an instant write/1 tick read RAM! Here is a world download and a MCEdit schematic, let me know what you think!

Individual Clock Version:
World Download: http://www.mediafire.com/?8boxucnfly6v6uf

MCEdit Schematic: http://www.mediafire.com/?6itkrp7jm4ab4nb

Shared Clock Version:
World Download: http://www.mediafire.com/?vovghxui9u0pf3g

MCEdit Schematic: http://www.mediafire.com/?bexn9r5kq94cqp8


RE: CMOSprinkles' Instant D Flip Flop! - Thor23 - 08-10-2013

I'm not understanding how those pistons are indirectly powered. They appear to be extended with no source of power around. Reminds me of a glitch I myself recently encountered, where some pistons that are powered fail to retract when being unpowered. Now that I see this, I think it may have to do with them being powered from directly above. BUD glitch strikes again?


RE: CMOSprinkles' Instant D Flip Flop! - CMOSprinkles - 08-10-2013

Lol, indirect powering causes a piston/dropper to become a BUD. So yes, it is a BUD glitch.


RE: CMOSprinkles' Instant D Flip Flop! - CMOSprinkles - 08-11-2013

Hm, considering that this is 3 ticks faster than most DFF's out there, I thought there might be a little more interest. Has this already been done?


RE: CMOSprinkles' Instant D Flip Flop! - Chibill - 08-11-2013

I may use this for registers in MCX's CPU.


RE: CMOSprinkles' Instant D Flip Flop! - Thor23 - 08-12-2013

(08-10-2013, 11:45 PM)CMOSprinkles Wrote: Lol, indirect powering causes a piston/dropper to become a BUD. So yes, it is a BUD glitch.

No, I mean I don't SEE the BUD. As far as I can tell from the pictures you've provided, it should be working fine. So I have no idea why it would be BUDing.


RE: CMOSprinkles' Instant D Flip Flop! - CMOSprinkles - 08-12-2013

Do you mean that you cannot see what is causing those pistons to BUD? It is a glitch that I have encountered before, it is based on signal strength and placing the wire above the piston I believe, notice that the first piston isn't affected by the glitch. It is indeed strange.


RE: CMOSprinkles' Instant D Flip Flop! - Billman555555 - 08-12-2013

Hmm.. What are the Dimesions,
* Billman555555 thinks he might use this in SAC

This has been done before by properenglish but with a different save techneique.
Great Job CMO.


RE: CMOSprinkles' Instant D Flip Flop! - CMOSprinkles - 08-12-2013

7x7x2 stackable per bit, plus 2 more to the width for the write control line. I'd love to see Proper's version of this, if it exists then there should be a thread or a video. Could you link that here? Also, thank you Chibill, you are more than welcome to use this in any of your builds if you just mention my name to give credit.

Gah! Y U DO DIS BILL. I just took a look, and Proper does indeed have an SR latch that is even more truly instant than the dropper SR latch... Both designs save the data instantly, but there is one difference; Proper's also outputs instantly, with no comparator delay. True, this version of an 'instant DFF' is most likely more compact than any you could make using Proper's SR latch and is probably functionally identical in a computer circuit since the data does save instantly. However, it is still true that a DFF using Proper's SR latch would output data faster. Thank you for pointing that out Bill. Though, I will most likely still being using this since it is seemingly more compact and functionally identical.

Also, I just saw his RAM video too, but that was much less optimized than this is. His RAM was 2 ticks to write and 2 ticks to read. I believe that he wanted to avoid using pistons, so he didn't actually manage to create an instant DFF. Although what he had was a pretty compact version of this, it was slower.


RE: CMOSprinkles' Instant D Flip Flop! - Billman555555 - 08-13-2013

IK THT I AM HPLES T HLPN PPL. But yea maybey if you can change the control line you can get it smaller IDk.

Anywho i will do a youtube video comparison as soon as i have time. Big Grin