Solved Example based on XNOR Gate
A person is making a lift, where the lift will start,
- only when the current floor and destination floor is given by the user,
- also if neither current floor and nor destination floor is given.
Otherwise it will not start.
Solution
According to the question let’s build a truth table.
Suppose, current floor number input denoted by ‘1’ and input not given denoted by ‘0’;
The same way, the destination floor number given denoted by ‘1’ , and not given denoted by ‘0’.
And starting of the lift is denoted by ‘1’ and not starting is denoted bt ‘0’.
Now, possible outcomes are :
Input(A) | Input (B) | Output (A⨀B) |
---|---|---|
0 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
So, according to the question, the lift will start only if both of current and destination floor number is given or neither the current nor destination floor number is given. Otherwise, it will not start. Here we can use an XNOR Gate, as XNOR gate functions are the same, it will print one, only when, both of the input is true, or neither is true.
So the first and the last combination are, when both of the inputs are true, means both of the floor numbers given or none given. In such a case, the lift will start.
The second and third combinations are for when either the current floor number is given and the destination floor number is not given or either the destination floor number is given and the current floor number is not given. In both of the cases, the lift will not start.
XNOR Gate
In digital electronics, the XNOR gate is a type of logic gate used to perform an exclusive NOR gate. It is a special type of logic gate used in digital circuits. An XNOR gate, also known as an equivalence gate or an EX-NOR gate, is a digital logic gate that outputs true (1) when an even number of true inputs are present. It produces a true output if both of its inputs are the same (either both true or both false). It is also known as the material biconditional. This logic gate is denoted by this sign “⊙”.
Table of Content
- Definition
- XNOR Gate Logic Symbol
- Truth Table of XNOR Gate
- Operation of XNOR Gate
- Equivalent Gates
- Applications
- Advantages
- Disadvantages
- Solved Example