Digital Logic Design ENEE x. Lecture 14

Similar documents
Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Systems I: Computer Organization and Architecture

Function of Combinational Logic ENT263

Unit 3 Session - 9 Data-Processing Circuits

Combinational Logic. By : Ali Mustafa

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Logic. Combinational. inputs. outputs. the result. system can

MODULAR CIRCUITS CHAPTER 7

Chapter 3 Combinational Logic Design

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

Chapter 4: Combinational Logic Solutions to Problems: [1, 5, 9, 12, 19, 23, 30, 33]

COMBINATIONAL LOGIC FUNCTIONS

ECE 341. Lecture # 3

CSE 140 Lecture 11 Standard Combinational Modules. CK Cheng and Diba Mirza CSE Dept. UC San Diego

ว ตถ ประสงค ของบทเร ยน

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

CprE 281: Digital Logic

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

ENGIN 112 Intro to Electrical and Computer Engineering

ECE 2300 Digital Logic & Computer Organization

CprE 281: Digital Logic

Digital System Design Combinational Logic. Assoc. Prof. Pradondet Nilagupta

Sample Test Paper - I

ELCT201: DIGITAL LOGIC DESIGN

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques

IT T35 Digital system desigm y - ii /s - iii

CHAPTER VI COMBINATIONAL LOGIC BUILDING BLOCKS

Philadelphia University Student Name: Student Number:

Chapter 3 Ctd: Combinational Functions and Circuits

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

Class Website:

3. Combinational Circuit Design

Combina-onal Logic Chapter 4. Topics. Combina-on Circuit 10/13/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

Lecture 2 Review on Digital Logic (Part 1)

CMSC 313 Lecture 19 Homework 4 Questions Combinational Logic Components Programmable Logic Arrays Introduction to Circuit Simplification

A B OUT_0 OUT_1 OUT_2 OUT_

Combinational Logic Design Combinational Functions and Circuits

Digital Logic Design ENEE x. Lecture 12

Hardware Design I Chap. 4 Representative combinational logic

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

Design of Sequential Circuits

Floating Point Representation and Digital Logic. Lecture 11 CS301

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Design of Combinational Logic

211: Computer Architecture Summer 2016

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

CHAPTER VI COMBINATIONAL LOGIC BUILDING BLOCKS

Fundamentals of Digital Design

CHAPTER1: Digital Logic Circuits Combination Circuits

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

Combinational Logic. Jee-Hwan Ryu. School of Mechanical Engineering Korea University of Technology and Education

Lecture A: Logic Design and Gates


CMSC 313 Lecture 19 Combinational Logic Components Programmable Logic Arrays Karnaugh Maps

Digital Electronics Circuits 2017

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

Slides for Lecture 19

Review: Additional Boolean operations

Save from: cs. Logic design 1 st Class أستاذ المادة: د. عماد

Carry Look Ahead Adders

CSE 20 DISCRETE MATH. Fall

PG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS

UNIT II COMBINATIONAL CIRCUITS:

ELCT201: DIGITAL LOGIC DESIGN

Binary addition by hand. Adding two bits

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

COMBINATIONAL CIRCUITS

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Unit 3. 2 Combinational circuits

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

Experiment 4 Decoder Encoder Design using VHDL

INF2270 Spring Philipp Häfliger. Lecture 8: Superscalar CPUs, Course Summary/Repetition (1/2)

DIGITAL LOGIC CIRCUITS

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

Binary addition example worked out

COE 202: Digital Logic Design Combinational Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Combinational Logic. Course Instructor Mohammed Abdul kader

Chapter 5 Arithmetic Circuits

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

Philadelphia University Faculty of Engineering

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

Lab 1 starts this week: go to your session

Transcription:

Digital Logic Design ENEE 244-010x Lecture 14

Announcements Homework 6 due today

Agenda Last time: Binary Adders and Subtracters (5.1, 5.1.1) Carry Lookahead Adders (5.1.2, 5.1.3) This time: Decimal Adders (5.2) Comparators (5.3) Decoders (5.4) Encoders (5.5) Multiplexers (5.6) After introducing all the MSI components, we will go back and talk about how to use Decoders and Multiplexers for Logic Design.

Decimal Adders 8421 weighted coding scheme or BCD Code Decimal Digit BCD 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 Forbidden codes: 1010, 1011, 1100, 1101, 1110, 1111

Decimal Adder Inputs: A 3 A 2 A 1 A 0, B 3 B 2 B 1 B 0, C in from previous decade. Output: C out (carry to next decade), Z 3 Z 2 Z 1 Z 0. Idea: Perform regular binary addition and then apply a corrective procedure.

Comparing Binary and BCD Sums Decimal Sum K P 3 P 2 P 1 P 0 C out Z 3 Z 2 Z 1 Z 0 0-9 ---------Same----------- 10 0 1 0 1 0 1 0 0 0 0 11 0 1 0 1 1 1 0 0 0 1 12 0 1 1 0 0 1 0 0 1 0 13 0 1 1 0 1 1 0 0 1 1 14 0 1 1 1 0 1 0 1 0 0 15 0 1 1 1 1 1 0 1 0 1 16 1 0 0 0 0 1 0 1 1 0 17 1 0 0 0 1 1 0 1 1 1 18 1 0 0 1 0 1 1 0 0 0 19 1 0 0 1 1 1 1 0 0 1 C out is set to 0

Decimal Adder No correction needed when the decimal sum is between 0-9. Must apply a correction when the sum is between 10-19. Case 1: 16-19: K is set to 1. Add binary quantity 0110 to P 3 P 2 P 1 P 0. 10-15: KP 3 P 2 P 1 P 0 are set to 01010, 01011,.., 01111. Need to add 6. Use a K-map to obtain a Boolean expression to detect these six binary combinations.

A single-decade BCD Adder

Comparators Compare the magnitude of two binary numbers for the purpose of establishing whether one is greater than, equal to, or less than the other. A comparator makes use of a cascade connection of identical subnetworks similar to the case of the parallel adder.

Comparators Consider two n-bit binary numbers: A = A n 1 A i A i 1 A 1 A 0 B = B n 1 B i B i 1 B 1 B 0 Assume A i, B i are entering the subnetwork and that the binary numbers are analyzed from right to left. Subnetwork is called a 1-bit comparator.

Comparators 3 conditions describing the relative magnitudes of A i 1 A 1 A 0, B i 1 B 1 B 0 G i = 1 denotes A i 1 A 1 A 0 > B i 1 B 1 B 0 E i = 1 denotes A i 1 A 1 A 0 = B i 1 B 1 B 0 L i = 1 denotes A i 1 A 1 A 0 < B i 1 B 1 B 0 1-bit comparator is a 5-input 3-output network

Comparators Rules: If A i = 0, B i = 1 then L i = 1 If A i = 1, B i = 0 then G i = 1 If A i = B i and L i 1 = 1 then L i = 1 If A i = B i and G i 1 = 1 then G i = 1 If A i = B i and E i 1 = 1 then E i = 1 Can use this to construct a truth table.

Comparators Minimal Sum Boolean Expressions: G i+1 = A i B i + A i G i + B i G i E i+1 = A i B i E i + A i B i E i L i+1 = A i B i + B i L i + A i L i

Comparators

Comparators

Decoder Digital information represented in some binary form must be converted into some alternate binary form. n to 2 n -line decoder. Only one of the 2 n output lines responds, with a logic-1, to a given input combination of values on its n-input lines.

Realization Symbol Logic Diagram Truth Table

Decoder Input combinations can be regarded as binary numbers with the consequences that the j-th output line is at logic-1 for j = 0, 1,.., 7 only when input combination j is applied.

Decoders with an Enable Input Logic Diagram Symbol Truth Table

Decoders with enable inputs When disabled, all outputs of the decoder can either be at logic-0 or logic-1. Enable input provides the decoder with additional flexibility. Idea: data is applied to the enable input. Process is known as demultiplexing. x 0 x 1 E Data If x 0 = 0, x 1 = 0 then data appears on line z 0. Enable inputs are useful when constructing larger decoders from smaller decoders.

Constructing Larger Decoders

Encoders Encoders provide for the conversion of binary information from one form to another. Encoders are essentially the inverse of decoders. 2 n -to-n-line encoder in which an assertive logic value on one of its 2 n -input lines causes the corresponding binary code to appear at the output lines. x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 z 0 z 1 z 2 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0

Encoders Equations for 8-to-3-line encoder: z 0 = x 1 + x 3 + x 5 + x 7 z 1 = x 2 + x 3 + x 6 + x 7 z 2 = x 4 + x 5 + x 6 + x 7 In general, the Boolean expression for the output z i is the sum of each input x j in which the binary representation of j has a 1 in the 2 i -bit position.

Priority Encoder The assumption that at most a single input to the encoder is asserted at any time is significant in its operation. Example: Both x 3 (11) and x 5 (101) are asserted. What is the output? 111 x 7 Priority Encoder: A priority scheme is assigned to the input lines so that whenever more than one input line is asserted at any time, the output is determined by the input line having the highest priority.

Priority Encoder The output is determined by the asserted input having the highest index. x i has higher priority than x j if i > j. Valid indicates that at least one input line is asserted. This distinguishes the situation that no input line is asserted from when the x 0 input line is asserted, since in both cases z 2 z 1 z 0 = 000.

Multiplexer Also called data selectors. Basic function: select one of its 2 n data input lines and place the corresponding information onto a single output line. n input bits needed to specify which input line is to be selected. Place binary code for a desired data input line onto its n select input lines.

Realization of 4-to-1 line multiplexer Symbol Logic Diagram Truth Table

Realization of 4-to-1 line multiplexer Alternate description: Algebraic description of multiplexer: f = I 0 S 1 S 0 + I 1 S 1 S 0 + I 2 S 1 S 0 + I 3 S 1 S 2 E

Building a Large Multiplexer

Multiplexers One of the primary applications of multiplexers is to provide for the transmission of information from several sources over a single path. This process is known as multiplexing. Demultiplexer = decoder with an enable input.

Multiplexer/Demultiplexer for information transmission