Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.

Slides:



Advertisements
Similar presentations
Encoders Three-state devices Multiplexers
Advertisements

Logic Circuits Design presented by Amr Al-Awamry
Combinational Circuits
Decoders/DeMUXs CS370 – Spring Decoder: single data input, n control inputs, 2 outputs control inputs (called select S) represent Binary index of.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
Overview Part 2 – Combinational Logic
CPEN Digital System Design
CS 151 Digital Systems Design Lecture 15 Magnitude Comparators and Multiplexers.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 2 –
Combinational Logic Chapter 4.
Multiplexers, Decoders, and Programmable Logic Devices
Combinational Logic Building Blocks
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
EE2174: Digital Logic and Lab
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS DECODERS ENCODERS.
ECE 301 – Digital Electronics Multiplexers and Demultiplexers (Lecture #12)
Chapter2 Digital Components Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
 Combinational circuit that selects binary information from one of many input lines and directs information to a single output line.
Multiplexers DeMultiplexers XOR gates
Chapter 4 Register Transfer and Microoperations
Figure to-1 Multiplexer and Switch Analog
Combinational Logic Chapter 4.
Decoders and Multiplexers Prof. Sin-Min Lee Department of Computer Science San Jose State University.
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.
Digital Electronics.
Combinational Logic Design
Encoders Three-state Outputs Multiplexers XOR gates.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 2 –
Combinational and Sequential Logic Circuits.
Combinational Logic Chapter 4. Digital Circuits Combinational Circuits Logic circuits for digital system Combinational circuits the outputs are.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
WEEK #9 FUNCTIONS OF COMBINATIONAL LOGIC (DECODERS & MUX EXPANSION)
Combinational Logic. Digital Circuits Introduction Logic circuits for digital systems may be combinational or sequential. A combinational circuit.
ENG241 Digital Design Week #4 Combinational Logic Design.
Digital Logic Problems (II) Prof. Sin-Min Lee Department of Mathematics and Computer Science.
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 ,
CHAPTER 4 Combinational Logic
DLD Lecture 15 Magnitude Comparators and Multiplexers
Decoders, Encoders, Multiplexers
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
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.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Three-state devices Multiplexers.
Combinational Circuits by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 7 Dr. Shi Dept. of Electrical and Computer Engineering.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Multiplexors Decoders  Decoders are used for forming separate signals for different combination of input signals.  The multiplexer circuit is a digital.
Chapter 3: Combinational Functions and Circuits 3-5 to 3-7: Decoders
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-5 Combinational Functional Blocks 3-6 Rudimentary Logic Functions 3-7 Decoding.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Multiplexers.
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
Chapter4: Combinational Logic Part 4 Originally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
Multiplexer.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
MSI Circuits.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
CS221: Digital Logic Design Combinational Circuits 3
Multiplexers and Demultiplexers,
Combinational Circuit Design
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Programmable Configurations
COE 202: Digital Logic Design Combinational Circuits Part 3
Chapter-4 Combinational Logic
Digital System Design Combinational Logic
Presentation transcript:

Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes. A > B A = B A < B Algorithm Consider two numbers, A and B, with four digits each: For equality to exist, all variables must be equal to 1: XNOR (note mistake p. 133)

Magnitude Comparator To determine if A is greater than or less than B, we inspect the relative magnitudes of significant digits. If the two digits are equal, we compare the next lower significant pair of digits. The comparison continues until a pair of unequal digits is reached. The sequential comparison can be expressed by: Compare:

4-bit Magnitude Comparator XNOR

DECODERS A decoder is a combinational circuit that converts binary information from n input lines to an 2 n unique output lines. Applications: Microprocessor memory system: selecting different banks of memory. Microprocessor I/O: Selecting different devices. Microprocessor instruction decoding: Enabling different functional units. Memory: Decoding memory addresses (e.g. in ROM).

3-to-8-line DECODER

3-to-8-line DECODER Truth Table If the input corresponds to minterm m i then the decoder ouput i will be the single asserted output.

2-to-4-line DECODER with Enable Input Complemented outputs The decoder is enabled when E = 0. The output whose value = 0 represents the minterm is selected by inputs A and B. The decoder is disabled when E = 1  D 0 … D 3 = 1 A Decoder with enable input is called a decoder/demultiplexer. Demultiplexer receives information from a single line and directs it to the output lines.

A 4 x 16 DECODER When w = 0, the top decoder is enabled and the bottom is disabled. Top decoder generates 8 minterms 0000 to 0111, while the bottom decoder outputs are 0’s. When w = 1, the top decoder is disabled and the bottom is enabled. Bottom decoder generates 8 minterms 1000 to 1111, while the top decoder outputs are 0’s.

Combinational Logic (Full-Adder) using Decoder

MULTIPLEXERS/DATA SELECTORS A multiplexer is a combinational circuit that selects one of many input lines (2 n ) and steers it to its single output line. There are (2 n ) and n selection lines whose bit combinations determine which input is selected.

4-to-1LINE MULTIPLEXER DESIGN 1010 In general, a 2 n –to–1-line multiplexer is constructed from an n–to 2 n decoder by adding to it 2 n lines, one to each AND gate.

QUADRUPLE 2-to-1LINE MULTIPLEXER

Function implementation using multiplexers OR gates are included Function with n variables and multiplexer with n – 1 selection Input variables x, y: Selection lines, S 1 and S 0 Variable z: Date line 0 Data lines 1,2,3:

z z’ 0 1 y x Function implementation using 4 x 1multiplexer

Function implementation using 8 x 1multiplexer 1.Complete the truth table from the SOP. 2.The first n – 1 variables in the table are applied to the selection inputs of the multiplexer. 3.For each combination of the selection variables, we evaluate the output as a function of the last variable. 4.Apply these values to the data input in proper order.

Function implementation using 8 x 1 MUX note the order of input lines

Three State Gates A three-state gate is a digital circuit that exhibits three states: 0, 1 and a high-impedance (high z state). The high impedance state behaves as an open circuit. Because of this feature (high z state), a large number of three-state gate outputs can be connected to form a common line without endangering load effects.

Multiplexers with Three State Gates Note that the two output connections can not be done with other gates. When EN = 0, decoder outputs are zero, and the bus lines are in high z state. When EN = 1, one of the three-state buffers will be active depending on the binary value in the select inputs of the decoder.