Lecture # 10 University of Tehran

Slides:



Advertisements
Similar presentations
Part 4: combinational devices
Advertisements

Logic Circuits Design presented by Amr Al-Awamry
Combinational Circuits
Combinational Circuits
Functions and Functional Blocks
RTL Design Introduction Decoder Encoder Multiplexer Tri-state Buffer
EELE 367 – Logic Design Module 4 – Combinational Logic Design with VHDL Agenda 1.Decoders/Encoders 2.Multiplexers/Demultiplexers 3.Tri-State Buffers 4.Comparators.
Chapter 4 -- Modular Combinational Logic. Decoders.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
Comparator.
Datapath Functional Units. Outline  Comparators  Shifters  Multi-input Adders  Multipliers.
Parallel Adder Recap To add two n-bit numbers together, n full-adders should be cascaded. Each full-adder represents a column in the long addition. The.
CSE-221 Digital Logic Design (DLD)
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 1 OF 3) COMPARATORS CODE CONVERTERS.
EE466: VLSI Design Lecture 14: Datapath Functional Units.
EE2174: Digital Logic and Lab
Digital Logic Design Lecture 19. Announcements Homework 6 due Thursday 11/6 Recitation quiz on Monday, 11/10 – Will cover material from lectures 18,19,20.
COE 202: Digital Logic Design Combinational Circuits Part 4
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Lecture # 12 University of Tehran
CS 105 Digital Logic Design
Digital Logic Design Lecture # 8 University of Tehran.
Outline Analysis of Combinational Circuits Signed Number Arithmetic
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Digital Logic Design Lecture # 3 University of Tehran.
Functions of Combinational Logic
Lecture # 11 University of Tehran
COE 202: Digital Logic Design Combinational Circuits Part 4
Digital Logic Design Lecture # 9 University of Tehran.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Digital Logic Design Lecture # 2 University of Tehran.
Digital Logic Design Lecture # 19 University of Tehran.
Digital Logic Design Lecture # 14 University of Tehran.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 8 Arithmetic.
Combinational Circuits
Outline MSI Parts as a Decoder Multiplexer Three State Buffer MSI Parts as a Multiplexer Realization of Switching Functions Using Multiplexers.
CEC 220 Digital Circuit Design Timing Diagrams, MUXs, and Buffers Friday, February 14 CEC 220 Digital Circuit Design Slide 1 of 18.
1 Outline Bus Transfer Memory Transfer Microoperations.
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
CS1Q Computer Systems Lecture 8
ECE 320 Homework #4 1. Using 8 data input selector logic (MUX), implement the following two functions: a) F(A,B,C)=S 0 S 2 S 3 S 5 b) F(A,B,C,D)=P 0 +P.
Digital Logic Design Lecture # 15 University of Tehran.
Branch : IT Semester : 3 PREPARED BY:- Rajpurohit Shravansingh ( ) Patel Dipesh ( ) Shah Maulin( )
Digital Logic Design Lecture # 13 University of Tehran.
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
Simple ALU  Half adder  Full adder  Constructing 4 bits adder  ALU does several operations  General ALU structure  Timing diagram of adder  Overflow.
President UniversityErwin SitompulDigital Systems 7/1 Lecture 7 Digital Systems Dr.-Ing. Erwin Sitompul President University
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Discrete Systems I Lecture 10 Adder and ALU Profs. Koike and Yukita.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
Combinational Circuits
Prof. Sin-Min Lee Department of Computer Science
Digital Systems Section 8 Multiplexers. Digital Systems Section 8 Multiplexers.
Combinational Circuit Design
Combinational Logic Circuits
Digital Fundamentals Floyd Chapter 6 Tenth Edition
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Chapter 6 Functions of Combinational Logic
Arithmetic Circuits Didn’t I learn how
King Fahd University of Petroleum and Minerals
Lecture 8 Logistics Last lecture Last last lecture Today
Week 7: Gates and Circuits: PART II
Arithmetic Circuits.
Half & Full Subtractor Half Subtractor Full Subtractor.
ECE 352 Digital System Fundamentals
Instruction execution and ALU
Half & Full Subtractor Half Subtractor Full Subtractor.
Computer Architecture
Presentation transcript:

Lecture # 10 University of Tehran Digital Logic Design Lecture # 10 University of Tehran

Outline More Examples on Realizing Functions Using Multiplexer Other Applications for Multiplexer Comparator Full Adder

More Examples on Realizing Functions Using Multiplexer Last session we saw how to realize a switching function using a KM by relating the MUX’s inputs to the columns of the KM. We will now do the same only this time using the KM’s rows. Consider for instance the following KM:

More Examples on Realizing Functions Using Multiplexer (continued…) In the last design a lot of glue logic has been used alongside the MUX package. We can resolve this problem if we use an 8-to-1 MUX instead:

Other Applications for Multiplexer Another application for multiplexers is the transition of data between multiple sources and destinations In the above figure, suppose each source has a 4 bit output.

Other Applications for Multiplexer (continued…) One way to solve this problem could be to simply use one quad 4-to-1 multiplexer behind each Di with which each source can easily send data to any required destination at one time. One problem with this approach is that it leaves us with a lot of wiring, and also we will not have much ability in increasing the number of sources as all of our multiplexers will have to be changed.

Other Applications for Multiplexer (continued…) Note: The structure used in between the MUX and the destinations is called a ‘bus’.

Other Applications for Multiplexer (continued…) A better solution to the problem is to use three state buffers on the output of each source – with a common control line for all buffers relating to a particular source. Bye doing this only one source will have the ability to drive a particular destination at any instance of time. To select which source will have this ability is done by the use of a decoder (that can be initially selected larger to support a larger number of source that may be used in the future). The figures shown in the next slide, shows this design.

Other Applications for Multiplexer (continued…)

Other Applications for Multiplexer (continued…) Again another solution for the problem that is very difficult to implement on a board is:

Comparator To test the equality of two numbers the following circuit can be used (two 4 bit numbers):

Comparator (continued…) The above circuit is very straightforward to understand considering what an XNOR gate does. The following circuit tests the inequality a>b, by first testing to see whether a3 is 1 and b3 is 0 and doing the same test for lower bits if these bits are equal.

Comparator (continued…) The 7485 is a standard comparator package with the following attributes: if (A>B) lt=0, eq=0, gt=1 if (A<B) lt=1, eq=0, gt=0 if (A=B) lt=l, eq=e, gt=g Quote: The three l, e and g inputs are used when cascading.

Comparator (continued…) Let us now cascade four of the 7485 to construct a 16 bit comparator.

Comparator (continued…) This comparator will first compare the 4 most significant bits of the two inputs, unless they are equal the result can be found in this first stage as ‘a’ is less than ‘b’ if its 4 MSB are smaller and is greater if the 4 MSB are larger. If these 4 MSB of the two numbers turn out to be equal, the comparator will recursively do the same comparison on less significant bits four by four.

Comparator (continued…) The comparators we have seen so far have been magnitude comparators, that is they only work correctly when their inputs are unsigned numbers. To be able to use the same comparators for 2’s complement numbers, some glue logic needs to be used which is:

Comparator (continued…) Let’s design a maximum finder using a comparator and a MUX:

Full Adder Last session we saw how to implement a full adder using a MUX, continuing our discussion of arithmetic units we will now see a full adder realization with discrete gates.

Full Adder (continued…)

Full Adder (continued…) The logic diagram is:

Full Adder (continued…) The figure shown in the last slide, shows how to realize a 1 bit full adder, for a 4 bit full adder rippling the carry through each stage we may have: The above adder is called ‘Pseudo Parallel’ or ‘Ripple Carry’ adder.

Full Adder (continued…) The last design can also be used to subtract two 4 bit numbers, considering how subtraction of 2’s complement numbers is done in practice. All we have to do is complementing the bits of ‘b’ and setting the first stage’s carry to 1.