Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
157 changes: 157 additions & 0 deletions notes/digital-electronics-and-logic-circuits/logic-gates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
# Logic Gates

## Introduction

Logic gates are the fundamental building blocks in digital electronics.

Logic gates perform logical operation based on the inputs provided to it and gives a logical output that can be either high(1) or low(0).

Logic gates are used in our day-to-day lives,such as in the architecture of our telephones,laptops,tablets and memory devices.

# Types of Logic Gates
There are basically seven main types of logic gates.

## 1. AND GATE


### Definition
The output state of the AND gate will be high(1) if both the input is high(1).

### Boolean Expression

Y = A . B
The value of y will be True when both the inputs will be True.

### Truth Table

![alt text](image-7.png)

### Diagram

![alt text](image.png)

### Real Life Example
An AND gate works like a circuit where two switches must be ON to light a bulb.

## 2. OR GATE

### Definition
The output state of OR gate will be high(1) if any of the input state is high(1).

### Boolean Expression

Y = A + B
The value of y will be True when one of the inputs will be True.

### Truth Table

![alt text](image-8.png)

### Diagram
![alt text](image-1.png)


## 3. NOT GATE

### Definition
When the input signal is low(0) the output signal is high(1) and vice-versa.

### Boolean Expression

Y = A'
The value of y will be HIGH when A will be low.

### Truth Table

![alt text](image-9.png)


### Diagram

![alt text](image-2.png)



## 4. NOR GATE
It is the universal logic gate

### Definition
The output state of the NOR gate will be high(1) when all the input are low(0).

### Boolean Expression

Y = (A + B)'
The value of y will be True when all the inputs are set to 0.

### Truth Table

![alt text](image-10.png)

### Diagram

![alt text](image-3.png)


## 5. NAND GATE


### Definition
The output state of the NAND gate will be high(1) when either of the input is high(1) or both of its inputs are low(0).

### Boolean Expression

Y = (A . B)'


### Truth Table

![alt text](image-11.png)

### Diagram

![alt text](image-4.png)


## 6. XOR GATE


### Definition
The output state of the XOR gate will be high(1) if one of them low(0) then the other one will be high(1).

### Boolean Expression

Y = A'B + AB'


### Truth Table

![alt text](image-12.png)

### Diagram

![alt text](image-5.png)


## 7. XNOR GATE


### Definition
The output state of the XNOR gate will be high(1) when both the inputs are high(1) or low(0).

### Boolean Expression

Y = AB + A'B'


### Truth Table

![alt text](image-13.png)

### Diagram

![alt text](image-6.png)



# Conclusion
Logic gates are essential components of digital electronics.Understanding these components help students to learn and explore advance topics like flip=flops , counter, register and processor.