Both AND and OR are the two
basic logic gates designed to execute boolean operations. However, the crucial
difference lies in the operation performed by them. Here this article gives
information about the difference between AND and OR gate to better understand
this topic.
Definition of AND gate:
A logic gate that is defined to execute the
logical multiplication of binary input is known as the AND gate. We know the
basic product rule that if 1 and 0 is multiplied then automatically the
resultant will be 0. However when 1 and 1 are multiplied then it is the product
will be 1 itself.
Definition of OR gate:
A type of logic gate that is designed to perform
logical addition of two applied inputs is known as the OR gate. This logic
gates follows the basic rule of the addition of digital inputs.
The main key difference between AND gate and OR gate:
- AND gate implements logical
conjunction and the OR gate implements logical disjunction.
- AND gate gives a true output
only when both input are true whereas the OR gate gives an output of true if
at least one of the input is true.
- AND gate provides the product of two binary value as its output. However, the OR gate gives the summation of the two applied binary inputs as its output.
- The truth table of the AND gate has only true value in the output column though the truth table of the OR
gate has three of them.
- The boolean expression of the
AND gate is represented as A.B. While the boolean expression of the OR the gate is given as A+B, where A and B are considered to be the two applied
inputs.
- In AND gate logic high output is achieved only when both the applied input is high. While in the OR gate, a logic high is achieved if either anyone or both are input is high.
Explore more information: