SlideShare a Scribd company logo
1 of 60
Chapter Three
Digital Logic Gates (Lec 1)
Prepared by: Esubalew Mulat
Target Group: 2nd Year CS Students
Adapted from Addisalem Hailegnaw, DBU
.
Debre Berhan University, March 2015 E.C.
Topics
• Introduction to Logic Gates
• Types of Logic Gates
• Introduction to Digital Logic Family
• Realization of Logic Gates
Digital Logic Gates
• Digital Logic Gates or in other words Logic gates or Gates
for short are electronic circuits that execute logical
operations.
• Logic gates are the building blocks of digital circuits.
• Generally, logic gates operate on one or more inputs to
provide a single logical output.
Digital Logic Gates…
• Electronic gates require a power supply.
• Gate INPUTS are driven by voltages having two nominal
values.
• The OUTPUT of a gate provides only two nominal values of
voltage.
• There is always a time delay between an input being applied and
the output responding.
Types of Digital Logic Gates
Inverter
• The Inverter has a single input.
• The inverter performs the Boolean NOT operation. When the input
is LOW, the output will be HIGH; when the input is HIGH, the
output will be LOW.
Symbol
• The NOT operation (complement) is shown with an overbar.
• The Boolean expression for the aforementioned inverter is X = 𝐴
Inverter…
Truth Table
Inverter…
Example
Give the waveform of a signal A as in the figure below, determine the
wave form for the output X.
Answer:
AND Gate
• The AND gate produces a HIGH output when all inputs are HIGH.
Otherwise, the output is LOW.
• The AND gate has two or more inputs.
Symbol
• The AND operation is usually shown with a dot between the variables
but it may be implied with no dot.
• Thus, the AND operation is written as X = A.B or X = AB
AND Gate
Truth Table
AND Gate…
Waveform Example
AND Gate…
• The AND operation is used in computer programming as a selective
mask. If you want to retain certain bits of a binary number but reset the
other bits to 0, you could set a mask with an AND.
• Example: If the binary number 10100011 is ANDed with the mask
00001111, what is the result?
Answer: 00000011
OR Gate
• The OR gate has two or more inputs.
• The OR gate produces a HIGH output if any input is HIGH; if all
inputs are LOW, the output is LOW.
Symbol
• The OR operation is shown with a plus sign (+) between the
variables.
• Thus, the OR operation is written as X = A + B.
Truth Table for OR Gate
Truth Table Example Waveform
OR Gate…
• The OR operation can be used in computer programming to set
certain bits of a binary number to 1.
• Example: ASCII letters have a 1 in the bit 5 position for lower case
letters and a 0 in this position for capitals. (Bit positions are
numbered from right to left starting with 0.) What will be the result
if you OR an ASCII upercase letter with the 8-bit mask 00100000?
• Solution: The resulting letter will be lower case.
NAND Gate
• The NAND gate produces a LOW output when all inputs are HIGH;
otherwise, the output is HIGH.
• The NAND operation is shown with a dot between the variables and an
overbar covering them. Thus, the NAND operation is written as
X = 𝐴𝐵 (Alternatively, X = 𝐴. 𝐵)
Symbol
NAND Gate
Truth Table
NAND Gate…
Example Waveform
NAND Gate…
• The NAND gate is particularly useful because it is a universal
gate (all other basic gates can be constructed from NAND gates).
• Question: How would you connect a 2-input NAND gate to form
a basic inverter?
• Answer:
• Exercise: How do you construct an AND gate and an OR gate
from a NAND gate?
NOR Gate
• The NOR gate accepts two or more inputs.
• The NOR gate produces a LOW output if any input is HIGH; if all
inputs are HIGH, then the output is LOW.
• Symbol
• The NOR operation is shown with a plus sign (+) between the
variables and an overbar covering them. Thus, the NOR operation
is written as X = 𝐴 + 𝐵.
NOR Gate…
Truth Table
NOR Gate…
Exemplary Waveform
.
Like a NAND Gate, a NOR gate is
Universal Gate
NOR Gate…
Example: When is the LED turned ON for the circuit shown?
Solution: The LED will be on when any of the four inputs are
HIGH.
XOR Gate
• The XOR Gate takes two or more inputs.
• The XOR gate produces a HIGH output only when both inputs are at
opposite logic levels.
• Symbol
• The XOR operation is written as X = 𝐴𝐵 + 𝐴𝐵. Alternatively, it can
be written with a circled plus sign between the variables as
XOR Gate…
• Exemplary Waveform
• Question: If the A and B waveforms are both inverted for the above
waveforms, how is the output affected?
• Answer: There is no change in the output
XNOR Gate
• The XNOR Gate takes two or more inputs.
• The XNOR gate produces a HIGH output only when both inputs are
at the same logic level.
XNOR Gate…
• Exemplary Waveform
• Question: If the A waveform is inverted but B remains the same,
how is the output affected?
• Answer: The output will be inverted
Digital Circuits and Logic Families
Digital Circuit Examples
Binary to Octal Decoder
Digital Circuit Examples…
Full Adder
Digital Circuit Examples…
Multiplexer
Digital Circuit Examples…
Comparator
Digital Circuit Examples…
CPU and Others
Logic gates are there whenever more
complex digital systems are designed!!!
Digital Logic Families
Digital Logic Gates
• Digital ICs can be classified by the specific circuit
technology to which they belong.
• The circuit technology is referred to as a digital logic family.
• Each logic family has its own basic electronic circuit upon
which more complex digital circuits and components are
developed.
• The basic circuit in each technology is a NAND, NOR, or
Inverter gate.
Digital Logic Gates…
• RTL : (Resistor-Transistor Logic)
• DTL : (Diode-Transistor Logic)
• TTL : (Transistor-Transistor Logic)
• ECL : (Emitter-Coupled Logic)
• MOS : (Metal-Oxide Semiconductor)
• CMOS : (Complementary MOS)
Characteristics of Digital IC
1. Propagation delay (speed of operation).
2. Power dissipation.
3. Fan in.
4. Fan out.
5. Noise immunity.
6. Operating temperature.
7. Power supply requirement.
8. Current and voltage parameters.
Bipolar Transistor Characteristics
• Can be ‘npn’ or ‘pnp’
• Germanium or Silicon
• Bipolar IC transistors are made with silicon and are usually ‘npn’
type.
Bipolar Transistor Characteristics…
Example: Inverter with a BJT
Bipolar Transistor Characteristics…
• hFE is transistor parameter called dc current gain.
Resistor Transistor Logic (RTL)
• The basic circuit of RTL digital logic family is the NOR gate.
• Low level = 0.2 V and high level from 1 to 3.6V
Resistor Transistor Logic (RTL)
• The RTL logic circuit has many drawbacks.
• The resistors increase the input resistance and reduce the switching
speed of the circuit.
• This degrades the rise and fall times of any input pulse.
(Read More on It!)
Diode Transistor Logic (DTL)
• Diode is adapted from transistor.
• Behaves like base-emitter junction of a transistor.
Diode Transistor Logic (DTL)…
• The basic circuit of DTL digital logic family is the NAND gate.
• Low level = 0.2 V and high level from 4 to 5 V
Diode Transistor Logic (DTL)…
• If any input of the gate is low to 0.2 V, the corresponding diode is forward
biased and conducts current through VCC and RD. (RD=5k resistor and
RC is 2K resistor)
• The voltage at point P is equal to the input voltage 0.2 V plus one diode
drop of 0.7 V, for a total of 0.9 V.
• This is not sufficient to drive the transistor Q1 into conducting.
• In order for the transistor to conduct the voltage at P it must overcome a
potential of one VBE (0.6 V) drop in Q1 and two diode voltage drops (0.6
V each)
• Hence, the transistor Q1 remains at cut-off condition and its collector to
emitter behaves like an open circuit.
Diode Transistor Logic (DTL)…
• If all the inputs of the gate are high to 5 V, all the diodes are reverse
biased and the current will flow through RD, D1, D2, and the base of the
transistor.
• The transistor is now driven to saturation region. The voltage at P is
equal to one VBE drop plus two diode drops across D1 and D2, or 3 ×
0.7V = 2.1 V (VBE drop is 0.7 V while conducting and forward biased
diode drop becomes 0.7 V).
• This conforms that all the input diodes are reverse biased and off. With
the transistor at saturated condition, the output drops to VCE(sat) = 0.2 V,
which is low level for the gate.
Transistor - Transistor Logic (TTL)
• Replaces diode with a transistor
• Open collector TTL
• L = 0.2 V and H = 2.4 to 5 V
• The multiple emitters in Q1 behave like the input diodes in DTL,
because they form a p-n junction.
Transistor - Transistor Logic (TTL)…
Debre Berhan University, February 2013 E.C.
Example
• NAND
Emitter Coupled Logic (ECL)
• Non-saturated digital logic family.
• Propagation Delay : 1~ 2 ns (The fastest)
• Was mostly used in systems requiring very high speed.
E.g. Mainframe computers.
• Very bad power dissipation and noise immunity !!!
• Noise margin : 0.3 V
• High fan-out possible
• Obsolete !!
Metal Oxide Semiconductor (MOS)
• MOS (Metal-Oxide Semiconductor) like other FETs is a unipolar
transistor.
• Consume low power
• Consume small area
MOS Symbol
• Enhancement type symbolized with broken line connection
between source and drain.
MOS…
• We can view MOS transistors as electrically controlled switches
• Voltage at gate controls path from source to drain
MOS…
Example: (Inverter, NAND and NOR gates realization with NMOS)
Note: If NOMS is on, it drives a logic to zero. While PMOS drives a logic
to high.
CMOS
• CMOS devices take advantage on MOS devices because of the fact
that both n-channel and p-channel can be fabricated on the same
chip.
• CMOS has important advantages
CMOS
• CMOS devices take advantage on MOS devices because of the fact
that both n-channel and p-channel can be fabricated on the same
chip.
• CMOS has important advantages
 extremely low power use (a reason of its popularity)
 higher noise immunity
 high fan out capability and
 wide range of supply voltage
 Simpler interface with other logic circuits
CMOS Logic Circuits
CMOS Inverter
CMOS Logic Circuits
CMOS NAND
CMOS Logic Circuits
CMOS NOR Gate
Thank you,
Questions?

More Related Content

Similar to Chapter 3.pptx

digitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptxdigitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptxBijaySharma51
 
Logic families(unit 4)
Logic families(unit 4)Logic families(unit 4)
Logic families(unit 4)SURBHI SAROHA
 
202004290049385c9ea4cf11.pptx
202004290049385c9ea4cf11.pptx202004290049385c9ea4cf11.pptx
202004290049385c9ea4cf11.pptxanil_gaur
 
Integrated Circuit
Integrated CircuitIntegrated Circuit
Integrated CircuitNabil Nader
 
Logic gates and Boolean Algebra_VSG
Logic gates and Boolean Algebra_VSGLogic gates and Boolean Algebra_VSG
Logic gates and Boolean Algebra_VSGVaibhavGalbale1
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptxAravindaAKumar1
 
digital logic_families
digital logic_familiesdigital logic_families
digital logic_familiesPatel Jay
 
Digital Logic Design basic gate and Logic Probe
Digital Logic Design basic gate and Logic ProbeDigital Logic Design basic gate and Logic Probe
Digital Logic Design basic gate and Logic ProbeAQCreations
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshopKedarv
 
Circuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITTCircuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITTSrivignessh Pss
 

Similar to Chapter 3.pptx (20)

digitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptxdigitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptx
 
Logic families(unit 4)
Logic families(unit 4)Logic families(unit 4)
Logic families(unit 4)
 
202004290049385c9ea4cf11.pptx
202004290049385c9ea4cf11.pptx202004290049385c9ea4cf11.pptx
202004290049385c9ea4cf11.pptx
 
Logic families
Logic familiesLogic families
Logic families
 
Two Bit Adder
Two Bit AdderTwo Bit Adder
Two Bit Adder
 
Integrated Circuit
Integrated CircuitIntegrated Circuit
Integrated Circuit
 
Logic gates and Boolean Algebra_VSG
Logic gates and Boolean Algebra_VSGLogic gates and Boolean Algebra_VSG
Logic gates and Boolean Algebra_VSG
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptx
 
digital logic_families
digital logic_familiesdigital logic_families
digital logic_families
 
Unit 5 session 3
Unit 5 session 3Unit 5 session 3
Unit 5 session 3
 
Digital Logic Design basic gate and Logic Probe
Digital Logic Design basic gate and Logic ProbeDigital Logic Design basic gate and Logic Probe
Digital Logic Design basic gate and Logic Probe
 
Digital logic, an inverter or NOT gate
Digital logic, an inverter or NOT gateDigital logic, an inverter or NOT gate
Digital logic, an inverter or NOT gate
 
ATT SMK.pptx
ATT SMK.pptxATT SMK.pptx
ATT SMK.pptx
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Digital logic families
Digital logic familiesDigital logic families
Digital logic families
 
Logic families
Logic  familiesLogic  families
Logic families
 
Logic families
Logic familiesLogic families
Logic families
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshop
 
Pdc 2 mark
Pdc   2 markPdc   2 mark
Pdc 2 mark
 
Circuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITTCircuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITT
 

Recently uploaded

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...Call girls in Ahmedabad High profile
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 

Recently uploaded (20)

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 

Chapter 3.pptx

  • 1. Chapter Three Digital Logic Gates (Lec 1) Prepared by: Esubalew Mulat Target Group: 2nd Year CS Students Adapted from Addisalem Hailegnaw, DBU . Debre Berhan University, March 2015 E.C.
  • 2. Topics • Introduction to Logic Gates • Types of Logic Gates • Introduction to Digital Logic Family • Realization of Logic Gates
  • 3. Digital Logic Gates • Digital Logic Gates or in other words Logic gates or Gates for short are electronic circuits that execute logical operations. • Logic gates are the building blocks of digital circuits. • Generally, logic gates operate on one or more inputs to provide a single logical output.
  • 4. Digital Logic Gates… • Electronic gates require a power supply. • Gate INPUTS are driven by voltages having two nominal values. • The OUTPUT of a gate provides only two nominal values of voltage. • There is always a time delay between an input being applied and the output responding.
  • 5. Types of Digital Logic Gates
  • 6. Inverter • The Inverter has a single input. • The inverter performs the Boolean NOT operation. When the input is LOW, the output will be HIGH; when the input is HIGH, the output will be LOW. Symbol • The NOT operation (complement) is shown with an overbar. • The Boolean expression for the aforementioned inverter is X = 𝐴
  • 8. Inverter… Example Give the waveform of a signal A as in the figure below, determine the wave form for the output X. Answer:
  • 9. AND Gate • The AND gate produces a HIGH output when all inputs are HIGH. Otherwise, the output is LOW. • The AND gate has two or more inputs. Symbol • The AND operation is usually shown with a dot between the variables but it may be implied with no dot. • Thus, the AND operation is written as X = A.B or X = AB
  • 12. AND Gate… • The AND operation is used in computer programming as a selective mask. If you want to retain certain bits of a binary number but reset the other bits to 0, you could set a mask with an AND. • Example: If the binary number 10100011 is ANDed with the mask 00001111, what is the result? Answer: 00000011
  • 13. OR Gate • The OR gate has two or more inputs. • The OR gate produces a HIGH output if any input is HIGH; if all inputs are LOW, the output is LOW. Symbol • The OR operation is shown with a plus sign (+) between the variables. • Thus, the OR operation is written as X = A + B.
  • 14. Truth Table for OR Gate Truth Table Example Waveform
  • 15. OR Gate… • The OR operation can be used in computer programming to set certain bits of a binary number to 1. • Example: ASCII letters have a 1 in the bit 5 position for lower case letters and a 0 in this position for capitals. (Bit positions are numbered from right to left starting with 0.) What will be the result if you OR an ASCII upercase letter with the 8-bit mask 00100000? • Solution: The resulting letter will be lower case.
  • 16. NAND Gate • The NAND gate produces a LOW output when all inputs are HIGH; otherwise, the output is HIGH. • The NAND operation is shown with a dot between the variables and an overbar covering them. Thus, the NAND operation is written as X = 𝐴𝐵 (Alternatively, X = 𝐴. 𝐵) Symbol
  • 19. NAND Gate… • The NAND gate is particularly useful because it is a universal gate (all other basic gates can be constructed from NAND gates). • Question: How would you connect a 2-input NAND gate to form a basic inverter? • Answer: • Exercise: How do you construct an AND gate and an OR gate from a NAND gate?
  • 20. NOR Gate • The NOR gate accepts two or more inputs. • The NOR gate produces a LOW output if any input is HIGH; if all inputs are HIGH, then the output is LOW. • Symbol • The NOR operation is shown with a plus sign (+) between the variables and an overbar covering them. Thus, the NOR operation is written as X = 𝐴 + 𝐵.
  • 22. NOR Gate… Exemplary Waveform . Like a NAND Gate, a NOR gate is Universal Gate
  • 23. NOR Gate… Example: When is the LED turned ON for the circuit shown? Solution: The LED will be on when any of the four inputs are HIGH.
  • 24. XOR Gate • The XOR Gate takes two or more inputs. • The XOR gate produces a HIGH output only when both inputs are at opposite logic levels. • Symbol • The XOR operation is written as X = 𝐴𝐵 + 𝐴𝐵. Alternatively, it can be written with a circled plus sign between the variables as
  • 25. XOR Gate… • Exemplary Waveform • Question: If the A and B waveforms are both inverted for the above waveforms, how is the output affected? • Answer: There is no change in the output
  • 26. XNOR Gate • The XNOR Gate takes two or more inputs. • The XNOR gate produces a HIGH output only when both inputs are at the same logic level.
  • 27. XNOR Gate… • Exemplary Waveform • Question: If the A waveform is inverted but B remains the same, how is the output affected? • Answer: The output will be inverted
  • 28. Digital Circuits and Logic Families
  • 34. Logic gates are there whenever more complex digital systems are designed!!!
  • 36. Digital Logic Gates • Digital ICs can be classified by the specific circuit technology to which they belong. • The circuit technology is referred to as a digital logic family. • Each logic family has its own basic electronic circuit upon which more complex digital circuits and components are developed. • The basic circuit in each technology is a NAND, NOR, or Inverter gate.
  • 37. Digital Logic Gates… • RTL : (Resistor-Transistor Logic) • DTL : (Diode-Transistor Logic) • TTL : (Transistor-Transistor Logic) • ECL : (Emitter-Coupled Logic) • MOS : (Metal-Oxide Semiconductor) • CMOS : (Complementary MOS)
  • 38. Characteristics of Digital IC 1. Propagation delay (speed of operation). 2. Power dissipation. 3. Fan in. 4. Fan out. 5. Noise immunity. 6. Operating temperature. 7. Power supply requirement. 8. Current and voltage parameters.
  • 39. Bipolar Transistor Characteristics • Can be ‘npn’ or ‘pnp’ • Germanium or Silicon • Bipolar IC transistors are made with silicon and are usually ‘npn’ type.
  • 41. Bipolar Transistor Characteristics… • hFE is transistor parameter called dc current gain.
  • 42. Resistor Transistor Logic (RTL) • The basic circuit of RTL digital logic family is the NOR gate. • Low level = 0.2 V and high level from 1 to 3.6V
  • 43. Resistor Transistor Logic (RTL) • The RTL logic circuit has many drawbacks. • The resistors increase the input resistance and reduce the switching speed of the circuit. • This degrades the rise and fall times of any input pulse. (Read More on It!)
  • 44. Diode Transistor Logic (DTL) • Diode is adapted from transistor. • Behaves like base-emitter junction of a transistor.
  • 45. Diode Transistor Logic (DTL)… • The basic circuit of DTL digital logic family is the NAND gate. • Low level = 0.2 V and high level from 4 to 5 V
  • 46. Diode Transistor Logic (DTL)… • If any input of the gate is low to 0.2 V, the corresponding diode is forward biased and conducts current through VCC and RD. (RD=5k resistor and RC is 2K resistor) • The voltage at point P is equal to the input voltage 0.2 V plus one diode drop of 0.7 V, for a total of 0.9 V. • This is not sufficient to drive the transistor Q1 into conducting. • In order for the transistor to conduct the voltage at P it must overcome a potential of one VBE (0.6 V) drop in Q1 and two diode voltage drops (0.6 V each) • Hence, the transistor Q1 remains at cut-off condition and its collector to emitter behaves like an open circuit.
  • 47. Diode Transistor Logic (DTL)… • If all the inputs of the gate are high to 5 V, all the diodes are reverse biased and the current will flow through RD, D1, D2, and the base of the transistor. • The transistor is now driven to saturation region. The voltage at P is equal to one VBE drop plus two diode drops across D1 and D2, or 3 × 0.7V = 2.1 V (VBE drop is 0.7 V while conducting and forward biased diode drop becomes 0.7 V). • This conforms that all the input diodes are reverse biased and off. With the transistor at saturated condition, the output drops to VCE(sat) = 0.2 V, which is low level for the gate.
  • 48. Transistor - Transistor Logic (TTL) • Replaces diode with a transistor • Open collector TTL • L = 0.2 V and H = 2.4 to 5 V • The multiple emitters in Q1 behave like the input diodes in DTL, because they form a p-n junction.
  • 49. Transistor - Transistor Logic (TTL)… Debre Berhan University, February 2013 E.C. Example • NAND
  • 50. Emitter Coupled Logic (ECL) • Non-saturated digital logic family. • Propagation Delay : 1~ 2 ns (The fastest) • Was mostly used in systems requiring very high speed. E.g. Mainframe computers. • Very bad power dissipation and noise immunity !!! • Noise margin : 0.3 V • High fan-out possible • Obsolete !!
  • 51. Metal Oxide Semiconductor (MOS) • MOS (Metal-Oxide Semiconductor) like other FETs is a unipolar transistor. • Consume low power • Consume small area
  • 52. MOS Symbol • Enhancement type symbolized with broken line connection between source and drain.
  • 53. MOS… • We can view MOS transistors as electrically controlled switches • Voltage at gate controls path from source to drain
  • 54. MOS… Example: (Inverter, NAND and NOR gates realization with NMOS) Note: If NOMS is on, it drives a logic to zero. While PMOS drives a logic to high.
  • 55. CMOS • CMOS devices take advantage on MOS devices because of the fact that both n-channel and p-channel can be fabricated on the same chip. • CMOS has important advantages
  • 56. CMOS • CMOS devices take advantage on MOS devices because of the fact that both n-channel and p-channel can be fabricated on the same chip. • CMOS has important advantages  extremely low power use (a reason of its popularity)  higher noise immunity  high fan out capability and  wide range of supply voltage  Simpler interface with other logic circuits