Scrap Mechanic

Scrap Mechanic

Not enough ratings
3 tick D-Latch
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
17.261 KB
4 Dec, 2018 @ 8:59am
1 Change Note ( view )

Subscribe to download
3 tick D-Latch

Description
Blue in: data
---- can be a 1 tick pulse if timed correctly.

Green in: Write
---- must have a pulselength of exactly 1 tick
---- must get a pulse at least 1 tick after the blue gate got the new data
---- Output gate will be updated 2 ticks after the beginning of the pulse.
---- the AND functionality can be part of the selection logic

White in: read Enable
---- output will be updated after 1 tick (faster is impossible!)
---- the AND functionality can be part of the selection logic
White out: output
---- if you don't need a output enable, you can get an output from any of the black gates to save 1 tick in output speed.

Here is a diagram of the timings of a fast write+read (new = new data, old = old data, any = can be anything)

time (ticks): | 0 |1 |2 |3 (0.075 seconds)
Blue in | new |any |any |any
Green in | 0 |1 |0 |any
White in | 0 | 0 |1 |any
White out | 0 | 0 |0 |new
Black out | old | old |new|new

one tick is 1/40 second
on laggy devices this may be slower

no mods
no blueprint editing
no glitches
made in vannilla scrap mechanic 0.3.2