← ProblemsCircuits / Sequential Logic / More Circuits

Rule 110

5%cellular-automatavectors

Rule 110 is another one-dimensional cellular automaton (famously Turing-complete). Each cell's next state depends on itself and its two neighbors, where for cell q[i] the left neighbor is q[i+1] and the right neighbor is q[i-1]:

leftcenterrightnext
1110
1101
1011
1000
0111
0101
0011
0000

Build a 512-cell version, q[511:0], with the boundary cells' missing neighbors reading as 0. When load is 1, load data[511:0] into q instead of stepping. There is no reset.