1 of 21

Topic:-Gates

Submitted By:-Mrs. Mehak Kapoor

Assistant Professor in Computer Science & IT dept.

2 of 21

DEFINITION OF logic gate�

  • A logic gate is a device that acts as a building block for digital circuits. They perform basic logical functions that are fundamental to digital circuits. Most electronic devices we use today will have some form of logic gates in them.
  • For example, logic gates can be used in technologies such as smartphones, tablets or within memory devices.

3 of 21

DEFINITION OF Universal gate

A universal gate is a gate which can implement any Boolean function without need to use any other gate type.

4 of 21

5 of 21

Types of Logic Gates

  • AND
  • OR
  • XOR
  • NOT

6 of 21

AND GATE

  • The AND gate is so named because, if 0 is called "false" and 1 is called "true," the gate acts in the same way as the logical "and" operator. 
  • The following illustration and table show the circuit symbol and logic combinations for an AND gate.

7 of 21

In the symbol, the input terminals are at left and the output terminal is at right. The output is "true" when both inputs are "true." Otherwise, the output is "false." In other words, the output is 1 only when both inputs one AND two are 1.

8 of 21

Truth Table of AND Gate

Input 1

Input 2

Output

 0

 0

1

1

 0

0

1

1

1

9 of 21

OR GATE

  • The OR gate gets its name from the fact that it behaves after the fashion of the logical inclusive "or."
  • The output is "true" if either or both of the inputs are "true."
  • If both inputs are "false," then the output is "false."
  • In other words, for the output to be 1, at least input one OR two must be 1.�

10 of 21

Input 1

Input 2

Output

 0

1

1

1

1

1

1

1

Symbol and Truth table

11 of 21

XOR GATE

  • The XOR ( exclusive-OR ) gate acts in the same way as the logical "either/or.“
  • The output is "true" if either, but not both, of the inputs are "true."
  • The output is "false" if both inputs are "false" or if both inputs are "true.“
  • Another way of looking at this circuit is to observe that the output is 1 if the inputs are different, but 0 if the inputs are the same.

12 of 21

Symbol and truth table

Input 1

Input 2

Output

 0

 0

 0

 0

1

1

1

1

1

1

0

13 of 21

NOT GATE

  • A logical inverter, sometimes called a NOT gate to differentiate it from other types of electronic inverter devices, has only one input.
  • It reverses the logic state.
  • If the input is 1, then the output is 0. If the input is 0, then the output is 1.

14 of 21

Symbol and truth table

Input

Output

1

1

15 of 21

NAND Gate

  • The NAND gate operates as an AND gate followed by a NOT gate.
  • It acts in the manner of the logical operation "and" followed by negation.
  • The output is "false" if both inputs are "true." Otherwise, the output is "true."

16 of 21

Symbol and truth table

Input 1

Input 2

Output

 0

1

1

1

1

1

1

1

17 of 21

NOR GATE

  • The NOR gate is a combination OR gate followed by an inverter.
  • Its output is "true" if both inputs are "false." Otherwise, the output is "false."

18 of 21

Symbol and truth table

Input 1

Input 2

Output

1

0

1

1

1

1

 0

19 of 21

XNOR GATE

  • The XNOR (exclusive-NOR) gate is a combination XOR gate followed by an inverter.
  • Its output is "true" if the inputs are the same, and "false" if the inputs are different.

20 of 21

Symbol and truth table

Input 1

Input 2

Output

 0

1

 0

1

1

 0

1

1

1

21 of 21

THANK YOU!