Jump to content

Logic XOR Gate

From Survivalcraft Wiki

<infobox> <title source="name"><default>Logic XOR Gate</default></title> <image source="image"></image> <label>ID</label> <group> <header>General Attributes:</header> <label>Is Stackable</label> <label>Is Flammable</label> <label>Fuel Value</label> <label>Is Edible</label> <label>Food Type</label> <label>Nutritional Value</label> <label>Emitted Light Amount</label> <label>Sleep Suitability</label> <label>Fire Duration</label> </group> <group> <header>Physics:</header> <label>Light Attenuation</label> <label>Explosive Power</label> <label>Explosion Resilience</label> <label>Projectile Resilience</label> <label>Density</label> <label>Is Fluid Blocker</label> <label>Projectile Stick Probability</label> </group> <group> <header>Tool-related Attributes:</header> <label>Digging Method</label> <label>Required Tool Level</label> <label>Digging Resilience</label> <label>Impact on Average Tool Longevity</label> </group> <navigation>Block and Item Infobox Explanation</navigation> </infobox>

Description (From Recipaedia)

Logic XOR gate. Has two inputs on the sides and one output. The output is 1 when exactly one of the inputs is 1, otherwise it is 0. Can be placed on any surface and rotated to desired orientation.

Crafting

Crafting requires 2 copper ingots and 5 germanium crystals. You get 4 gates.

File:Logic Xor Gate craft.png

Hooking It Up

Connections

The output is at the side with the 'pointy' end of the synbol. The inputs are the two sides next to that one. The opposite side has no connection.

File:XOR hook.jpg









Graphical Symbol

Logic XOR gate has 2 inputs [ Labeled in red as A and B ] and 1 output [ A >< B ]

The XOR Gate generates electric current by its output only if ONE of it's inputs are 1.

File:XOR GATE.png





Truth Table

Truth Table shows all input combinations and output to each.


Inputs Output
A                B
0 0 0
0 1 1
1 0 1
1 1 0



To demonstrate this, I'm going to use blue to represent 0 and red to represent 1.

File:XOR00.png


No electric current is generated





File:XOR01.png


Electric current is generated





File:XOR10.png


Electric current is generated





File:XOR11.png


No electric current is generated


Notes

  • When the output is 0 [Blue] no electric signal is generated.
  • When the output is 1 [Red] electric current is generated.