SlideShare a Scribd company logo
Digital Electronics & Computer
Organization Lab
Syllabus
• Simulation using ORCAD
• To simulate Half Adder circuit
• To simulate Full Adder Circuit
• To simulate the logical part of a simple Arithmetic logical Unit
• To simulate a 4-bit binary adder-subtractor circuit
• Simulation of one digit BCD Adder.
• To simulate and study the tristate buffer
• To simulate the common bus using tri-state buffers and decoder
• To simulate the common bus using multiplexers.
• Study of 8085Microprocessor
• Study of instruction set of 8085
Basic Logic Gates
Basic Logic Gates
and Basic Digital Design
• NOT, AND, and OR Gates
• NAND and NOR Gates
• Exclusive-OR (XOR) Gate
• Multiple-input Gates
NOT gate
• Referred to as an inverter
• Converts the input state to an opposite
output state
• Only two input combinations possible
NOT Gate -- Inverter
X Y
0
1
1
0
X Y
Y
NOT
X Y
Y = ~X
NOT
• Y = ~X (Verilog)
• Y = !X (ABEL)
• Y = not X (VHDL)
• Y = X’
• Y = X
• Y = X (textook)
• not(Y,X) (Verilog)
NOT
NOT
X ~X ~~X = X
X ~X ~~X
0 1 0
1 0 1
AND gate
• Two or more inputs and a single output
• Produces a 1 output only when all inputs are
1s
• Total number of possible combinations: N =
2power(n) where: n = total number of input
variables
• Performs basic operation of multiplication
AND Gate
AND
X
Y
Z
Z = X & Y
X Y Z
0 0 0
0 1 0
1 0 0
1 1 1
• X & Y (Verilog and ABEL)
• X and Y (VHDL)
• X Y
• X Y
• X * Y
• XY (textbook)
• and(Z,X,Y) (Verilog)
AND
U
V
OR gate
• Produces a 1 output if any of its inputs are
1s
• Performs basic operation of addition
• Can have any number of inputs greater than
one
OR Gate
OR
X
Y
Z
Z = X | Y
X Y Z
0 0 0
0 1 1
1 0 1
1 1 1
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)
NAND gate
• Combination of an inverter and an AND
gate (NOT-AND)
• Most commonly used logic function
• Produces a 1 output when any of the inputs
are 0s
• Available with two, three, four, eight, and
thirteen inputs
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)
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
NOR gate
• Combination of an inverter and an OR gate
(NOT-OR)
• Produces a 1 output only when both inputs
are 0s
• Available with two, three, four, and eight
inputs
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)
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
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
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
X-OR and X-NOR gates
Exclusive OR gate (XOR)
• Has only two inputs
• Produces a 1 output only if both inputs are
different
Exclusive NOR gate (XNOR)
• Complement of the XOR gate
• Produces a 1 output only when both inputs
are the same
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)
XOR
• X ^ Y (Verilog)
• X $ Y (ABEL)
• X @ Y
• xor(Z,X,Y) (Verilog)
X Y (textbook)

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)
XNOR
• X ~^ Y (Verilog)
• !(X $ Y) (ABEL)
• X @ Y
• xnor(Z,X,Y) (Verilog)
X Y
Multiple-input Gates
Z 1 2
3 4
Z Z
Z
Multiple-input AND Gate
Z 1
Output is HIGH only if all inputs are HIGH
Z1
An open input will float HIGH
Multiple-input OR Gate
Output is LOW only if all inputs are LOW
Z2
2
Z
Multiple-input NAND Gate
Output is LOW only if all inputs are HIGH
Z3
3
Z
Multiple-input NOR Gate
Output is HIGH only if all inputs are LOW
Z4
4
Z
Summary
• An AND gate produces a 1 output when all
of its inputs are 1s
• An OR gate produces a 1 output if any of its
inputs are 1s
• A NOT gate converts the input state to an
opposite output state
• A NAND gate produces a 1 output when
any of the inputs are 0s
Summary
• A NOR gate produces a 1 output only when
both inputs are 0s
• An exclusive OR (XOR) gate produces a 1
output only if both inputs are different
• An exclusive NOR (XNOR) gate produces
a 1 output only when both inputs are the
same
Any Questions?

More Related Content

PPT
dld.ppt
PPTX
Digital Electronics Fundamentals
DOCX
e CAD lab manual
PDF
BASIC LOGIC GATES.pdf
PDF
ECAD lab manual
DOCX
VLSI & E-CAD Lab Manual
PPSX
Logic circuit2017
PPT
9525.ppt
dld.ppt
Digital Electronics Fundamentals
e CAD lab manual
BASIC LOGIC GATES.pdf
ECAD lab manual
VLSI & E-CAD Lab Manual
Logic circuit2017
9525.ppt

Similar to lab1_basic logic gates.ppt (20)

PPTX
Combinational logic circuits design and implementation
PPT
boolean algrebra and logic gates in short
PPT
101_2_digitalSystem_Chap_2_part_3.ppt
PPTX
introduction of logic gates
PPTX
Logic gate
PPTX
Logic Gates
PPT
ch 3.ppt digital fundamentals loyd de ppt
PDF
Chapter 3_Logic Gates (EEEg4302).pdf
PDF
PLC Logic Circuits
PDF
Digital system design practical file
PPTX
chapter3.pptx electrical engineering for university
PPTX
gadhegadaedjsrijfzshbnzskfrkjsbipsjfdbdfnbdfkbj
PPTX
assignment_mathematics.pptx
PDF
Logic gates and Boolean.pdf
PPTX
Lecture 04-Digital logic gates.pptx
PPT
digital logic circuits, digital component
PPTX
Logic gates and NAND and NOR univarsal gates
PPTX
Logic Gates
PPTX
logic gates ppt.pptx
Combinational logic circuits design and implementation
boolean algrebra and logic gates in short
101_2_digitalSystem_Chap_2_part_3.ppt
introduction of logic gates
Logic gate
Logic Gates
ch 3.ppt digital fundamentals loyd de ppt
Chapter 3_Logic Gates (EEEg4302).pdf
PLC Logic Circuits
Digital system design practical file
chapter3.pptx electrical engineering for university
gadhegadaedjsrijfzshbnzskfrkjsbipsjfdbdfnbdfkbj
assignment_mathematics.pptx
Logic gates and Boolean.pdf
Lecture 04-Digital logic gates.pptx
digital logic circuits, digital component
Logic gates and NAND and NOR univarsal gates
Logic Gates
logic gates ppt.pptx
Ad

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Geodesy 1.pptx...............................................
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Well-logging-methods_new................
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
DOCX
573137875-Attendance-Management-System-original
PPT
Mechanical Engineering MATERIALS Selection
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Welding lecture in detail for understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Geodesy 1.pptx...............................................
bas. eng. economics group 4 presentation 1.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Well-logging-methods_new................
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
573137875-Attendance-Management-System-original
Mechanical Engineering MATERIALS Selection
Embodied AI: Ushering in the Next Era of Intelligent Systems
Internet of Things (IOT) - A guide to understanding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
additive manufacturing of ss316l using mig welding
Welding lecture in detail for understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Ad

lab1_basic logic gates.ppt

  • 1. Digital Electronics & Computer Organization Lab
  • 2. Syllabus • Simulation using ORCAD • To simulate Half Adder circuit • To simulate Full Adder Circuit • To simulate the logical part of a simple Arithmetic logical Unit • To simulate a 4-bit binary adder-subtractor circuit • Simulation of one digit BCD Adder. • To simulate and study the tristate buffer • To simulate the common bus using tri-state buffers and decoder • To simulate the common bus using multiplexers. • Study of 8085Microprocessor • Study of instruction set of 8085
  • 4. Basic Logic Gates and Basic Digital Design • NOT, AND, and OR Gates • NAND and NOR Gates • Exclusive-OR (XOR) Gate • Multiple-input Gates
  • 5. NOT gate • Referred to as an inverter • Converts the input state to an opposite output state • Only two input combinations possible
  • 6. NOT Gate -- Inverter X Y 0 1 1 0 X Y Y NOT X Y Y = ~X NOT
  • 7. • Y = ~X (Verilog) • Y = !X (ABEL) • Y = not X (VHDL) • Y = X’ • Y = X • Y = X (textook) • not(Y,X) (Verilog) NOT
  • 8. NOT X ~X ~~X = X X ~X ~~X 0 1 0 1 0 1
  • 9. AND gate • Two or more inputs and a single output • Produces a 1 output only when all inputs are 1s • Total number of possible combinations: N = 2power(n) where: n = total number of input variables • Performs basic operation of multiplication
  • 10. AND Gate AND X Y Z Z = X & Y X Y Z 0 0 0 0 1 0 1 0 0 1 1 1
  • 11. • X & Y (Verilog and ABEL) • X and Y (VHDL) • X Y • X Y • X * Y • XY (textbook) • and(Z,X,Y) (Verilog) AND U V
  • 12. OR gate • Produces a 1 output if any of its inputs are 1s • Performs basic operation of addition • Can have any number of inputs greater than one
  • 13. OR Gate OR X Y Z Z = X | Y X Y Z 0 0 0 0 1 1 1 0 1 1 1 1
  • 14. 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)
  • 15. NAND gate • Combination of an inverter and an AND gate (NOT-AND) • Most commonly used logic function • Produces a 1 output when any of the inputs are 0s • Available with two, three, four, eight, and thirteen inputs
  • 16. 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)
  • 17. 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
  • 18. NOR gate • Combination of an inverter and an OR gate (NOT-OR) • Produces a 1 output only when both inputs are 0s • Available with two, three, four, and eight inputs
  • 19. 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)
  • 20. 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
  • 21. 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
  • 22. 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
  • 23. X-OR and X-NOR gates Exclusive OR gate (XOR) • Has only two inputs • Produces a 1 output only if both inputs are different Exclusive NOR gate (XNOR) • Complement of the XOR gate • Produces a 1 output only when both inputs are the same
  • 24. 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)
  • 25. XOR • X ^ Y (Verilog) • X $ Y (ABEL) • X @ Y • xor(Z,X,Y) (Verilog) X Y (textbook) 
  • 26. 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)
  • 27. XNOR • X ~^ Y (Verilog) • !(X $ Y) (ABEL) • X @ Y • xnor(Z,X,Y) (Verilog) X Y
  • 29. Multiple-input AND Gate Z 1 Output is HIGH only if all inputs are HIGH Z1 An open input will float HIGH
  • 30. Multiple-input OR Gate Output is LOW only if all inputs are LOW Z2 2 Z
  • 31. Multiple-input NAND Gate Output is LOW only if all inputs are HIGH Z3 3 Z
  • 32. Multiple-input NOR Gate Output is HIGH only if all inputs are LOW Z4 4 Z
  • 33. Summary • An AND gate produces a 1 output when all of its inputs are 1s • An OR gate produces a 1 output if any of its inputs are 1s • A NOT gate converts the input state to an opposite output state • A NAND gate produces a 1 output when any of the inputs are 0s
  • 34. Summary • A NOR gate produces a 1 output only when both inputs are 0s • An exclusive OR (XOR) gate produces a 1 output only if both inputs are different • An exclusive NOR (XNOR) gate produces a 1 output only when both inputs are the same