Encoders Three-state devices Multiplexers

Slides:



Advertisements
Similar presentations
Part 4: combinational devices
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 Design: Combinational Logic Blocks
Give qualifications of instructors: DAP
Princess Sumaya University
Overview Part 2 – Combinational Logic Functions and functional blocks
Combinational Circuits
Combinational Circuits
Speical purpose Encoders/Comparators
Code Converters, Multiplexers and Demultiplexers
CS 151 Digital Systems Design Lecture 17 Encoders and Decoders
MSI Logic Circuits Wen-Hung Liao, Ph.D.. Objectives Analyze and use decoders and encoders in various types of circuit applications. Compare the advantages.
Multiplexers, Decoders, and Programmable Logic Devices
1 EE365 Three-state Outputs Encoders Multiplexers XOR gates.
Combinational Logic Building Blocks
Combinational Logic and Verilog
EE365 Adv. Digital Circuit Design Clarkson University Lecture #8 Buffers, Drivers, Encoders, MUXs & XORs.
طراحی مدارهای منطقی نیمسال دوم دانشگاه آزاد اسلامی واحد پرند.
Multiplexers DeMultiplexers XOR gates
Logic Gates Combinational Circuits
Adders, subtractors, ALUs
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,
Combinational Logic Chapter 4.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexers.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
Combinational Logic Design
Encoders Three-state Outputs Multiplexers XOR gates.
9 MSI Logic Circuits Some of digital system operations: Decoding and encoding; multiplexing; demultiplexing; comparison; code converting; data busing.
Decoders.
Three-state devices Multiplexers
Documentation Standards Circuit specification. –Description of what the system is supposed to do, including a description of all inputs and outputs and.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Adders, subtractors, ALUs.
Fall 2004EE 3563 Digital Systems Design EE3563 Multiplexers  A multiplexer is a digital switch  Allows a device to select a single line from many  Some.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexer Circuits.
Combinational Design, Part 3: Functional Blocks
Multiplexers XOR gates. Multiplexers A multiplexer is a digital switch - it connects data from one of n sources to its output. An n-input and b-bit multiplexer.
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.
1 EE121 John Wakerly Lecture #6 Three-state Outputs Encoders Multiplexers XOR gates.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices X-OR gates and Parity circuits Comparators Adders, subtractors,
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
Code Converters, Multiplexers and Demultiplexers
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Three-state devices Multiplexers.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 7 Dr. Shi Dept. of Electrical and Computer Engineering.
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Fall 2004EE 3563 Digital Systems Design EE 3563 Encoders  When a device’s output has few bits than the input, it is usually called an “encoder”  It essentially.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Documentation Standards.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Multiplexers.
ECE 2110: Introduction to Digital Systems Chapter 6 Review.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Adders,subtractors, ALUs.
ACOE161 (Spring2007)MSI Devices1 Revision on MSI Devices M. Mano & C. Kime: Logic and Computer Design Fundamentals (Chapter 5)
Lecture No. 18 Combinational Functional Devices. Recap Decoder Decoder –3-to-8 Decoder –Cascading of Decoders 4-to-16 decoder –Implementing SOP & POS.
Digital Design Jeff Kautzer Univ Wis Milw.
ECE 2110: Introduction to Digital Systems
Combinational Circuits
Part 4 Combinational Logic.
Combinational Logic Circuits
Combinational Circuit Design
Combinational Logic Circuits
Overview Introduction Logic Gates Flip Flops Registers Counters
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Encoders.
EET107/3 DIGITAL ELECTRONICS 1
Ch 4. Combinational logic
Digital System Design Combinational Logic
Arithmetic Circuits.
Presentation transcript:

Encoders Three-state devices Multiplexers ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Encoders Three-state devices Multiplexers

74x138/139 decoders

Encoders Multiple-input/multiple-output device. Perfoms the inverse function of a Decoder. Outputs ( m ) are less than inputs ( n ). Converts input code words into output code words. input code output code ENCODER

Encoders vs. Decoders Binary decoders/encoders Decoder Encoder n-to-2^n Input code : Binary Code Output code :1-out-of-2^n. 2^n-to-n encoder Input code : 1-out-of-2^n. Output code : Binary Code

Binary Encoder 2^n-to-n encoder : 2^n inputs and n outputs. Input code : 1-out-of-2^n. Output code : Binary Code Example : n=3, 8-to-3 encoder Inputs Outputs I0 I1 I2 I3 I4 I5 I6 I7 Y0 Y1 Y2 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 1 1 1 1 I4 Y2 I5 I6 I7

8-to-3 encoder Implementation Simplified implementation: - From the truth table Y2 = I1 + I3 + I5 + I7 Y1 = I2 + I3 + I6 + I7 Y0 = I4 + I5 + I6 + I7 Limitations : - I0 has no effect on the output - Only one input can be activated Application: Handling multiple devices requests But, no simultaneous requests Establishing priorities solve the problem of multiple requests Y0 I1 I2 Y1 I3 I4 I5 Y2 I6 I7

Need priority in most applications

Priority Encoder Assign priorities to the inputs When more than one input are asserted, the output generates the code of the input with the highest priority Priority Encoder : H7=I7 (Highest Priority) H6=I6.I7’ H5=I5.I6’.I7’ H4=I4.I5’.I6’.I7’ H3=I3.I4’.I5’.I6’.I7’ H2=I2.I3’.I4’.I5’.I6’.I7’ H1=I1. I2’.I3’.I4’.I5’.I6’.I7’ H0=I0.I1’. I2’.I3’.I4’.I5’.I6’.I7’ IDLE= I0’.I1’. I2’.I3’.I4’.I5’.I6’.I7’ - Encoder Y0 = H1 + H3 + H5 + H7 Y1 = H2 + H3 + H6 + H7 Y2 = H4 + H5 + H6 + H7 Priority encoder Priority Circuit Binary encoder I7 I7 H7 I7 I6 I6 H6 I6 I5 I5 H5 I5 Y2 A2 I4 I4 H4 I4 Y1 A1 I3 I3 H3 I3 Y0 A0 I2 I2 H2 I2 I1 I1 H1 I1 I0 I0 H0 I0 IDLE IDLE

8-input priority encoder I7 has the highest priority,I0 least A2-A0 contain the number of the highest-priority asserted input if any. IDLE is asserted if no inputs are asserted.

74x148 8-input priority encoder Active-low I/O Enable Input “Got Something”:Group Select Enable Output

74x148 Truth Table

74x148 circuit

Cascading priority encoders 32-input priority encoder

Three State Buffers/Drivers A buffer/inverter with enable input Buffer Buffer Inverter Inverter Actice High Enable Actice Low Enable Active High Enable Actice Low Enable The device behaves like an ordinary buffer/inverter when the enable input is asserted. The ouput is floating ( High Impedance, Hi-Z ) when the enable input is deasserted ( The input is isolated from the output, behaves as if it did not exist) Application: Controlling the access of a single line/bus by multiple devices

Three-state buffers Output = LOW, HIGH, or Hi-Z. Can tie multiple outputs together, if at most one at a time is driven.

8 sources share a three-state party line

Timing considerations

Standard SSI/MSI 3-state buffers SSI: 74x125, 74x126 (independent enable inputs) MSI: 74x541 and varieties such as 74x540, 74x240, 74x241

Octal noninverting 3-state buffer Hysteresis

Driver application

Three-state transceiver Pairs of 3-state buffers connected in opposite directions between each pair of pins, so data can be transferred in either direction. DIR determines the direction of transfer (A-->B or B-->A)

Transceiver application Bidirectional buses

Multiplexers (mux) Eg. Put between Processor’s registers and ALU A 16-bit processor where 3-bit field specifies on of 8 registers. The 3-bit field is connected to the select inputs of an 8-input, 16-bit mux. Select one of n sources of data to transmit on a bus.

MSI: 74x151 8-input 1-bit multiplexer

74x151 truth table

Other multiplexer varieties 2-input, 4-bit-wide 74x157 4-input, 2-bit-wide 74x153

Expanding Multiplexers 32-to-1 mux

Demultiplexers A mux is used to select one of n sources of data to transmit on a bus. A demultiplexer can be used to route the bus data to one of m destinations. Just the inverse of a mux. A binary decoder with an enable input can be used as a demux. Eg. 74x139 can be used as a 2-bit, 4-output demux.

Next… X-OR gates and Parity circuits Comparators Adders, subtractors, ALUs Reading Wakerly CH-5.8-5.11