Actions

User

Difference between revisions of "Carsten Milkau/NOT Gate"

From Unofficial Stationeers Wiki

< User:Carsten Milkau
(Created page with "= NOT Gate = A NOT gate, sometimes also called ''inverter'', is a circuit that outputs the value that was not input. It has a single input and output, and each can only take...")
 
(Implementation: Improved example of NOT gate elimination)
Line 22: Line 22:
 
== Implementation ==
 
== Implementation ==
  
NOT gates can often be avoided by modifying the circuit. For instance, if you use the output of a NOT gate to control the selector input of a [[Kit (Logic Processor)#Logic Select Unit|Logic Select Unit]], you can just switch the two inputs with each other instead and eleminate the NOT gate.
+
NOT gates can often be avoided by modifying the circuit. For instance, an [[User:Carsten Milkau/OR Gate|OR Gate]] with two NOT gates connected to its inputs and outputs can always be replaced by an AND gate with just one NOT gate connected.
  
 
Unfortunately, there is no single-component implementation of a NOT gate. However, if you happen to have a data signal with a known value (like a memory containing a constant), often you can feed this signal into a single component in order to turn it into a NOT gate.
 
Unfortunately, there is no single-component implementation of a NOT gate. However, if you happen to have a data signal with a known value (like a memory containing a constant), often you can feed this signal into a single component in order to turn it into a NOT gate.

Revision as of 04:35, 22 July 2018

NOT Gate

A NOT gate, sometimes also called inverter, is a circuit that outputs the value that was not input. It has a single input and output, and each can only take one of two pre-defined values (typically 0 and 1). Whatever the input value is selected, the output value will be the other of the two.

Definition

value table
input output
0 1
1 0

Connectors

  • Input: one of two values (0 or 1)
  • Output: the other of the two values

Implementation

NOT gates can often be avoided by modifying the circuit. For instance, an OR Gate with two NOT gates connected to its inputs and outputs can always be replaced by an AND gate with just one NOT gate connected.

Unfortunately, there is no single-component implementation of a NOT gate. However, if you happen to have a data signal with a known value (like a memory containing a constant), often you can feed this signal into a single component in order to turn it into a NOT gate.

Using A Less-Than Comparator

Using An Equality Comparator

Using Subtraction