Component/Switch (word): Difference between revisions

From Turing Complete
m (Gelthor moved page 8 Bit Switch to Component/Switch (word): Should be a subpage under Component)
(Added infoboxes)
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.
== 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 = Sandbox
}}
{{Infobox component
| component    = 32 Bit Switch
| image        = Component Switch32.png
| bit-width    = 32
| type        = 32bit
| prerequisite = Sandbox
}}
{{Infobox component
| component    = 64 Bit Switch
| image        = Component Switch64.png
| bit-width    = 64
| type        = 64bit
| prerequisite = Sandbox
}}
=== 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.

Revision as of 17:13, 22 August 2024

8 Bit Switch

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


16 Bit Switch
Width 16
Type 16bit
Unlocked by Sandbox
32 Bit Switch
Width 32
Type 32bit
Unlocked by Sandbox
64 Bit Switch
Width 64
Type 64bit
Unlocked by Sandbox

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.