Level/Counter

From Turing Complete
Revision as of 19:55, 6 February 2023 by w:c:strategywiki>Henke37 (First complicated wiring job)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

For this level you have to create a component that either increments by one each tick or loads a new value.

Since you need to store a value between ticks, place a Register component. Add an Always On component and wire it to both the Load and Store pins of the Register.

Hook up a Mux component to the Save value pin of the register. Wire the numerical input pin to the Input 2 pin of the Mux. Wire the bit input pin to the Select 1/2 pin on the Mux.

Finally add an Add component. Wire the Carry IN pin to the Always On component and the Input 1 pin to the Output pin of the Register. Wire the Result pin of the Add component to the Input 1 pin on the Mux.

And to complete it, wire the Output pin of the Register to the output pin.