Combinational Circuits

From No Man's Sky Wiki
Jump to: navigation, search

Combinational Circuits is a power-related page.

Summary[edit | edit source]

This page is dedicated to circuits that have their outputs as a function of their inputs. These circuits have many uses in checking whether certain conditions are met, as well as being a fundamental part of more complex circuits such as memory circuits.

A stable circuit is defined as having its input be unaffected from its output and each input be unaffected by another. Unstable circuits should only be used in isolation as power can flow from output to input and ruin the circuit.

Logic Gates[edit | edit source]

Two-input logic gates have their inputs labeled A and B, single-input gates have their input labeled P, and outputs are labeled Q. An input labeled "1" indicates that constant power must be supplied to it.

Buffer Gate[edit | edit source]

Buffer Gate Symbol
P Q
0 0
1 1

A buffer gate is a single-input logic gate that simply outputs power when the input is on. This is also called a diode because it only allows information to travel in one direction, which is used to make a circuit stable.

Name Description Stable Materials Diagram Image
Design A A single Auto Switch supplied with constant power will output power only if the middle output is on. This design also functions as a diode, only allowing for output Q to be altered by input P and preventing P from being altered by Q. Yes

UTILITY.SWITCH AUTO.png Auto Switch x1

Buffer Design A Diagram.png
Buffer Design A.png

NOT Gate[edit | edit source]

NOT Gate Symbol
P Q
0 1
1 0

A NOT gate is a single-input logic gate that negates the input, outputting power only if the input is off.

Name Description Stable Materials Diagram Image
Design A A single Power Inverter supplied with constant power will output power only if the middle output is off, thereby acting as a negation of the middle input. Yes

UTILITY.SWITCH INVERTER.png Power Inverter x1

NOT Design A Diagram.png
NOT Design A.png

OR Gate[edit | edit source]

OR Gate Symbol
A B Q
0 0 0
0 1 1
1 0 1
1 1 1

An OR gate is a multiple-input logic gate that outputs power only if at least one input is on.

Name Description Stable Materials Diagram Image
Design A Connecting two pieces of Electrical Wiring together acts as a simple OR gate, however power can flow through both directions. No N/A
OR Design A Diagram.png
OR Design A.png
Design 3A[1] This design has a 3-input OR gate, but the number of inputs can be increased. This circuit is fundamentally a combination of 3 buffer gates and using design A to OR their outputs together.
See also: OR Gate
Yes

UTILITY.SWITCH AUTO.png Auto Switch x3

OR Design 3A Diagram.png
OR gate 01.jpg

NOR Gate[edit | edit source]

NOR Gate Symbol
A B Q
0 0 1
0 1 0
1 0 0
1 1 0

A NOR gate is the negation of an OR gate. It is a multiple-input logic gate that outputs power only if no input is on.

Name Description Stable Materials Diagram Image
Design A By connecting both inputs to the middle input of the power inverter, it acts as OR gate design A before being negated using NOT gate design A. No

UTILITY.SWITCH INVERTER.png Power Inverter x1

NOR Design A Diagram.png
NOR Design A.png
Design B By connecting the output of one power inverter to the input of another, the circuit acts as an AND of the negation of all inputs, which is logically equivalent to a NOR of all inputs. Yes

UTILITY.SWITCH INVERTER.png Power Inverter x2

NOR Design B Diagram.png
NOR Design B.jpg
Design 3A Created by extending OR gate design A to 3 inputs and connecting it to a NOT gate No

UTILITY.SWITCH INVERTER.png Power Inverter x1

NOR Design 3A Diagram.png
NOR Design 3A.jpg
Design 3B Created by extending design B to 3 inputs Yes

UTILITY.SWITCH INVERTER.png Power Inverter x3

NOR Design 3B Diagram.png
NOR Design 3B.jpg

AND Gate[edit | edit source]

AND Gate Symbol
A B Q
0 0 0
0 1 0
1 0 0
1 1 1

An AND gate is a multiple-input logic gate that outputs power only if all inputs are on.

Name Description Stable Materials Diagram Image
Design A A single Auto Switch acts as an AND gate when treating the power input as input A and the control input as input B.
See also: Basic_Circuits#Components
No

UTILITY.SWITCH AUTO.png Auto Switch x1

AND Design A Diagram.png
AND Design A.png
Design B Design 3A but with 2 inputs Yes

UTILITY.SWITCH AUTO.png Auto Switch x2

AND Design B Diagram.png
AND Design B.jpg
Design 3A[1] This design has a 3-input AND gate, but the number of inputs can be increased by adding more Auto Switches.
As the output of one feeds the next, only when all three (or as many as you want) auto switches have power will the final output be powered.
See also: AND gate
Yes

UTILITY.SWITCH AUTO.png Auto Switch x3

AND Design 3A Diagram.png
AND gate 01.jpg

NAND Gate[edit | edit source]

NAND Gate Symbol
A B Q
0 0 1
0 1 1
1 0 1
1 1 0

A NAND gate is the negation of an AND gate. It is a multiple-input logic gate that outputs power only if not all inputs are on.

Name Description Stable Materials Diagram Image
Design A Created by connecting AND gate design A to NOT gate design A Yes

UTILITY.SWITCH AUTO.png Auto Switch x1
UTILITY.SWITCH INVERTER.png Power Inverter x1

NAND Design A Diagram.png
NAND Design A.png

XOR Gate[edit | edit source]

XOR Gate Symbol
A B Q
0 0 0
0 1 1
1 0 1
1 1 0

An XOR gate is a two-input logic gate that outputs power only if either input is on, but not both. In other words, if the two inputs are different.

Name Description Stable Materials Diagram Image
Design A[2] Based on the logical expression "(A AND (NOT B)) OR ((NOT A) AND B)", equivalent to "(A NIMPLY B) OR (B NIMPLY A)". Created using NIMPLY gate design A and OR gate design A, with the outputs connected to diodes. Yes

UTILITY.SWITCH AUTO.png Auto Switch x2
UTILITY.SWITCH INVERTER.png Power Inverter x2

XOR Design A Diagram 2.png
XOR Design A 2.jpeg

XNOR Gate[edit | edit source]

XNOR Gate Symbol
A B Q
0 0 1
0 1 0
1 0 0
1 1 1

An XNOR gate is the negation of an XOR gate. It is a two-input logic gate that outputs power only if either both or no inputs are on. In other words, if the two inputs are the same.

Name Description Stable Materials Diagram Image
Design A Created by connecting XOR gate design A to NOT gate design A. Yes

UTILITY.SWITCH AUTO.png Auto Switch x2
UTILITY.SWITCH INVERTER.png Power Inverter x3

XNOR Design A Diagram 2.png
XNOR Design A 2.jpg

IMPLY Gate[edit | edit source]

IMPLY Gate Symbol
A B Q
0 0 1
0 1 1
1 0 0
1 1 1

An IMPLY gate is a two-input logic gate that outputs power only if the logical IMPLY operation between the inputs is true. It will not output power when input A is true and input B is false, otherwise it will output power. This is equivalent to "(NOT A) OR B".

Name Description Stable Materials Diagram Image
Design A Created by connecting NIMPLY gate design A to NOT gate design A. Yes

UTILITY.SWITCH INVERTER.png Power Inverter x2

IMPLY Design A Diagram.png
IMPLY Design A.png

NIMPLY Gate[edit | edit source]

NIMPLY Gate Symbol
A B Q
0 0 0
0 1 0
1 0 1
1 1 0

A NIMPLY gate is the negation of an IMPLY gate. It is a two-input logic gate that outputs power only if the logical IMPLY operation between the inputs is false. It will only output power when input A is true and input B is false. This is equivalent to "A AND (NOT B)".

Name Description Stable Materials Diagram Image
Design A A single Power Inverter acts as a NIMPLY gate when treating the power input as input A and the control input as input B.
See also: Basic_Circuits#Components
No

UTILITY.SWITCH INVERTER.png Power Inverter x1

NIMPLY Design A Diagram.png
NIMPLY Design A.png
Design B Created by connecting design A to a diode. Yes

UTILITY.SWITCH AUTO.png Auto Switch x1
UTILITY.SWITCH INVERTER.png Power Inverter x1

NIMPLY Design B Diagram.png
NIMPLY Design B.jpg

Multiplexers And Demultiplexers[edit | edit source]

Multiplexer[edit | edit source]

2-Input Multiplexer Symbol
4-Input
S0 S1 Q
0 0 P0
0 1 P1
1 0 P2
1 1 P3
2-Input
S0 Q
0 P0
1 P1

A multiplexer (mux, for short) is used to select a single signal from multiple inputs and send it to a single output. Multiplexers typically have 2^N inputs and N "selector" inputs which determine the signal to use. For example, a 2-input mux would have 2 inputs and 1 selector signal, a 4-input mux would have 4 inputs and 2 selectors, an 8-input would have 8 and 3, etc. On this page, the inputs are labeled "P0", "P1", etc., the selector inputs are labeled "S0", "S1", etc., and the output is labeled Q. The selectors are chosen such that it would be like counting in binary, e.g. S0 and S1 being off would correspond to choosing P0 and S0 and S1 being on would correspond to choosing P1.

Each design name is prefixed with the number of inputs.

Name Description Stable Materials Diagram Image
Design 2A Design 4A but with 2 inputs and 1 selector Yes

UTILITY.SWITCH AUTO.png Auto Switch x2
UTILITY.SWITCH INVERTER.png Power Inverter x1

Multiplexer Design 2A Diagram.png
Multiplexer Design 2A.jpg
Design 4A[1] A 2x4 grid of Auto Switches and Power Inverters is arranged so that the left input is the circuit's specified input and the control signal comes from the corresponding selector signal, all being ORed together and fed into a diode. Yes

UTILITY.SWITCH AUTO.png Auto Switch x5
UTILITY.SWITCH INVERTER.png Power Inverter x4

Multiplexer Design 4A Diagram.png
Multiplexer Design 4A.jpg

Demultiplexer[edit | edit source]

2-Output Demultiplexer Symbol
4-Output
S0 S1 Q0 Q1 Q2 Q3
0 0 P 0 0 0
0 1 0 P 0 0
1 0 0 0 P 0
1 1 0 0 0 P
2-Output
S0 Q0 Q1
0 P 0
1 0 P

A demultiplexer (demux, for short) is used to select a specified output path for a single input. Demultiplexers typically have 2^N outputs and N selector inputs which determine which output will be chosen. This circuit is the inverse of the Multiplexer. On this page, the single input is labeled P, the selectors are labeled "S0", "S1", etc., and the outputs are labeled "Q0", "Q1", etc. The selectors are chosen such that it would be like counting in binary, e.g. S0 and S1 being off would correspond to output Q0 taking the value of P and all others remaining off.

Each design name is prefixed with the number of outputs.

Name Description Stable Materials Diagram Image
Design 2A Design 4A but with 2 outputs and 1 selector Yes

UTILITY.SWITCH AUTO.png Auto Switch x3
UTILITY.SWITCH INVERTER.png Power Inverter x1

Demultiplexer Design 2A Diagram.png
Demultiplexer Design 2A.jpg
Design 4A[1] A 2x4 grid of Auto Switches and Power Inverters is arranged so that the left input is the circuit's input and the control signal comes from the corresponding selector signal. Then he output from each final component is sent to the different outputs, each prefixed with a diode. Yes

UTILITY.SWITCH AUTO.png Auto Switch x8
UTILITY.SWITCH INVERTER.png Power Inverter x4

Demultiplexer Design 4A Diagram.png
Demultiplexer Design 4A.jpg

References[edit | edit source]