Component/Equal: Difference between revisions

From Turing Complete
m (Gelthor moved page Equal to Component/Equal: Should be a subpage under Component)
(Added infoboxes)
Line 1: Line 1:
{{Infobox component
| component    = Equal
| image        = Component Equal8.png
| bit-width    = 8
| type        = 8bit
| subtype      = math
| prerequisite = Equal
}}
The Equal component checks two values for equality. If the values on both inputs are the same, a {{On}} or 1 response is output. If they are different, a {{Off}} or 0 response is output.
The Equal component checks two values for equality. If the values on both inputs are the same, a {{On}} or 1 response is output. If they are different, a {{Off}} or 0 response is output.


== Other sizes ==
This component exists in 8-bit, 16-bit, 32-bit, and 64-bit varieties.  In all cases, a single bit is output, regardless of how many bits are being compared.
This component exists in 8-bit, 16-bit, 32-bit, and 64-bit varieties.  In all cases, a single bit is output, regardless of how many bits are being compared.
----
{{Infobox component
| component    = Equal (16 bit)
| image        = Component Equal16.png
| bit-width    = 16
| type        = 16bit
| subtype      = math
| prerequisite = Sandbox
}}
{{Infobox component
| component    = Equal (32 bit)
| image        = Component Equal32.png
| bit-width    = 32
| type        = 32bit
| prerequisite = Sandbox
}}
{{Infobox component
| component    = Equal (64 bit)
| image        = Component Equal64.png
| bit-width    = 64
| type        = 64bit
| prerequisite = Sandbox
}}
=== 16 Bit ===
Similar to the 8 bit version but with 16 bit inputs.
=== 32 Bit ===
Similar to the 8 bit version but with 32 bit inputs.
=== 64 Bit ===
Similar to the 8 bit version but with 64 bit inputs.

Revision as of 16:03, 22 August 2024

Equal
Width 8
Type 8bit / math
Unlocked by Equal

The Equal component checks two values for equality. If the values on both inputs are the same, a or 1 response is output. If they are different, a or 0 response is output.

Other sizes

This component exists in 8-bit, 16-bit, 32-bit, and 64-bit varieties. In all cases, a single bit is output, regardless of how many bits are being compared.


Equal (16 bit)
Width 16
Type 16bit / math
Unlocked by Sandbox
Equal (32 bit)
Width 32
Type 32bit
Unlocked by Sandbox
Equal (64 bit)
Width 64
Type 64bit
Unlocked by Sandbox

16 Bit

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

32 Bit

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

64 Bit

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