Clock combinator
A timing and counting combinator to more simply implement time based logic.What ?
A combinator with three modes. All three modes accept a duration parameter (measured in ticks) with a minimum value of one.Delay mode
input is relayed, unaltered, after a delay of x ticks. Any of the specific signals can be chosen to be broadcast or the each signal.
output(duration) = input(0)
Summation mode
input over a period of x ticks is summed and outputted
output(x) = sigma(0,x-1,input(i))
Alert mode
Alert mode
Broadcasts a set output once every x ticks
Why ?
Three modes in one to reduce the number of entities.Delay mode
This is important basic element of circuit design, and can be accomplished with the sophisticated technology know as "a really long wire".
Currently requires a series of x combinators.
Summation mode
This is pretty useful, especially if one wants to use pulse reads on anything. Enables logic like "I've read 10 SP3 on my belt in the last 10 seconds"
This one isn't too involved to do right now, but it would be nice to make counting easier for people that don't know what a latch is.
Alert mode
Could be used to set in game alarms (night is coming!) , synch up processes, or perform periodic checks.
Not too hard to do right now.