Component/Counter: Difference between revisions

From Turing Complete
m (Gelthor moved page Counter (word) to Counter: "word" is redundant)
m (Gelthor moved page Counter to Component/Counter: Should be a subpage under Component)
 
(No difference)

Latest revision as of 01:49, 27 August 2024

8 Bit Counter
Width 8
Type 8bit
Unlocked by Counter

The 8 Bit Counter component behaves somewhat like a register, in that it starts with a value of 0 and can have its value changed.

It has two inputs, an Overwrite Value which can be used to change the counter's value on the next tick; and an Increment/Overwrite toggle. The default behavior is to increment by one on each cycle if a signal is connected to the Increment/Overwrite input. If a signal is connected to Increment/Overwrite, it will change the value of the counter to the value that is detected on the Overwrite Value pin.

The output pin is always active, so the current value of the counter is always being output.

Other sizes[edit | edit source]


16 Bit Counter
Width 16
Type 16bit
Unlocked by Lab
32 Bit Counter
Width 32
Type 32bit
Unlocked by Lab
64 Bit Counter
Width 64
Type 64bit
Unlocked by Lab

16 Bit[edit | edit source]

Similar to the 8 bit version but with 16 bit inputs and outputs.

32 Bit[edit | edit source]

Similar to the 8 bit version but with 32 bit inputs and outputs.

64 Bit[edit | edit source]

Similar to the 8 bit version but with 64 bit inputs and outputs.