Component/Switch: Difference between revisions

From Turing Complete
(Added infobox)
m (Added early access version tag)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
''see also {{Component|Switch (word)}}''
''see also {{Component|Switch (word)}}''
{{Infobox component
{{early-access-version|0|1059}}{{Infobox component
| image        = Component_Switch1.png
| image        = Component_Switch1.png
| bit-width    = 1
| bit-width    = 1
Line 8: Line 8:


The 1-bit Switch is a way to pass the state of the input bit to the output of the switch, but only when the switch is in the enabled {{On}} state.  The {{Off}} state prevents the input bit from being passed through to the output.
The 1-bit Switch is a way to pass the state of the input bit to the output of the switch, but only when the switch is in the enabled {{On}} state.  The {{Off}} state prevents the input bit from being passed through to the output.
{| {{Truthtable}}
|+ Switch Truth Table
|-
! Input !! Enable !! !! Output
|-
| {{Off t}}|| {{Off t}}|| || {{Z t}}
|-
| {{Off t}}|| {{On t}}|| || {{Off t}}
|-
| {{On t}}|| {{Off t}}|| || {{Z t}}
|-
| {{On t}}|| {{On t}}|| || {{On t}}
|}

Latest revision as of 17:35, 7 September 2024

see also Switch (word)

Switch
Width 1
Type 1bit
Unlocked by Bit Switch

The 1-bit Switch is a way to pass the state of the input bit to the output of the switch, but only when the switch is in the enabled state. The state prevents the input bit from being passed through to the output.

Switch Truth Table
Input Enable Output
0 0 Z
0 1 0
1 0 Z
1 1 1