AND Gate vs OR Gate
AND and OR gates are two types of logic gates, which are physical devices made to implement a Boolean function. A Boolean function performs a logic operation on one or more logic inputs (given in two states, such as true/false, 1/0, high/law etc) and gives a single logic output (either true or false).
AND gate implements the logical function called ‘conjunction’. The standard AND gate is a two input (Let say A and B), one output system. AND gate will give an output of ‘true’ (or 1), only if, both A and B inputs are ‘true’ (or 1). AND gate can be described by following table.
This table is called the ‘Truth table’ for the AND gate. Usually AND gate represented by following symbol in logic gates.
OR gate implements the logical function called ‘disjunction’. The standard OR gate is also a two input (Let say A and B), one output system as the AND gate. OR gate will give an output of ‘true’ (or 1) if at least one of the A and B inputs is ‘true’ (or 1). OR gate can be described by following truth table.
Usually AND gate represented by following symbol in logic gates.
What is the difference between AND gate and OR gate?
1. AND gate gives a ‘true’ output only when both inputs are ‘true’, whereas OR gate gives an output of ‘true’ if at least one of the inputs is ‘true’.
2. Truth table of AND gate has only one ‘True’ value in output column though truth table of OR gate has three of them.
3. AND gate implements logical conjunction and OR gate implements logical disjunction.