SlideShare a Scribd company logo
1 of 43
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2
Session 3: Focus
 ASCII & Parity bit
 7-Segment Display
 Logic Gates
 AND, OR, NOT
 NAND and NOR
 XOR and Exclusive-NOR
 Logic Gates - ICs
 Binary Addition
◦ Half and Full Adder Circuits
 Binary Subtraction
◦ Half and Full Subtractor Circuits
 Parity Generators using XOR gates
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Alphanumeric Codes (ASCII)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4
ASCII
 ASCII: American Standard Code for Information Interchange
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5
ASCII Codes
 The alphanumeric codes are the codes that represent
numbers and alphabetic characters
 ASCII is a 7-bit code
 Extended Binary Coded Decimal Interchange Code
(EBCDIC), is an 8-bit code
 With the limited support that an 8 bit code can provide
to all the languages in the world, Unicode is defined in
1987
 Unicode (UTF-16 and UTF-32) are 16 bit and 32
bits later versions, used for supporting various
languages
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Parity
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 7
Parity
 A parity bit, or check bit, is a bit added to a string of binary
code that indicates whether the number of 1-bits in the string
is even or odd
 Even parity:
◦ The number of 1-bits (including the parity bit) must add up
to an even number
 Odd parity:
◦ The number of 1-bits (including the parity bit) must add up
to an odd number
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
7-Segment Display Code
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9
7-Segment Display Code
 1 means the segment is ON
Number displayed is 3 here
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Logic Gates
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11
Logic Signals
 The logic signals (0
and 1) with which
logic gates are driven
are shown here
 The voltage levels
have consistently
come down due to
low power
requirements from
3V to less than 1V
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12
AND, OR, NOT Gates
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13
Quiz 1: Draw the Output signals
x AND y
x OR y
NOT x
Outputs of
the gates
Inputs to the
gates
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14
Quiz 2: Give Truth Table
A B C F
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
If any one input is 1,
the output (G) will be one
G is zero only when all
A, B, C, D are zeros
0
0
0
0
0
0
0
1
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15
Quiz 3: Draw the Output waveform
Output
Output
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16
Quiz 4: What are the Outputs?
Output
Output
Always One
Always Zero
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
NAND and NOR
Gates
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 18
NAND Gates
NAND Gate with more than two inputs:
)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 19
NOR Gates
3-input NOR Gate :
)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
XOR Gates
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 21
XOR Gates
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 22
Multiple input XOR Gate
1. Output is 1 when only when either there are
one or three 1s as inputs
2. Output is one when there are odd 1s
as inputs
Y =
A
B
C
D
D
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 23
XOR Gates
 XOR gate is sometimes referred to as “anything but
not all”
 XOR gate is enabled only when there are odd
number of digital 1s
 Therefore, an XOR gate can be viewed as an odd
bits check circuit
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Exclusive-NOR
Gates
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 25
Exclusive-NOR Gates
3-input Exclusive-NOR Gate :
Q =
Q
This is an Even function. Output is 1 when
there are even number of 1s as inputs
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Logic Gates
ICs
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 27
74LS Series ICs
27
Pin Numbers
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 28
Some 74LS Series ICs
28
74 74
7474
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Binary Addition
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 30
Basic Rules of Binary Addition (Half Adder)
A + B = Sum (S)
Carry is zero
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 31
3-bit Binary Addition (Full Adder)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 32
Larger-bit Binary Addition
 Consider 32 bit adders are used to add two 128 bit
numbers
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Binary Subtraction
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 34
Basic Rules of Binary Subtraction
(Half Subtractor)
A B (A-B)
A’B
Bo
Di
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 35
Subtraction: Borrow Bit
When 1 is subtracted from 0
A borrow is taken from the
Next most significant bit, by
Making it zero
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 36
D
A
--B
Subtraction: Example
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 37
DD
--B
Subtraction: Digital Implementation
Bo
Bin Di
Ai
Bi
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 38
3-bit Binary Subtraction (Full Subtractor)
Bo
Do
Bin
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 39
Subtraction: Example
 Borrow (in) and Borrow (out) are shown above
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Parity Generators
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 41
Which parity gets generated in
the circuits below?
Even parity
Odd parity
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 42
Session 3: Summary
 ASCII & Parity bit
 7-Segment Display
 Logic Gates
 AND, OR, NOT
 NAND and NOR
 XOR and Exclusive-NOR
 Logic Gates - ICs
 Binary Addition
◦ Half and Full Adder Circuits
 Binary Subtraction
◦ Half and Full Subtractor Circuits
 Parity Generators using XOR gates
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 43
References
Ref 1 Ref 2

More Related Content

What's hot

sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...Gautham Reddy
 
Maximum likelihood sequence detection with the viterbi algorithm
Maximum likelihood sequence detection with the viterbi algorithmMaximum likelihood sequence detection with the viterbi algorithm
Maximum likelihood sequence detection with the viterbi algorithmbajrang bansal
 

What's hot (20)

Digital Design Session 17
Digital Design Session 17Digital Design Session 17
Digital Design Session 17
 
Digital Design Session 2
Digital Design Session 2Digital Design Session 2
Digital Design Session 2
 
Digital Design Session 9
Digital Design Session 9Digital Design Session 9
Digital Design Session 9
 
Digital Design Session 25
Digital Design Session 25Digital Design Session 25
Digital Design Session 25
 
Digital Design Session 26
Digital Design Session 26Digital Design Session 26
Digital Design Session 26
 
Digital Design Session 27
Digital Design Session 27Digital Design Session 27
Digital Design Session 27
 
Digital Design Session 8
Digital Design Session 8Digital Design Session 8
Digital Design Session 8
 
Digital Design Session 22
Digital Design Session 22Digital Design Session 22
Digital Design Session 22
 
Digital Design Session 29
Digital Design Session 29Digital Design Session 29
Digital Design Session 29
 
Digital Design Session 21
Digital Design Session 21Digital Design Session 21
Digital Design Session 21
 
Digital Design Course Summary
 Digital Design Course Summary Digital Design Course Summary
Digital Design Course Summary
 
Digital Design Session 7
Digital Design  Session 7Digital Design  Session 7
Digital Design Session 7
 
Digital Design Session 18
Digital Design Session 18Digital Design Session 18
Digital Design Session 18
 
Digital Design Session 20
Digital Design Session 20Digital Design Session 20
Digital Design Session 20
 
Digital Design Session 19
Digital Design Session 19Digital Design Session 19
Digital Design Session 19
 
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
 
Complement
ComplementComplement
Complement
 
Two’s complement
Two’s complementTwo’s complement
Two’s complement
 
13 use curves
13 use curves13 use curves
13 use curves
 
Maximum likelihood sequence detection with the viterbi algorithm
Maximum likelihood sequence detection with the viterbi algorithmMaximum likelihood sequence detection with the viterbi algorithm
Maximum likelihood sequence detection with the viterbi algorithm
 

Similar to Digital Design Session 3

Sean Farmar - Successfully Decomposing Your Monolith or UpdateUser Means Noth...
Sean Farmar - Successfully Decomposing Your Monolith or UpdateUser Means Noth...Sean Farmar - Successfully Decomposing Your Monolith or UpdateUser Means Noth...
Sean Farmar - Successfully Decomposing Your Monolith or UpdateUser Means Noth...Codemotion
 
Lecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfLecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfUmerKhan147799
 
DDCArv_Ch1.pptx
DDCArv_Ch1.pptxDDCArv_Ch1.pptx
DDCArv_Ch1.pptxshakeela33
 
DWS17 - Plenary Session : Technological Bets - Vincent BONNEAU - IDATE Digiworld
DWS17 - Plenary Session : Technological Bets - Vincent BONNEAU - IDATE DigiworldDWS17 - Plenary Session : Technological Bets - Vincent BONNEAU - IDATE Digiworld
DWS17 - Plenary Session : Technological Bets - Vincent BONNEAU - IDATE DigiworldIDATE DigiWorld
 
Qrcodequickresponsecode presentation
Qrcodequickresponsecode presentationQrcodequickresponsecode presentation
Qrcodequickresponsecode presentationUmsh23
 
Catalogue ditriot consulting
Catalogue ditriot consultingCatalogue ditriot consulting
Catalogue ditriot consultingIlyes Abdelmlak
 
BIMobject for manufacturers 2013
BIMobject for manufacturers 2013BIMobject for manufacturers 2013
BIMobject for manufacturers 2013BIMobject
 
Building No-Code Tools and Applications from Spreadsheets
Building No-Code Tools and Applications from SpreadsheetsBuilding No-Code Tools and Applications from Spreadsheets
Building No-Code Tools and Applications from SpreadsheetsAl Chen
 

Similar to Digital Design Session 3 (19)

Digital Design Session 11
Digital Design Session 11Digital Design Session 11
Digital Design Session 11
 
Digital Design Session 23
Digital Design Session 23Digital Design Session 23
Digital Design Session 23
 
Digital Design Session 13
Digital Design Session 13Digital Design Session 13
Digital Design Session 13
 
Sean Farmar - Successfully Decomposing Your Monolith or UpdateUser Means Noth...
Sean Farmar - Successfully Decomposing Your Monolith or UpdateUser Means Noth...Sean Farmar - Successfully Decomposing Your Monolith or UpdateUser Means Noth...
Sean Farmar - Successfully Decomposing Your Monolith or UpdateUser Means Noth...
 
Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16
 
Lecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfLecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdf
 
BCD ADDER (1).pptx
BCD ADDER (1).pptxBCD ADDER (1).pptx
BCD ADDER (1).pptx
 
BCD ADDER (1).pptx
BCD ADDER (1).pptxBCD ADDER (1).pptx
BCD ADDER (1).pptx
 
DDCArv_Ch1.pptx
DDCArv_Ch1.pptxDDCArv_Ch1.pptx
DDCArv_Ch1.pptx
 
DEL LAB MANUAL
DEL LAB MANUALDEL LAB MANUAL
DEL LAB MANUAL
 
Number codes students
Number codes studentsNumber codes students
Number codes students
 
DWS17 - Plenary Session : Technological Bets - Vincent BONNEAU - IDATE Digiworld
DWS17 - Plenary Session : Technological Bets - Vincent BONNEAU - IDATE DigiworldDWS17 - Plenary Session : Technological Bets - Vincent BONNEAU - IDATE Digiworld
DWS17 - Plenary Session : Technological Bets - Vincent BONNEAU - IDATE Digiworld
 
DLD_Chapter_2.pptx
DLD_Chapter_2.pptxDLD_Chapter_2.pptx
DLD_Chapter_2.pptx
 
Qrcodequickresponsecode presentation
Qrcodequickresponsecode presentationQrcodequickresponsecode presentation
Qrcodequickresponsecode presentation
 
Number codes
Number codesNumber codes
Number codes
 
CodeHeight.pptx
CodeHeight.pptxCodeHeight.pptx
CodeHeight.pptx
 
Catalogue ditriot consulting
Catalogue ditriot consultingCatalogue ditriot consulting
Catalogue ditriot consulting
 
BIMobject for manufacturers 2013
BIMobject for manufacturers 2013BIMobject for manufacturers 2013
BIMobject for manufacturers 2013
 
Building No-Code Tools and Applications from Spreadsheets
Building No-Code Tools and Applications from SpreadsheetsBuilding No-Code Tools and Applications from Spreadsheets
Building No-Code Tools and Applications from Spreadsheets
 

Recently uploaded

(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
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
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
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
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
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
 
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
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 

Recently uploaded (20)

(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
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...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
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
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
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
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
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
 
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
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 

Digital Design Session 3

  • 1. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
  • 2. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2 Session 3: Focus  ASCII & Parity bit  7-Segment Display  Logic Gates  AND, OR, NOT  NAND and NOR  XOR and Exclusive-NOR  Logic Gates - ICs  Binary Addition ◦ Half and Full Adder Circuits  Binary Subtraction ◦ Half and Full Subtractor Circuits  Parity Generators using XOR gates
  • 3. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Alphanumeric Codes (ASCII)
  • 4. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4 ASCII  ASCII: American Standard Code for Information Interchange
  • 5. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5 ASCII Codes  The alphanumeric codes are the codes that represent numbers and alphabetic characters  ASCII is a 7-bit code  Extended Binary Coded Decimal Interchange Code (EBCDIC), is an 8-bit code  With the limited support that an 8 bit code can provide to all the languages in the world, Unicode is defined in 1987  Unicode (UTF-16 and UTF-32) are 16 bit and 32 bits later versions, used for supporting various languages
  • 6. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Parity
  • 7. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 7 Parity  A parity bit, or check bit, is a bit added to a string of binary code that indicates whether the number of 1-bits in the string is even or odd  Even parity: ◦ The number of 1-bits (including the parity bit) must add up to an even number  Odd parity: ◦ The number of 1-bits (including the parity bit) must add up to an odd number
  • 8. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 7-Segment Display Code
  • 9. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9 7-Segment Display Code  1 means the segment is ON Number displayed is 3 here
  • 10. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Logic Gates
  • 11. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11 Logic Signals  The logic signals (0 and 1) with which logic gates are driven are shown here  The voltage levels have consistently come down due to low power requirements from 3V to less than 1V
  • 12. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12 AND, OR, NOT Gates
  • 13. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13 Quiz 1: Draw the Output signals x AND y x OR y NOT x Outputs of the gates Inputs to the gates
  • 14. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14 Quiz 2: Give Truth Table A B C F 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 If any one input is 1, the output (G) will be one G is zero only when all A, B, C, D are zeros 0 0 0 0 0 0 0 1
  • 15. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15 Quiz 3: Draw the Output waveform Output Output
  • 16. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16 Quiz 4: What are the Outputs? Output Output Always One Always Zero
  • 17. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com NAND and NOR Gates
  • 18. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 18 NAND Gates NAND Gate with more than two inputs: )
  • 19. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 19 NOR Gates 3-input NOR Gate : )
  • 20. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com XOR Gates
  • 21. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 21 XOR Gates
  • 22. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 22 Multiple input XOR Gate 1. Output is 1 when only when either there are one or three 1s as inputs 2. Output is one when there are odd 1s as inputs Y = A B C D D
  • 23. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 23 XOR Gates  XOR gate is sometimes referred to as “anything but not all”  XOR gate is enabled only when there are odd number of digital 1s  Therefore, an XOR gate can be viewed as an odd bits check circuit
  • 24. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Exclusive-NOR Gates
  • 25. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 25 Exclusive-NOR Gates 3-input Exclusive-NOR Gate : Q = Q This is an Even function. Output is 1 when there are even number of 1s as inputs
  • 26. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Logic Gates ICs
  • 27. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 27 74LS Series ICs 27 Pin Numbers
  • 28. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 28 Some 74LS Series ICs 28 74 74 7474
  • 29. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Binary Addition
  • 30. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 30 Basic Rules of Binary Addition (Half Adder) A + B = Sum (S) Carry is zero
  • 31. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 31 3-bit Binary Addition (Full Adder)
  • 32. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 32 Larger-bit Binary Addition  Consider 32 bit adders are used to add two 128 bit numbers
  • 33. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Binary Subtraction
  • 34. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 34 Basic Rules of Binary Subtraction (Half Subtractor) A B (A-B) A’B Bo Di
  • 35. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 35 Subtraction: Borrow Bit When 1 is subtracted from 0 A borrow is taken from the Next most significant bit, by Making it zero
  • 36. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 36 D A --B Subtraction: Example
  • 37. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 37 DD --B Subtraction: Digital Implementation Bo Bin Di Ai Bi
  • 38. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 38 3-bit Binary Subtraction (Full Subtractor) Bo Do Bin
  • 39. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 39 Subtraction: Example  Borrow (in) and Borrow (out) are shown above
  • 40. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Parity Generators
  • 41. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 41 Which parity gets generated in the circuits below? Even parity Odd parity
  • 42. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 42 Session 3: Summary  ASCII & Parity bit  7-Segment Display  Logic Gates  AND, OR, NOT  NAND and NOR  XOR and Exclusive-NOR  Logic Gates - ICs  Binary Addition ◦ Half and Full Adder Circuits  Binary Subtraction ◦ Half and Full Subtractor Circuits  Parity Generators using XOR gates
  • 43. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 43 References Ref 1 Ref 2