basic logic gates -...
TRANSCRIPT
![Page 1: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/1.jpg)
Basic Logic Gates
By: Dr. Yogendar Kr. Verma
S. S Jain Subodh P.G. (Autonomous) College
SUBJECT -CA
TITLE - Basic Logic Gates
![Page 2: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/2.jpg)
Basic Logic Gates
and Basic Digital Design
• NOT, AND, and OR Gates
• NAND and NOR Gates
• Exclusive-OR (XOR) Gate
• Multiple-input Gates
S. S Jain Subodh P.G. (Autonomous) College
![Page 3: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/3.jpg)
NOT Gate -- Inverter
X Y
0
1
1
0
X Y
Y
NOT
X Y
Y = ~X
NOT
S. S Jain Subodh P.G. (Autonomous) College
![Page 4: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/4.jpg)
NOT • Y = ~X (Verilog) • Y = !X (ABEL) • Y = not X (VHDL) • Y = X’ • Y = X • Y = X (textook)
• not(Y,X) (Verilog)
S. S Jain Subodh P.G. (Autonomous) College
![Page 5: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/5.jpg)
NOT
X ~X ~~X = X
X ~X ~~X
0 1 0
1 0 1
S. S Jain Subodh P.G. (Autonomous) College
![Page 6: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/6.jpg)
AND Gate AND
X
Y
Z
Z = X & Y
X Y Z
0 0 0
0 1 0
1 0 0
1 1 1
S. S Jain Subodh P.G. (Autonomous) College
![Page 7: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/7.jpg)
AND
• X & Y (Verilog and ABEL)
• X and Y (VHDL)
• X Y • X Y • X * Y • XY (textbook)
• and(Z,X,Y) (Verilog)
U
V
S. S Jain Subodh P.G. (Autonomous) College
![Page 8: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/8.jpg)
OR Gate OR
X
Y Z
Z = X | Y
X Y Z
0 0 0
0 1 1
1 0 1
1 1 1
S. S Jain Subodh P.G. (Autonomous) College
![Page 9: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/9.jpg)
OR
• X | Y (Verilog)
• X # Y (ABEL)
• X or Y (VHDL)
• X + Y (textbook)
• X V Y
• X U Y
• or(Z,X,Y) (Verilog)
S. S Jain Subodh P.G. (Autonomous) College
![Page 10: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/10.jpg)
Basic Logic Gates
and Basic Digital Design • NOT, AND, and OR Gates
• NAND and NOR Gates
• Exclusive-OR (XOR) Gate
• Multiple-input Gates
S. S Jain Subodh P.G. (Autonomous) College
![Page 11: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/11.jpg)
NAND Gate NAND
X
Y
Z
X Y Z
0 0 1
0 1 1
1 0 1
1 1 0
Z = ~(X & Y)
nand(Z,X,Y)
S. S Jain Subodh P.G. (Autonomous) College
![Page 12: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/12.jpg)
NAND Gate NOT-AND
X
Y
Z
W = X & Y
Z = ~W = ~(X & Y)
X Y W Z
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
W
S. S Jain Subodh P.G. (Autonomous) College
![Page 13: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/13.jpg)
NOR Gate NOR
X
Y Z
X Y Z
0 0 1
0 1 0
1 0 0
1 1 0 Z = ~(X | Y)
nor(Z,X,Y)
S. S Jain Subodh P.G. (Autonomous) College
![Page 14: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/14.jpg)
NOR Gate NOT-OR
X
Y
W = X | Y
Z = ~W = ~(X | Y)
X Y W Z
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
Z W
S. S Jain Subodh P.G. (Autonomous) College
![Page 15: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/15.jpg)
Basic Logic Gates
and Basic Digital Design
• NOT, AND, and OR Gates
• NAND and NOR Gates
• Exclusive-OR (XOR) Gate
• Multiple-input Gates
S. S Jain Subodh P.G. (Autonomous) College
![Page 16: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/16.jpg)
NAND Gate X
Y
X
Y
Z Z
Z = ~(X & Y) Z = ~X | ~Y
=
X Y W Z
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
X Y ~X ~Y Z
0 0 1 1 1
0 1 1 0 1
1 0 0 1 1
1 1 0 0 0
S. S Jain Subodh P.G. (Autonomous) College
![Page 17: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/17.jpg)
NOR Gate X
Y Z
Z = ~(X | Y)
X Y Z
0 0 1
0 1 0
1 0 0
1 1 0
X
Y
Z
Z = ~X & ~Y
X Y ~X ~Y Z
0 0 1 1 1
0 1 1 0 0
1 0 0 1 0
1 1 0 0 0
S. S Jain Subodh P.G. (Autonomous) College
![Page 18: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/18.jpg)
Basic Logic Gates
and Basic Digital Design
• NOT, AND, and OR Gates
• NAND and NOR Gates
• Exclusive-OR (XOR) Gate
• Multiple-input Gates
S. S Jain Subodh P.G. (Autonomous) College
![Page 19: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/19.jpg)
Exclusive-OR Gate
X Y Z XOR
X
Y Z 0 0 0
0 1 1
1 0 1
1 1 0
Z = X ^ Y
xor(Z,X,Y)
S. S Jain Subodh P.G. (Autonomous) College
![Page 20: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/20.jpg)
XOR
• X ^ Y (Verilog)
• X $ Y (ABEL)
• X @ Y
• xor(Z,X,Y) (Verilog)
X Y (textbook)
S. S Jain Subodh P.G. (Autonomous) College
![Page 21: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/21.jpg)
Exclusive-NOR Gate
X Y Z XNOR
X
Y Z 0 0 1
0 1 0
1 0 0
1 1 1
Z = ~(X ^ Y)
Z = X ~^ Y
xnor(Z,X,Y)
S. S Jain Subodh P.G. (Autonomous) College
![Page 22: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/22.jpg)
XNOR
• X ~^ Y (Verilog)
• !(X $ Y) (ABEL)
• X @ Y
• xnor(Z,X,Y) (Verilog)
X Y
S. S Jain Subodh P.G. (Autonomous) College
![Page 23: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/23.jpg)
Basic Logic Gates
and Basic Digital Design • NOT, AND, and OR Gates
• NAND and NOR Gates
• Exclusive-OR (XOR) Gate
• Multiple-input Gates
S. S Jain Subodh P.G. (Autonomous) College
![Page 24: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/24.jpg)
Multiple-input Gates
Z 1 2
3 4 Z Z
Z
S. S Jain Subodh P.G. (Autonomous) College
![Page 25: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/25.jpg)
Multiple-input AND Gate
Z 1
Output is HIGH only if all inputs are HIGH Z 1
An open input will float HIGH
S. S Jain Subodh P.G. (Autonomous) College
![Page 26: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/26.jpg)
Multiple-input OR Gate
Output is LOW only if all inputs are LOW Z 2
2 Z
S. S Jain Subodh P.G. (Autonomous) College
![Page 27: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/27.jpg)
Multiple-input NAND Gate
Output is LOW only if all inputs are HIGH Z 3
3 Z
S. S Jain Subodh P.G. (Autonomous) College
![Page 28: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/28.jpg)
Multiple-input NOR Gate
Output is HIGH only if all inputs are LOW Z 4
4 Z
S. S Jain Subodh P.G. (Autonomous) College
![Page 29: Basic Logic Gates - subodhmcainstitute.comsubodhmcainstitute.com/pdf/tutorials/BasicLogicGates1.pdfBasic Logic Gates and Basic Digital Design NOT, AND, and OR Gates NAND and NOR Gates](https://reader030.vdocuments.site/reader030/viewer/2022040113/5e0925d13fea590b6a5dc91e/html5/thumbnails/29.jpg)
S. S Jain Subodh P.G. (Autonomous) College
Thanks you………