Component/Switch (word): Difference between revisions

From Turing Complete
(Switches prevent short circuits, not cirular dependencies)
m (Added early access version tag)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
The 8-bit switch is a device that can enable or disable the output, similar to the [[1-bit Switch|1-bit switch]]. It has a 1 byte input, 1 byte output, and a bit toggle switch. When the bit toggle switch is 1 or {{On}}, it outputs the input. When the bit toggle is 0 or {{Off}}, the output is disabled. Because the output is fully disabled, this mean you can connect multiple outputs onto the same [[wire]] without causing a [[short circuit]], provided that at most 1 distinct value is output.
{{early-access-version|0|1059}}
== 8 Bit Switch ==
{{Infobox component
| component    = 8 Bit Switch
| image        = Component Switch8.png
| bit-width    = 8
| type        = 8bit
| prerequisite = Bit Switch
}}
The 8-bit switch is a device that can enable or disable the output, similar to the {{Component|Switch|1-bit switch}}. It has a 1 byte input, 1 byte output, and a bit toggle switch. When the bit toggle switch is 1 or {{On}}, it outputs the input. When the bit toggle is 0 or {{Off}}, the output is disabled. Because the output is fully disabled, this mean you can connect multiple outputs onto the same [[wire]] without causing a [[short circuit]], provided that at most 1 distinct value is output.


TODO: Clarify. with some examples.
TODO: Clarify. with some examples.


Switches (or disabled outputs of any kind) do not help with [[circular dependency|circular dependencies]].
Switches (or disabled outputs of any kind) do not help with [[circular dependency|circular dependencies]].
== Other sizes ==
----
{{Infobox component
| component    = 16 Bit Switch
| image        = Component Switch16.png
| bit-width    = 16
| type        = 16bit
| prerequisite = Lab
}}
{{Infobox component
| component    = 32 Bit Switch
| image        = Component Switch32.png
| bit-width    = 32
| type        = 32bit
| prerequisite = Lab
}}
{{Infobox component
| component    = 64 Bit Switch
| image        = Component Switch64.png
| bit-width    = 64
| type        = 64bit
| prerequisite = Lab
}}
=== 16 Bit ===
Similar to the 8 bit version but with 16 bit inputs and outputs.
=== 32 Bit ===
Similar to the 8 bit version but with 32 bit inputs and outputs.
=== 64 Bit ===
Similar to the 8 bit version but with 64 bit inputs and outputs.

Latest revision as of 17:34, 7 September 2024

8 Bit Switch[edit | edit source]

8 Bit Switch
Width 8
Type 8bit
Unlocked by Bit Switch

The 8-bit switch is a device that can enable or disable the output, similar to the 1-bit switch. It has a 1 byte input, 1 byte output, and a bit toggle switch. When the bit toggle switch is 1 or , it outputs the input. When the bit toggle is 0 or , the output is disabled. Because the output is fully disabled, this mean you can connect multiple outputs onto the same wire without causing a short circuit, provided that at most 1 distinct value is output.

TODO: Clarify. with some examples.

Switches (or disabled outputs of any kind) do not help with circular dependencies.

Other sizes[edit | edit source]


16 Bit Switch
Width 16
Type 16bit
Unlocked by Lab
32 Bit Switch
Width 32
Type 32bit
Unlocked by Lab
64 Bit Switch
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.