Medal LittleBigPlanet 2.png
Medal LittleBigPlanet 3.png
Medal LittleBigPlanet PS Vita.png
Medal LittleBigPlanet Karting.png

XOR Gate: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(Created page with "An '''XOR Gate''' produces an output based on its inputs and tweaks. {{GadgetBob | border= #15C115 | bobimg= XOR_Gate_Icon.png | title= XOR Gate | games= LittleBigPlanet 2, LittleBigPlanet Karting, LittleBigPlanet PS Vita, LittleBigPlanet 3 | type= Gadgets | category= Simple Logic | inputs= 2 | obtained= Start }} {{WIP}} ==Overview== The '''XOR Gate''' is a piece of logic that activates when one but not more are active. By default it only has two ports,...")
 
mNo edit summary
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
An '''XOR Gate''' produces an output based on its inputs and tweaks.
{{GameIndicator|lbp2=t|lbp3=t|lbpv=t|lbpk=t}}
 
{{GadgetBob
{{GadgetBob
| border= #15C115
| border= {{HexColor|lbp2}}
| bobimg= XOR_Gate_Icon.png
| bobimg= Gadget_Logic_Gate_XOR_Icon.png
| title= XOR Gate
| title= XOR Gate
| games= [[LittleBigPlanet 2]], [[LittleBigPlanet Karting]], [[LittleBigPlanet PS Vita]], [[LittleBigPlanet 3]]
| games= [[LittleBigPlanet 2]], [[LittleBigPlanet Karting]], [[LittleBigPlanet PS Vita]], [[LittleBigPlanet 3]]
| type= Gadgets
| type= Gadgets
| category= Simple Logic
| category= Logic
| ingamecat= Simple Logic
| inputs= 2
| inputs= 2
| obtained= Start
| obtained= Start
}}
}}
{{WIP}}
An '''XOR Gate''' is a simple logic gadget that activates when any one but not more than one — of its inputs is active. By default it only has two ports, but can be tweaked to have more.
==Overview==
 
The '''XOR Gate''' is a piece of logic that activates when one but not more are active. By default it only has two ports, but can be can be changed to have more.
==Signal Behaviour==
{| class="wikitable"
===Digital===
|+ XOR Gate (Arcade)
{| class="wikitable" style="text-align:center; float:inline-start"
!Deactivate||Active
|-
|-
|{{ImageCycle|images=[[File:Arcade_Switch_Gate_XOR_None_Right_Render.png |128px]][[File:Arcade_Switch_Gate_XOR_None_Front_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_None_Left_Render.png |128px]]|speed=2|customID=arcade_XOR}}
! Input 1 !! Input 2 !! Input 3 !! Output
|{{ImageCycle|images=[[File:Arcade_Switch_Gate_XOR_Both_Right_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_Both_Front_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_Both_Left_Render.png|128px]]|speed=2|customID=arcade_XOR_ON}}
|-
| [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || class="table-row-red" |[[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]]
|-
| [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || class="table-row-green" |[[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]]
|-
| [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || class="table-row-green" |[[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]]
|-
| [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || class="table-row-green" |[[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]]
|-
| [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || class="table-row-red" |[[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]]
|-
| [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || class="table-row-red" |[[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]]
|-
| [[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]] || [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || class="table-row-red" |[[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]]
|-
| [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || [[File:Tweak_GenericSetting_Yes.png|class=invert|32px|link=|On]] || class="table-row-red" |[[File:Tweak_GenericSetting_No.png|class=invert|32px|link=|Off]]
|}
|}
When one of its inputs receives a digital ON signal, the XOR Gate passes it through its output. If more than one input receives an ON signal, the output turns off. The table on the left shows how a 3-port XOR Gate reacts to specific input combinations.
{{clear}}


{| class="wikitable"
===Analogue===
|+ XOR Gate (LCD)
{| class="wikitable" style="text-align:center; float:inline-start"
!XOR||XNOR
|-
! Input 1 !! Input 2 !! Input 3 !! Output
|-
| 30% || 40% || 50% || 50%
|-
| 10% || 40% || -20% || 40%
|-
| 40% || 40% || -50% || -50%
|-
| 50% || -50% || -50% || 50%
|-
|-
|{{ImageCycle|images=[[File:Base_Logic_LCD_Square_Gate_XOR_Right_Render.png|128px]][[File:Base_Logic_LCD_Square_Gate_XOR_Front_Render.png|128px]][[File:Base_Logic_LCD_Square_Gate_XOR_Left_Render.png|128px]]|speed=2|customID=lbp2_XOR}}
| -50% || 50% || 50% || -50%
|{{ImageCycle|images=[[File:Base_Logic_LCD_Square_Gate_XNOR_Right_Render.png|128px]][[File:Base_Logic_LCD_Square_Gate_XNOR_Front_Render.png|128px]][[File:Base_Logic_LCD_Square_Gate_XNOR_Left_Render.png|128px]]|speed=2|customID=lbp2_XNOR}}
|}
|}
The XOR Gate handles analogue signals similarly to the [[OR Gate]]'s Maximum Input mode: it outputs the strongest analogue signal it receives from any of its inputs, be it Positive or Negative. If two or more of its inputs tie for the strongest signal and both are in opposite directions, the direction from the topmost port is used.


==Usage and Behavior==
Again, if the XOR Gate receives a digital ON signal in two or more of its ports, it outputs nothing.
{{clear}}


==Tweaks==
==Tweaks==
{{tweak
{{tweak
|icon=Warning_Missing_Icon.png
|icon=Tweak_Output_Ports.png
|name=Number of ports
|name=Number of Ports
|desc=Changes how many ports are there.
|params=2 - 100
|desc=Changes how many inputs the XOR Gate has.
}}
}}
===Output===
{{Tweakinvert}}
{{Tweakinvert}}
{{Tweakvisible}}


{{Tweakvisible}}
==Gallery==
<gallery widths="128px">
File:Gadget_DLC_Arcade_Gate_XOR_Icon.png|The XOR Gate's early Popit icon.
</gallery>


{{ImageCarousel|images=[[File:Arcade_Switch_Gate_XOR_None_Right_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_None_Front_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_None_Left_Render.png|128px]]|title=XOR Gate - Arcade Off|customID=XOR_Gate_Arcade_Default}}
{{ImageCarousel|images=[[File:Arcade_Switch_Gate_XOR_Upper_Right_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_Upper_Front_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_Upper_Left_Render.png|128px]]|title=XOR Gate - Arcade Upper|customID=XOR_Gate_Arcade_Upper}}
{{ImageCarousel|images=[[File:Arcade_Switch_Gate_XOR_Lower_Right_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_Lower_Front_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_Lower_Left_Render.png|128px]]|title=XOR Gate - Arcade Lower|customID=XOR_Gate_Arcade_Lower}}
{{ImageCarousel|images=[[File:Arcade_Switch_Gate_XOR_Both_Right_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_Both_Front_Render.png|128px]][[File:Arcade_Switch_Gate_XOR_Both_Left_Render.png|128px]]|title=XOR Gate - Arcade Both|customID=XOR_Gate_Arcade_Both}}
{{ImageCarousel|images=[[File:Base_Logic_LCD_Square_Gate_XOR_Right_Render.png|128px]][[File:Base_Logic_LCD_Square_Gate_XOR_Front_Render.png|128px]][[File:Base_Logic_LCD_Square_Gate_XOR_Left_Render.png|128px]]|title=XOR Gate LCD|customID=XOR_Gate_LCD_Default}}
{{ImageCarousel|images=[[File:Base_Logic_LCD_Square_Gate_XNOR_Right_Render.png|128px]][[File:Base_Logic_LCD_Square_Gate_XNOR_Front_Render.png|128px]][[File:Base_Logic_LCD_Square_Gate_XNOR_Left_Render.png|128px]]|title=XNOR Gate LCD|customID=XOR_Gate_LCD_Inverted}}




{{Template:LittleBigPlanet 2 Gadgets}}
{{Template:LittleBigPlanet 2 Gadgets}}
{{LittleBigPlanet 3 Gadgets}}
{{LittleBigPlanet Karting Gadgets}}

Latest revision as of 01:34, 15 September 2024

XOR Gate
Popit Icon
Games: LittleBigPlanet 2, LittleBigPlanet Karting, LittleBigPlanet PS Vita, LittleBigPlanet 3
Type: Gadgets
Category: Logic
In-Game Category: Simple Logic
Inputs: 2
Obtained from: Start

An XOR Gate is a simple logic gadget that activates when any one — but not more than one — of its inputs is active. By default it only has two ports, but can be tweaked to have more.

Signal Behaviour

Digital

Input 1 Input 2 Input 3 Output
Off Off Off Off
On Off Off On
Off On Off On
Off Off On On
On On Off Off
On Off On Off
Off On On Off
On On On Off

When one of its inputs receives a digital ON signal, the XOR Gate passes it through its output. If more than one input receives an ON signal, the output turns off. The table on the left shows how a 3-port XOR Gate reacts to specific input combinations.

Analogue

Input 1 Input 2 Input 3 Output
30% 40% 50% 50%
10% 40% -20% 40%
40% 40% -50% -50%
50% -50% -50% 50%
-50% 50% 50% -50%

The XOR Gate handles analogue signals similarly to the OR Gate's Maximum Input mode: it outputs the strongest analogue signal it receives from any of its inputs, be it Positive or Negative. If two or more of its inputs tie for the strongest signal and both are in opposite directions, the direction from the topmost port is used.

Again, if the XOR Gate receives a digital ON signal in two or more of its ports, it outputs nothing.

Tweaks

Tweak Output Ports.png
Number of Ports: (2 - 100)
Changes how many inputs the XOR Gate has.

Output

Tweak Output Inverted.png
Invert Output: (
NoNo •‎
YesYes
)

Inverts the gadget's output, turning On signals Off and vice-versa.
Tweak Visual Visibility.png
Visible in Play Mode: (
NoNo •‎
YesYes
)

Determines whether or not the object will be rendered in Play Mode.

Gallery

XOR Gate - Arcade Off

Tweak Generic Arrow Lesser.svg Tweak Generic Arrow Greater.svg

XOR Gate - Arcade Upper

Tweak Generic Arrow Lesser.svg Tweak Generic Arrow Greater.svg

XOR Gate - Arcade Lower

Tweak Generic Arrow Lesser.svg Tweak Generic Arrow Greater.svg

XOR Gate - Arcade Both

Tweak Generic Arrow Lesser.svg Tweak Generic Arrow Greater.svg

XOR Gate LCD

Tweak Generic Arrow Lesser.svg Tweak Generic Arrow Greater.svg

XNOR Gate LCD

Tweak Generic Arrow Lesser.svg Tweak Generic Arrow Greater.svg