Simple Gates
- AND Gate

AND Gate

Syntax

AND [input labels seperated by space] [output label]

Example

AND A B C #Two Inputs (A,B) and Output C

AND A B C d #Three Inputs (A,B,C) and Output d

The output of this gate is the logical AND operation of all input signals. In the first example given, A and B are the input signal pins and C is the output pin. By default, the last pin specified in the code is taken as the output pin of the Gate. Therefore, multiple inputs (2 or above) can be given to the AND gate.