NOR is a two-input gate that outputs the joint denial of its inputs. That is, the output is 1 only when both inputs are 0.
It is a universal gate. Meaning, NOR gates alone can be combined to form any other gate.
The code below realizes a NOR gate by feeding two inputs into an inverter.
nor.t not 0 0 in a -1..0 0 in b 1 0 out o -1..1 5
The following image presents the outputs for all possible inputs.
The L-tetromino operates as an OR gate, resulting in output opposite of OR.
© 2023 meatfighter.com |