Decoder.

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
Encoders Three-state devices Multiplexers
CDA 3100 Recitation Week 10.
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
System Digital Encoder, Decoder, and Contoh Penerapanya.
ECE 2372 Modern Digital System Design
Combinational Logic Design
1 Homework Reading –Tokheim, Section 5-10, 7-4 Machine Projects –Continue on MP4 Labs –Continue labs with your assigned section.
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.
Design of Two-Level Multiple-Output Networks
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
Combinational Circuits
Shannon’s Expansion Muxes and Encoders. Tri-State Buffers  A tri-state buffer has one input x, one output f and one control line e Z means high impedance,
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Combinational Logic Chapter 4.
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)
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
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
درس مدارهای منطقی دانشگاه قم مولتی پلکسر Multiplexer)) و دِ مولتی پلکسر ( Demultiplexer) تهیه شده توسط حسین امیرخانی مبتنی بر.
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.
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
Decoders Zhijian John Wang. What are they? Overview of a decoder A device that reverses the process of an encoder Convert information from one format.
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.
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.
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.
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

Decoder 2-to-4, 3-to-8, … n-to-2n O0 O1 O2 O3 O4 O5 O6 O7 3:8 dec O0 A B C O0 O1 O2 O3 O4 O5 O6 O7 X 3:8 dec O0 O1 O2 A B C Enb S2 S1 S0 O3 O4 O5 O6 O7 ABC 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Decoder

Design Using Decoder Applications: Example: Implementing General Logic Any combinational circuit can be constructed using decoders and OR gates! Example: S2 S1 S0 S3 1 2 3 4 5 6 7 8 9 10 12 13 14 15 4:16 dec Enb A ‘B’C’D’ ‘B’C’D ‘B’CD’ ‘B’CD ‘BC’D’ ‘BC’D ‘BCD’ ‘ BCD B’C’D’ B’C’D B’CD’ B’CD B C’D’ B C’D B C D’ B C D 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') F 1 3 2 A B C D

Active Low Decoder with Active Low Enable Active Low Outputs Y0 Y1 Y2 G A B Y0 Y1 Y2 Y3 1 X

74x139 dual 2-to-4 decoder

74x138 3-8 Decoder

74x138 3-8 Decoder

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.

Decoders Can build a decoder by smaller decoders 3:8 dec A B C D 3:8 Enb S2 S1 S0 O3 O4 O5 O6 O7 A 1 2 3 4 5 6 7 8 9 10 12 13 14 15 B A B C D S3 S2 4:16 dec C S1 3:8 dec O0 O1 O2 B C D Enb S2 S1 S0 O3 O4 O5 O6 O7 S0 D Enb

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

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

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 a f b g e c d

7-Segment Decoder BCD-to-7-segment control signal decoder A B C D C C C 5 C 1 C 6 C 4 C 2 C 3 C C 1 C 2 C 3 C 4 C 5 C 6 BCD-to-7-segment control signal decoder A B C D

7-Segment Decoder Example: 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: 0000BCD Output: 1111110 (a=b=c=d=e=f=1, g=0) d a b c e f g

BCD-to-7Segment Truth Table Digit ABCD abcdefg Digit ABCD abcdefg 8 1000 1111111 0000 1111110 9 1001 111X011 1110011 1 0001 0110000 1010 XXXXXXX 2 0010 1101101 1011 XXXXXXX 3 0011 1111001 1100 XXXXXXX 4 0100 0110011 1101 XXXXXXX 5 0101 1011011 1110 XXXXXXX 6 0110 1011111 X011111 1111 XXXXXXX 7 0111 1110000 11100X0 ??

K-maps a = A + B D + C + B' D' d = B' D' + C D' + B C' D + B' C 00 01 11 10 D B C A 1 X K-map for a AB CD 00 01 11 10 D B C A 1 X K-map for b AB CD 00 01 11 10 D B C A 1 X K-map for c AB CD 00 01 11 10 D B C A 1 X K-map for d e f AB CD 00 01 11 10 D B C A 1 X K-map for g 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

Encoder

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

Encoder O0 I0 O1 I1 A S2 Z2 A O2 I2 B S1 3:8 decoder O3 I3 Z1 B 8:3

Encoder Circuit Design Example: 8-3 Binary Encoder A0 = D1 + D3 + D5 + D7 A1 = D2 + D3 + D6 + D7 A2 = D4 + D5 + D6 + D7

Encoder Circuit With Enable With Acknowledge

Application The number of inputs: large  fewer lines

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 D3 and D6 are 1 simultaneously, the output of the encoder will be 111. A0 = D1 + D3 + D5 + D7 A1 = D2 + D3 + D6 + D7 A2 = D4 + D5 + D6 + D7

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

K-Maps

Circuit

8-3 Priority Encoder

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.

74x148 Truth Table

Circuit Diagram

Datasheets http://www.techlearner.com/C&D/index.htm http://users.otenet.gr/~athsam/database.htm Some sample datasheets in the course site.