Logical Gates:

In digital electronics, logical gates are the building blocks of digital circuits. Logical gates are electronic devices that operate on one or more binary inputs to produce a single binary output, which depends on the logic of the gate. There are several types of logical gates, and in this blog post, we'll discuss each one in detail.Click here to learn digital logic design

 

AND Gate:


An AND gate is a logical gate that produces an output of 1 if and only if all of its inputs are 1. The symbol for an AND gate is a small circle followed by a large circle, with the inputs entering the small circle and the output exiting the large circle. 

The following is an AND gate's truth table:

A

B

Output

0

0

0

0

1

0

1

0

0

1

1

1


AND Gate

OR Gate:

An OR gate is a logical gate that produces an output of 1 if any of its inputs are 1. The symbol for an OR gate is a large circle, with the inputs entering the circle and the output exiting the circle. 

The following is an OR gate's truth table::

A

B

Q

0

0

0

0

1

1

1

0

1

1

1

1


OR Gate
OR Gate

                                                                     

NOT Gate

A NOT gate, also known as an inverter, is a logical gate that produces an output that is the opposite of its input. The symbol for a NOT gate is a small circle with a line extending from it, with the input entering the circle and the output exiting the line. 


The following is an NOT gate's truth table:

A

Output

0

1

1

0

NOT Gate

                                                                         

NAND Gate

A NAND gate is a logical gate that produces an output of 0 if and only if all of its inputs are 1. The symbol for a NAND gate is an AND gate with a small circle on its output 

The following is an NAND gate's truth table:

A

B

Output

0

0

1

0

1

1

1

0

1

1

1

0

NAND Gate


NOR Gate

A NOR gate is a logical gate that produces an output of 0 if any of its inputs are 1. The symbol for a NOR gate is an OR gate with a small circle on its output. 

The following is an NOR gate's truth table:

A

B

Output

0

0

1

0

1

0

1

0

0

1

1

0

NOR Gate


XOR Gate

An XOR gate, also known as an exclusive OR gate, is a logical gate that produces an output of 1 if and only if one of its inputs is 1 and the other is 0. The symbol for an XOR gate is a large circle with a plus sign inside, with the inputs entering the circle and the output exiting the circle. 

The following is an XOR gate's truth table:

A

B

Output

0

0

0

0

1

1

1

0

1

1

1          

0

XOR Gate