Stores the maximum value of every signal that the cell has ever received.
I'm attaching this to a rocket silo to keep track of every request by a space platform. I use that information to build train requests so that I always have items buffered to deliver to space.
Usage
- Input: Green wire on pole to the left
- Output: Red wire on pole to the right
- Reserved signals, used for internal computation
W&Vare used in the ring bufferRis used in the memory cell
How It Works
Components
There are 3 parts, separated by spaces in the blueprint:
- 2-register ring buffer, the left section
- Addressable memory cell, the right section
- Credit to Reddit user Potential-Carob-3058
- 4 decider combinators, to determine maximum values
Flow
- The ring buffer stores the last two states of the circuit.
- The left two decider combinators look at the two ring buffer registers and determines the list of maximum values from the past two states
- The right two decider combinators look at those max values and compares them against the contents of the memory cell, retaining each max value
- That set of maximum signal values is then uploaded to the memory cell
