skip to content
1 of 2

INTRODUCTION

LOGIC GATE

Logic gates are an important concept if you are studying electronics. These are important digital devices that are mainly based on the Boolean function. Logic gates are used to carry out logical operations on single or multiple binary inputs and give one binary output. In simple terms, logic gates are the electronic circuits in a digital system.

Most logic gates take an input of two binary values, and output a single value of a 1 or 0.

By combining thousands or millions of logic gates, it is possible to perform highly complex operations. The maximum number of logic gates on an integrated circuit is determined by the size of the chip divided by the size of the logic gates. Since transistors make up most of the logic gates in computer processors, smaller transistors mean more complex and faster processors.

There are seven different types of logic gates, which are outlined below.

 

In the following examples, each logic gate except the NOT gate has two inputs, A and B, which can either be 1 (True) or 0 (False). The resulting output is a single value of 1 if the result is true, or 0 if the result is false.

  1. AND – True if A and B are both True

  2. OR – True if either A or B are True

  3. NOT – Inverts value: True if input is False; False if input is True

  4. XOR – True if either A or B are True, but False if both are True

  5. NAND – AND followed by NOT: False only if A and B are both True

  6. NOR – OR followed by NOT: True only if A and B are both False

  7. XNOR – XOR followed by NOT: True if A and B are both True or both False