Equation for AND, NOT, and OR gates. - SS2 ICT Lesson Note
AND Gate:
An AND gate is a digital logic gate that outputs true (1) only when both of its inputs are true (1). Here's the truth table for an AND gate:
Â
Input A Input BÂ Output
0Â Â Â Â Â Â Â Â Â Â Â Â Â 0Â Â Â Â Â Â Â Â Â Â Â Â Â 0
0Â Â Â Â Â Â Â Â Â Â Â Â Â 1Â Â Â Â Â Â Â Â Â Â Â Â Â 0
1Â Â Â Â Â Â Â Â Â Â Â Â Â 0Â Â Â Â Â Â Â Â Â Â Â Â Â 0
1Â Â Â Â Â Â Â Â Â Â Â Â Â 1Â Â Â Â Â Â Â Â Â Â Â Â Â 1
The equation for an AND gate can be written as:
Output = A AND B
Â
OR Gate:
An OR gate is a digital logic gate that outputs true (1) if at least one of its inputs is true (1). Here's the truth table for an OR gate:
Â
Input A Input BÂ Output
0Â Â Â Â Â Â Â Â Â Â Â Â Â 0Â Â Â Â Â Â Â Â Â Â Â Â Â 0
0Â Â Â Â Â Â Â Â Â Â Â Â Â 1Â Â Â Â Â Â Â Â Â Â Â Â Â 1
1Â Â Â Â Â Â Â Â Â Â Â Â Â 0Â Â Â Â Â Â Â Â Â Â Â Â Â 1
1Â Â Â Â Â Â Â Â Â Â Â Â Â 1Â Â Â Â Â Â Â Â Â Â Â Â Â 1
The equation for an OR gate can be written as:
Output = A OR B
Â
NOT Gate:
A NOT gate, also known as an inverter, is a digital logic gate that outputs the opposite of its input. Here's the truth table for a NOT gate:
Â
Input A Output
0Â Â Â Â Â Â Â Â Â Â Â Â Â 1
1Â Â Â Â Â Â Â Â Â Â Â Â Â 0
The equation for a NOT gate can be written as:
Output = NOT A or Output = A'
Â
In these equations, A and B are the input values, and 'NOT' represents the logical negation operation.
Â
These logic gates are fundamental building blocks in digital circuit design and play a crucial role in various electronic devices and systems.
Â