Jump to content

Logic OR Gate

From Survivalcraft Wiki

<infobox> <title source="name"><default>Logic OR 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 OR gate. Has two input on the sides and one output. The output is 1 when any of the inputs is 1, otherwise it is 0. Can be placed on any surface and rotated to desired position.

Crafting

Crafting requires 3 copper ingots, 4 germanium crystals. You get 4 gates.
File:Logic Or Gate craft.png

Hooking It Up

Connections

The output is the side where the 'pointy' end is. The inputs are the sides next to that one. The opposite side has no connection.

Graphical Symbol

Logic OR Gate has 2 inputs [ Labeled as A and B in Red ] and 1 output [ Y = A + B in Blue ]

OR Gate generated electric current when one or both of its inputs are 1. This is because the OR Gate finds the Maximum between its two inputs.

Truth Table

Truth table shows all possible inputs and how the output will respond.


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


To demonstrate this, I will represent 0 with Blue and 1 with Red.

File:OR00.png

No electric curent is generated

File:OR01.png

Electric current is generated

File:OR10.png

Electric current is generated

File:OR11.png

Electric current is generated

Notes

  • OR gate finds the Maximum between two binary digits, unlike the Logic AND Gate, which finds the Minimum. 
  • OR gates are primarily digital devices but will operate on analog signals. It performs a bitwise OR. This allows for more compact and interesting circuit designs. See Using Analog Signals.