5.4 Decoders A decoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes.

Slides:



Advertisements
Similar presentations
1 The 2-to-4 decoder is a block which decodes the 2-bit binary inputs and produces four output All but one outputs are zero One output corresponding to.
Advertisements

ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Encoders.
5.5 Encoders A encoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes.
Digital Logic Design Week 7 Encoders, Decoders, Multiplexers, Demuxes.
Combinational Circuits
Documentation Standards
Combinational Circuits CS370 – Spring BCD to 7 Segment Display Controller Understanding the problem: input is a 4 bit bcd digit output is the control.
COE 202: Digital Logic Design Combinational Circuits Part 1
Lab 7 : Decoders/Encoders : Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 “1 of 10” Encoder “1 of 10” Encoder Connected to a SPST Keypad. Control Signal.
System Digital Encoder, Decoder, and Contoh Penerapanya.
LOGIC DESIGN AND CIRCUITS SEVEN SEGMENT LED DISPLAY Res. Assist. Hale İnan 1.
ECE 2372 Modern Digital System Design
Code Converters, Multiplexers and Demultiplexers
1 Homework Reading –Tokheim, Section 5-10, 7-4 Machine Projects –Continue on MP4 Labs –Continue labs with your assigned section.
Decoder.
5.1 Documentation Standards
 We can use an algebraic description of the circuit ’ s functional behavior in the analysis of a larger system that includes the circuit.  We can determine.
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS DECODERS ENCODERS.
DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004.
OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 2 OF 3)
3. Flip-flops ReturnNext 8.1 Sequential-Circuit Documentation Standards As a whole, basic documentation standards include signal naming, logic symbols,
BCD to 7-Segment Display
Combinational Logic Design
Lab 6 :Digital Display Decoder: 7 Segment LED display Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 Slide #7 Display Decoder Fundamentals LT Control Input.
Digital Design - Combinational Logic Design Chapter 2 - Combinational Logic Design.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
Combinational Logic Design
Decoders.
Dr. Ahmed El-Bialy, Dr. Sahar Fawzy Combinational Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
A little bit of exercise.. ;). Exercise Given to you are some binary to decimal examples : Given to you are some binary to decimal examples : Tens Units.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Documentation Standards Circuit specification. –Description of what the system is supposed to do, including a description of all inputs and outputs and.
1 Adders & Subtractors Adders –An adder is a combinational logic circuit that performs the addition of 2 binary numbers (A & B) to generate the sum (S)
Fall 2004EE 3563 Digital Systems Design EE 3563 Combinational Design Practices  Change in reading assignment: 5.3.1,  SSI – Small Scale Integration.
Digital Logic Design.
CS151 Introduction to Digital Design
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the.
ECE 320 Homework #3 1. Simplify the Boolean function F using the don’t care conditions d, in both S.O.P. and P.O.S. form: a) F=A’B’D’+A’CD+A’BC d=A’BC’D+ACD+AB’D’
Magnitude Comparator Dr. Ahmed Telba.
Computing Machinery Chapter 3: Combinational Circuits.
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-1 Design Procedure 1Created by: Ms.Amany AlSaleh.
BCD S EVEN SEGMENT D ECODER. I NTRODUCTION  A Decoder IC, is a device which converts one digital format into another and the most commonly used device.
Chapter 0 – Week 2 Combinational Logic Design. What have been discussed Design hierarchy –Top – down –Bottom – up CAD HDL Logic synthesis.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
DIGITAL ELECTRONICS THEME 2: Combinational Logic Circuits. Decoders, Multiplexers, De-multiplexers, Code converters. For combinational logic the values.
Decoder. 2 ABC 3:8 dec O0O0 O1O1 O2O2 A B C Enb S2S2 S1S1 S0S0 O3O3 O4O4 O5O5 O6O6 O7O7 EABC O0O0 O1O1 O2O2 O3O3 O4O4 O5O5 O6O6 O7O7 0XXX
Decoders A decoder is a logic circuit that detects the presence of a specific combination of bits at its input. Two simple decoders that detect the presence.
Decoder Chapter 12 Subject: Digital System Year: 2009.
MSI Circuits.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
Combinational Logic Design&Analysis.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Combinational Circuits
Combinational Logic Design
EKT 221 – Counters.
Combinational Logic Circuits
Combinational Circuit Design
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
کدگشا Decoder)) و کدگذار (Encoder) تهیه شده توسط حسین امیرخانی
FIGURE 4.1 Block diagram of combinational circuit
Homework Reading Tokheim, Section 5-10, 7-4.
Multiplexers Anindya IE CSE.
Design Example “Date of Birth Problem”
Table 1.1 Powers of Two.
ECE 352 Digital System Fundamentals
Digital System Design Combinational Logic
Prof. Onur Mutlu ETH Zurich Spring March 2019
Presentation transcript:

5.4 Decoders A decoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes are different. The input code generally has fewer bits than the output code, and there is one-to-one mapping from input code words into output code words. input code word output enable inputs map Decoder Return Next

5.4 Decoders Binary decoder The most common decoder circuit is an n-to-2n decoder or binary decoder. Such a decoder has an n-bit binary input code and a 1-out-of-2n output code. Truth table for a 2-to-4 binary decoder 2-to-4 Decoder I0 Y0 I1 Y1 Y2 EN Y3 Inputs Outputs EN I1 I0 Y3 Y2 Y1 Y0 0 X X 1 0 0 1 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 ”don’t-care” notation Return Back Next

5.4 Decoders Simulation Return Back Next

5.4 Decoders It is not necessary to use all of the outputs of a decoder, or even to decode all possible input combinations, e.g. a decimal or BCD decoder. Logic Symbols for Lager-Scale Elements The most basic rule is that logic symbols are drawn with inputs on the left and outputs on the right. The top and bottom edges of a logic symbol are not normally used for signal connections. However, explicit power and ground connections are sometimes shown at the top and bottom, especially if these connections are made on “nonstandard” pins. Return Back Next

5.4 Decoders We use an inversion bubble to indicate an active-low pin and the absence of a bubble to indicate an active-high pin. Active-high pins are given the same name as the internal signal, while active-low pins have the internal signal name with an overbar. external pin 1/2 74X139 G Y0 Y1 A Y2 B Y3 internal signal Return Back Next

Truth table for one-half of a 74x139 dual 2-to-4 decoder 5.4 Decoders The 74x139 Dual 2-to-4 Decoder 1G 1Y0 1Y1 1A 1Y2 1B 1Y3 2G 2Y0 2Y1 2A 2Y2 2B 2Y3 74X139 1 2 3 15 14 13 4 5 6 7 12 11 10 9 1 1 1 1 1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 1 X X 0 0 0 0 0 1 0 1 0 0 1 1 Y3 Y2 Y1 Y0 G B A Outputs Inputs Truth table for one-half of a 74x139 dual 2-to-4 decoder ( Logic diagram see P355 Figure 5-35 ) Return Back Next

5.4 Decoders The 74x138 3-to-8 Decoder 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 X X X X X X 1 X X X X X X 1 X X X 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 1 1 1 0 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 1 1 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 G1 G2A G2B C B A Outputs Inputs ( Logic diagram see P358 Figure 5-37) Return Back Next

5.4 Decoders It has three enable inputs, G1, G2A, G2B , all of which must be asserted for the selected output to be asserted. The equation for the internal output signal Y5: The equation for the external output signal Y5: Active-low Return Back Next

5.4 Decoders Traditional logic symbol of the 74x138 74X138 G1 Y0 6 G1 Y0 G2A Y1 G2B Y2 Y3 Y4 A Y5 B Y6 C Y7 74X138 2 3 15 14 13 12 11 10 9 7 4 5 Return Back Next

5.4 Decoders Cascading Binary Decoders 1 6 G1 Y0 G2A Y1 G2B Y2 Y3 Y4 A Y5 B Y6 C Y7 74X138 2 3 15 14 13 12 11 10 9 7 4 5 N0 N1 N2 N3 DEC0 DEC1 DEC2 DEC3 DEC4 DEC5 DEC6 DEC7 DEC8 DEC9 DEC10 DEC11 DEC12 DEC13 DEC14 DEC15 U1 U2 +5V R The top decoder (U1) is enabled when N3 is 0, and the bottom one (U2) is enabled when N3 is 1. Return Back Next

5.4 Decoders Seven-Segment Decoders a b c d e f g Seven-segment display normally uses light-emitting diodes(LEDs) or liquid-crystal display(LCD) elements. A seven-segment decoder has 4-bit BCD as its input code and the “seven-segment code” 5 4 a BI b c A d B e C f D g 74X49 1 2 6 9 13 8 11 10 12 3 Truth table for a 74x49 seven-segment decoder(See P374 table 5-21) Logic diagram for a 74x49 seven-segment decoder(See P373 figure 5-45 ) Return Back