Single value cell: Saves a single value.
The left combinators provide input values from a belt generating testing data:
One data value D/Q of type Y, and an enabler bit E of type X (working like a D-Flipflop)
The central combinators are the memory cell:
- ">": if input E X > 0, pass the Y input D to the output Q (set)
- "=": if input E X = 0, pass the Y input Q to the output Q (hold)
- D: Connects the red input and the input of the ">" combinator
- Q: Connects the red ouput, the output of all combinators, and the input of the "=" combinaor
- E: Connects the green input and the inputs of all combinators
Blueprint
Multi value cell: Saves any number of values, except the activation value.This one is build almost identical, using the virtual type Everything instead of the Y type for all data values on the red wire, allowing you to save any value of any type except X.
Since the "Everything" virtual value will also pass on the "E" value, we need to add one more combinator:
- ">": if input E X > 0, pass the Everything input D to the output Q (set)
- "=": if input E X = 0, pass the Everything input Q to the output Q (hold)
- "*": pass the input E X * -1 as output Q X (Eliminating the X value on Q as long as there is no X value on the D input; the red lamp in the image reacting X to stays off.)
- D: Connects the red input and the input of the ">" combinator
- Q: Connects the red ouput, the output of all combinators, and the input of the "=" combinaor
- E: Connects the green input and the inputs of all combinators
Blueprint