Jump to content

Logic AND Gate

From Survivalcraft Wiki

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

Crafting

Requires 4 germaium crystals and 3 copper ingots. You get 4 AND gates.

File:And Gate.png

Hooking It Up

Connections

The output is on the side of the block that has the 'rounded' part of the symbol. The inputs are the 2 sides next to that side. The opposite side has no connections.

File:AND hook.jpg







Graphical Symbol

AND Gate has 2 inputs [ Labeled A and B in Red ] and 1 output [ In Blue ]

File:ANDD.png







Truth Table

Truth Table shows all input combinations and how the output responds.


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

To demonstrate this, I am going to represent 0 with Blue and 1 with Red.

File:AND00.png



No electrical current is generated



File:AND01.png



No electrical current is generated




File:AND10.png



No electrical current is generated



File:AND11.png

Electrical current is generated

Notes

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