Component/Equal: Difference between revisions

From Turing Complete
(Added infoboxes)
(Multibyte versions are unlocked by The Lab)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
| type        = 8bit
| type        = 8bit
| subtype      = math
| subtype      = math
| prerequisite = Equal
| prerequisite = Equality
}}
}}


Line 20: Line 20:
| type        = 16bit
| type        = 16bit
| subtype      = math
| subtype      = math
| prerequisite = Sandbox
| prerequisite = Lab
}}
}}
{{Infobox component
{{Infobox component
Line 27: Line 27:
| bit-width    = 32
| bit-width    = 32
| type        = 32bit
| type        = 32bit
| prerequisite = Sandbox
| subtype      = math
| prerequisite = Lab
}}
}}
{{Infobox component
{{Infobox component
Line 34: Line 35:
| bit-width    = 64
| bit-width    = 64
| type        = 64bit
| type        = 64bit
| prerequisite = Sandbox
| subtype      = math
| prerequisite = Lab
}}
}}



Latest revision as of 11:29, 23 August 2024

Equal
Width 8
Type 8bit / math
Unlocked by Equality

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[edit | edit source]

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 Lab
Equal (32 bit)
Width 32
Type 32bit / math
Unlocked by Lab
Equal (64 bit)
Width 64
Type 64bit / math
Unlocked by Lab

16 Bit[edit | edit source]

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

32 Bit[edit | edit source]

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

64 Bit[edit | edit source]

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