Logic gate

The logic gates are seven constructible settlement items added .
==Crafting==
==Characteristics==
Logic gates are used to build advanced circuits for different powered components in allied settlements. Each logic gate has two ports: the red port indicates input, and the black port indicates output. Based on the state of the wires connected to the red input node, each logic gate determines whether or not power passes through the black output node. 
There are three different types of logic gates: positive logic gates, negative logic gates, and exclusive logic gates. 
The AND, OR and XOR gates will operate as expected on live or uncharged wires from other components anywhere in their downstream chain. NOT, NAND, NOR and XNOR Will only operate as expected if they are downstream of a logic gate with active power.
To simplify this requirement, when using any negative gate in your logic gate chain, you can replace one input wire on the first logic gate in the chain with [original input source] > [AND Gate] > [original first logic gate] and supply constant power to the new AND gate. If the first gate was already an AND gate, you can just wire constant power to it. This will enable all logic gates after it as long as they are directly connected to each other (any connections between will interrupt the enablement of gates after the interruption).
In the following tables, digit 1 means the power passes and 0 means the power does not pass through.
Input a	Input b	Output OR	Output AND	Output XOR	Output NOR	Output NAND	Output XNOR
0 	0 	0 	0 	0 	1 	1 	1
0 	1 	1 	0 	1 	0 	1 	0
1 	0 	1 	0 	1 	0 	1 	0
1 	1 	1 	1 	0 	0 	0 	1
Input	Output NOT
1 	0
0 	1
All Fallout 4, logic gates can accept one to many inputs. The in-game construction tips abridged here describe how they behave with non-binary inputs.
Logic Gate	Behavior
AND 	Transmits power if ALL inputs are powered
NAND 	Transmits power if NOT ALL inputs are powered (including all unpowered)
OR 	Transmits power if ANY inputs are powered
NOR/NOT 	Transmits power if NOT ANY of the inputs are powered
XOR 	Transmits power if ONLY one input is powered
XNOR 	Transmits power if the SAME state is on all inputs (powered or unpowered)
==Gallery==
OR_logic_gate.png|OR logic gate
NAND_logic_gate.png|NAND logic gate
NOR_logic_gate.png|NOR logic gate
NOT_logic_gate.png|NOT logic gate
XNOR_logic_gate.png|XNOR logic gate
XOR_logic_gate.png|XOR logic gate
Category:Contraptions Workshop settlement objects