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 0XXX00000000 100010000000.

Slides:



Advertisements
Similar presentations
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Encoders.
Advertisements

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 Design: Combinational Logic Blocks
Give qualifications of instructors: DAP
Encoders Three-state devices Multiplexers
Princess Sumaya University
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.
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
Programmable Logic PAL, PLA.
System Digital Encoder, Decoder, and Contoh Penerapanya.
ECE 2372 Modern Digital System Design
Combinational Logic Design
Decoder.
ENGIN112 L13: Combinational Design Procedure October 1, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 13 Combinational Design Procedure.
CS 151 Digital Systems Design Lecture 13 Combinational Design Procedure.
Combinational Logic Building Blocks
ECE 331 – Digital System Design Logic Circuit Design (Lecture #7)
COE 202: Digital Logic Design Combinational Circuits Part 1
EE2174: Digital Logic and Lab
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS DECODERS ENCODERS.
Chapter 3 Combinational Logic Design
Multiplexer MUX. 2 Multiplexer Multiplexer (Selector)  2 n data inputs,  n control inputs,  1 output  Used to connect 2 n points to a single point.
BCD to 7-Segment Display
Combinational Logic Design
Dewan Tanvir Ahmed SITE, UofO
Combinational Circuits
Outline Decoder Encoder Mux. Decoder Accepts a value and decodes it Output corresponds to value of n inputs Consists of: Inputs (n) Outputs (2 n, numbered.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
Combinational Logic Design
Logic Function Optimization. Combinational Logic Circuit Regular SOP and POS designs Do not care expressions Digital logic circuit applications Karnaugh.
Decoders.
Dr. Ahmed El-Bialy, Dr. Sahar Fawzy Combinational Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
ABCDNumber = Off 1 = On Binary Coded Decimal (BCD)
Logical Circuit Design Week 6,7: Logic Design of Combinational Circuits Mentor Hamiti, MSc Office ,
Kuliah Rangkaian Digital Kuliah 6: Blok Pembangun Logika Kombinasional Teknik Komputer Universitas Gunadarma.
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
CS151 Introduction to Digital Design
Chap 2. Combinational Logic Circuits
CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has.
درس مدارهای منطقی دانشگاه قم مولتی پلکسر Multiplexer)) و دِ مولتی پلکسر ( Demultiplexer) تهیه شده توسط حسین امیرخانی مبتنی بر.
Computer Architecture I: Digital Design Dr. Robert D. Kent Logic Design Decoders and Multiplexers.
Lecture 11 Combinational Design Procedure
Combinational Logic Design – Design Procedure, Encoders/Decoders
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.
Chapter # 4: Programmable Logic
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.
 Seattle Pacific University EE Logic System DesignMux-Decoder-1 Multiplexers Two alternative forms for a 2:1 Mux Truth Table Functional form Logical.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
Module 11.  In Module 9, we have been introduced to the concept of combinational logic circuits through the examples of binary adders.  Meanwhile, in.
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-5 Combinational Functional Blocks 3-6 Rudimentary Logic Functions 3-7 Decoding.
MSI Combinational logic circuits
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
CEC 220 Digital Circuit Design Decoders, Encoders, & ROM Wed, February 19 CEC 220 Digital Circuit Design Slide 1 of 18.
ACOE161Digital Circuit Design1 Design Of Combinational Logic Circuits.
1 Combinational Logic Design.  A process with 5 steps Specification Formulation Optimization Technology mapping Verification  1 st three steps and last.
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.
Lecture No. 18 Combinational Functional Devices. Recap Decoder Decoder –3-to-8 Decoder –Cascading of Decoders 4-to-16 decoder –Implementing SOP & POS.
MSI Circuits.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Encoders.
کدگشا Decoder)) و کدگذار (Encoder) تهیه شده توسط حسین امیرخانی
Multiplexers Anindya IE CSE.
Digital System Design Combinational Logic
Presentation transcript:

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 to-4, 3-to-8, … n-to-2 n

3 Decoder

4 Design Using Decoder Applications:  Memory Address decoding:

5 Design Using Decoder Applications:  Implementing General Logic  Any combinational circuit can be constructed using decoders and OR gates! F1 = A' B C' D + A' B' C D + A B C D F2 = A B C' D' + A B C F3 = (A' + B' + C' + D') Example: A‘B’C’D’ A ‘B’C’D A‘B’CD’ A‘B’CD A‘BC’D’ A‘BC’D A‘BCD’ A‘ BCD A B’C’D’ A B’C’D A B’CD’ A B’CD A B C’D’ A B C’D A B C D’ A B C D F 1 F 3 F 2 A B C D S2S2 S1S1 S0S0 S3S :16 dec Enb

6 Active Low Decoder with  Active Low Enable  Active Low Outputs GAB Y0Y0 Y1Y1 Y2Y2 Y3Y3 1XX

7 74x139 dual 2-to-4 decoder

8 74x Decoder

9

10 Using 3-State Buffers  Can use 3-state buffers to share a single line for several devices. Decoder guarantees that no two buffers are on simultaneously. Some decoders have hi-Z outputs.

11 Decoders  Can build a decoder by smaller decoders A B C D S2S2 S1S1 S0S0 S3S :16 dec Enb 3:8 dec O0O0 O1O1 O2O2 B C D Enb S2S2 S1S1 S0S0 O3O3 O4O4 O5O5 O6O6 O7O7 3:8 dec O0O0 O1O1 O2O2 B C D Enb S2S2 S1S1 S0S0 O3O3 O4O4 O5O5 O6O6 O7O7 A B C D

12 Decoders  How to build a 5-32 decoder by using 4-16 and 2-4 decoders?

13 Decoders Decoder: a more general term  Our focus was on “binary decoders”

14 7-Segment Decoder Seven-segment display:  7 LEDs (light emitting diodes), each one controlled by an input  1 means “on”, 0 means “off”  Display digit “3”?  Set a, b, c, d, g to 1  Set e, f to 0 d a b c e f g

15 7-Segment Decoder C 5 C 0 C 6 C 3 C 4 C 1 C 2 C 0 C 1 C 2 C 3 C 4 C 5 C 6 BCD-to-7-segment control signal decoder ABCD

16 7-Segment Decoder 7-Segment Decoder :  Input is a 4-bit BCD code  4 inputs (A, B, C, D).  Output is a 7-bit code (a,b,c,d,e,f,g) that allows for the decimal equivalent to be displayed. Example:  Input: 0000 BCD  Output: (a=b=c=d=e=f=1, g=0) d a b c e f g

17 BCD-to-7Segment Truth Table 11100X X abcdefgABCDDigitabcdefgABCDDigit XXXXXXX1111 XXXXXXX1110 XXXXXXX1101 XXXXXXX1100 XXXXXXX1011 XXXXXXX X ??

18 K-maps a = A + B D + C + B' D' b = A + C' D' + C D + B' c = A + B + C' + D d = B' D' + C D' + B C' D + B' C e = B' D' + C D f = A + C' D' + B D' + B C' g = A + C D' + B C' + B' C AB CD D B C A 10X1 01X1 11XX 11XX K-map fora AB CD D B C A 11X1 10X1 11XX 10XX K-map forb AB CD D B C A 11X1 11X1 11XX 01XX K-map forc AB CD D B C A 10X1 01X0 10XX 11XX K-map ford AB CD D B C A 10X1 00X0 00XX 11XX K-map fore AB CD D B C A 11X1 01X1 00XX 01XX K-map forf AB CD D B C A 01X1 01X1 10XX 11XX K-map forg

Encoder

20 Encoder Encoder:  the inverse operation of a decoder.  Has 2 n input lines and n output lines.  The output lines generate the binary equivalent of the input line whose value is 1. I0 I1 I2 I3 z1 z2 4-2 Binary Encoder

21 Encoder 3:8 decoder O0O0 O1O1 O2O2 A B C S2S2 S1S1 S0S0 O3O3 O4O4 O5O5 O6O6 O7O7 8:3 encoder I0I0 I1I1 I2I2 A B C Z2Z2 Z1Z1 Z0Z0 I3I3 I4I4 I5I5 I6I6 I7I7

22 Encoder Circuit Design Example:  8-3 Binary Encoder A 0 = D 1 + D 3 + D 5 + D 7 A 1 = D 2 + D 3 + D 6 + D 7 A 2 = D 4 + D 5 + D 6 + D 7

23 Encoder Circuit With Enable With Acknowledge

24 Encoder Application Example:  Several peripherals connected to a CPU CPU Enc

25 Application The number of inputs: large  fewer lines

26 Encoder Design Issues  Only one input can be active at any given time.  If two inputs are active simultaneously, the output produces an undefined combination  (for example, if D 3 and D 6 are 1 simultaneously, the output of the encoder will be 111. A 0 = D 1 + D 3 + D 5 + D 7 A 1 = D 2 + D 3 + D 6 + D 7 A 2 = D 4 + D 5 + D 6 + D 7

27 Priority Encoder  Multiple asserted inputs are allowed; one has priority over all others.

28 K-Maps

29 Circuit

Priority Encoder

31 Priority Encoder: Application

32 74x148 Features:  inputs and outputs are active low.  EI_L must be asserted for any of its outputs to be asserted.  GS_L is asserted when the device is enabled and one or more of the request inputs is asserted. (“Group Select” or “Got Something.” )  EO_L is an enable output designed to be connected to the EI_L input of another ’148 that handles lower-priority requests.  It is asserted if EI_L is asserted but no request input is asserted; thus, a lower-priority ’148 may be enabled.

33 74x148 Truth Table

34 Circuit Diagram

35 Datasheets    Some sample datasheets in the course site.