SlideShare a Scribd company logo
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2
Session 12: Focus
 Binary Multiplier
◦ 2-bit multiplier Implementation
◦ 4-bit by 3-bit multiplier Implementation
 Decoder
◦ Basic Binary Decoding logic
◦ 3-to-8 line Decoder Implementation
◦ 4-bit Decoder
◦ Decoder in Use
 Encoder
◦ Decimal-to-BCD Encoder
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Binary Multiplier
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4
Binary Multiplier
 Multiplication of binary numbers is performed in the
same way as multiplication of decimal numbers.
 The multiplicand is multiplied by each bit of the
multiplier, starting from the least significant bit.
 Each such multiplication forms a partial product.
 Successive partial products are shifted one position to
the left.
 The final product is obtained from the sum of the
partial products
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5
2-bit by 2-bit Multiplier
The multiplicand bits are B1 and B0,
the multiplier bits are A1 and A0,
and the product is C3C2C1C0
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 6
Multiplier Circuit: 4-bit by 3-bit
The multiplicand has 4 bits
B3B2B1B0
and the multiplier has 3 bits
A2A1A0 and
the product is 7 bits
C6C5C4C3C2C1C0
B3B2B1B0
* A2A1A0
C6C5C4C3C2C1C0
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Decoder
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8
Decoder
 A decoder is a digital circuit that detects the presence of a
specified combinations of bits (code) on its inputs and
 Indicates the presence of that code by a specified output
level
 In its general form, a decoder has n input lines to handle n bits
 It has from one to 2n output lines to indicate the presence
of one or more n-bit combinations
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9
Quiz 1: Basic Binary Decoding Logic
 Design a decoding logic which gives an output one when the
input is 1001
 For all other inputs it gives an output of zero
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 10
Quiz 2: Design a Decoding Logic
 Design a decoding logic which gives an output one when the
input is 1011 (A3A2A1A0)
 For all other inputs it gives an output of zero
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11
Quiz 3: Design a Decoding Logic
 Design a decoding logic which produces an active low output
when the input is 11001 (A4A3A2A1A0)
 For all other inputs it gives an output of one
A4
A3
X = A4A3 A01A2A
o
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12
3-line-to-8-line Decoder
 It has 3 inputs and 8 outputs
 Truth Table is given below:
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13
3-line-to-8-line Decoder Implementation
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14
Active Low 4-bit Decoder Truth Table
 A 4-bit decoder will have 24 outputs, which are shown below
 Commonly called as 4-line-to-16-line or 1-of-16 decoder
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15
Logic Symbol of Decoder
 Logic Symbol of 1-of-16 decoder with active-LOW outputs
4-bit Inputs 16-bit Outputs
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16
Application of Decoder
 A I/O Port address decoder
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Encoder
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 18
Encoder
 An encoder is a combinational circuit that essentially performs
a reverse decoder function
 An encoder accepts an active level on one of its inputs
representing a digit, such as a decimal, or octal digit, and
converts it to a coded output, such as BCD or binary
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 19
Decimal-to-BCD Encoder
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 20
Session 10B: Summary
 Binary Multiplier
◦ 2-bit multiplier Implementation
◦ 4-bit by 3-bit multiplier Implementation
 Decoder
◦ Basic Binary Decoding logic
◦ 3-to-8 line Decoder Implementation
◦ 4-bit Decoder
◦ Decoder in Use
 Encoder
◦ Decimal-to-BCD Encoder
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 21
References
Ref 1 Ref 2

More Related Content

What's hot (13)

Ad

Similar to Digital Design Session 12 (20)

PPT
217456070-Chapter-3_eletrical engineering
PPTX
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
PPT
Decoder encoder
PPTX
Chapter 5: Cominational Logic with MSI and LSI
PPTX
Digital VLSI - Unit 2.pptx
PPT
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
PPT
STLD-Combinational logic design
PPT
08 decoder
PPTX
lecture_19.pptx
PDF
Combinational circuits
PPT
decoder and encoder
PDF
Chapter-04.pdf
PPTX
Logic Design - Chapter 5: Part1 Combinattional Logic
PDF
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
PPT
Chapter 4 combinational circuit
PPT
11.ppt
PPT
SESSION 2.ppt
PDF
Encoder_decoder_si.pdf
PPTX
Digital Logic Design Lectures on Flip-flops and latches and counters
PPT
Combinational circuits
217456070-Chapter-3_eletrical engineering
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
Decoder encoder
Chapter 5: Cominational Logic with MSI and LSI
Digital VLSI - Unit 2.pptx
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
STLD-Combinational logic design
08 decoder
lecture_19.pptx
Combinational circuits
decoder and encoder
Chapter-04.pdf
Logic Design - Chapter 5: Part1 Combinattional Logic
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
Chapter 4 combinational circuit
11.ppt
SESSION 2.ppt
Encoder_decoder_si.pdf
Digital Logic Design Lectures on Flip-flops and latches and counters
Combinational circuits
Ad

More from International Institute of Information Technology - Bangalore (11)

Recently uploaded (20)

PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPT
Project quality management in manufacturing
PPTX
web development for engineering and engineering
PDF
PPT on Performance Review to get promotions
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
OOP with Java - Java Introduction (Basics)
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PPTX
Foundation to blockchain - A guide to Blockchain Tech
DOCX
573137875-Attendance-Management-System-original
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
737-MAX_SRG.pdf student reference guides
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
UNIT 4 Total Quality Management .pptx
additive manufacturing of ss316l using mig welding
Embodied AI: Ushering in the Next Era of Intelligent Systems
Internet of Things (IOT) - A guide to understanding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Project quality management in manufacturing
web development for engineering and engineering
PPT on Performance Review to get promotions
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
OOP with Java - Java Introduction (Basics)
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Foundation to blockchain - A guide to Blockchain Tech
573137875-Attendance-Management-System-original
Model Code of Practice - Construction Work - 21102022 .pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
737-MAX_SRG.pdf student reference guides

Digital Design Session 12

  • 1. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
  • 2. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2 Session 12: Focus  Binary Multiplier ◦ 2-bit multiplier Implementation ◦ 4-bit by 3-bit multiplier Implementation  Decoder ◦ Basic Binary Decoding logic ◦ 3-to-8 line Decoder Implementation ◦ 4-bit Decoder ◦ Decoder in Use  Encoder ◦ Decimal-to-BCD Encoder
  • 3. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Binary Multiplier
  • 4. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4 Binary Multiplier  Multiplication of binary numbers is performed in the same way as multiplication of decimal numbers.  The multiplicand is multiplied by each bit of the multiplier, starting from the least significant bit.  Each such multiplication forms a partial product.  Successive partial products are shifted one position to the left.  The final product is obtained from the sum of the partial products
  • 5. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5 2-bit by 2-bit Multiplier The multiplicand bits are B1 and B0, the multiplier bits are A1 and A0, and the product is C3C2C1C0
  • 6. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 6 Multiplier Circuit: 4-bit by 3-bit The multiplicand has 4 bits B3B2B1B0 and the multiplier has 3 bits A2A1A0 and the product is 7 bits C6C5C4C3C2C1C0 B3B2B1B0 * A2A1A0 C6C5C4C3C2C1C0
  • 7. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Decoder
  • 8. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8 Decoder  A decoder is a digital circuit that detects the presence of a specified combinations of bits (code) on its inputs and  Indicates the presence of that code by a specified output level  In its general form, a decoder has n input lines to handle n bits  It has from one to 2n output lines to indicate the presence of one or more n-bit combinations
  • 9. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9 Quiz 1: Basic Binary Decoding Logic  Design a decoding logic which gives an output one when the input is 1001  For all other inputs it gives an output of zero
  • 10. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 10 Quiz 2: Design a Decoding Logic  Design a decoding logic which gives an output one when the input is 1011 (A3A2A1A0)  For all other inputs it gives an output of zero
  • 11. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11 Quiz 3: Design a Decoding Logic  Design a decoding logic which produces an active low output when the input is 11001 (A4A3A2A1A0)  For all other inputs it gives an output of one A4 A3 X = A4A3 A01A2A o
  • 12. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12 3-line-to-8-line Decoder  It has 3 inputs and 8 outputs  Truth Table is given below:
  • 13. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13 3-line-to-8-line Decoder Implementation
  • 14. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14 Active Low 4-bit Decoder Truth Table  A 4-bit decoder will have 24 outputs, which are shown below  Commonly called as 4-line-to-16-line or 1-of-16 decoder
  • 15. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15 Logic Symbol of Decoder  Logic Symbol of 1-of-16 decoder with active-LOW outputs 4-bit Inputs 16-bit Outputs
  • 16. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16 Application of Decoder  A I/O Port address decoder
  • 17. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Encoder
  • 18. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 18 Encoder  An encoder is a combinational circuit that essentially performs a reverse decoder function  An encoder accepts an active level on one of its inputs representing a digit, such as a decimal, or octal digit, and converts it to a coded output, such as BCD or binary
  • 19. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 19 Decimal-to-BCD Encoder
  • 20. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 20 Session 10B: Summary  Binary Multiplier ◦ 2-bit multiplier Implementation ◦ 4-bit by 3-bit multiplier Implementation  Decoder ◦ Basic Binary Decoding logic ◦ 3-to-8 line Decoder Implementation ◦ 4-bit Decoder ◦ Decoder in Use  Encoder ◦ Decimal-to-BCD Encoder
  • 21. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 21 References Ref 1 Ref 2