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

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

Systems I: Computer Organization and Architecture

Combinational Logic. By : Ali Mustafa

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

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

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

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

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

Sample Test Paper - I

COMBINATIONAL LOGIC FUNCTIONS

Chapter 5 Arithmetic Circuits

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

Carry Look Ahead Adders

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

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

Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

UNIT II COMBINATIONAL CIRCUITS:

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

Digital Logic Design ENEE x. Lecture 14

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

Class Website:

ELCT201: DIGITAL LOGIC DESIGN

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

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

Review: Additional Boolean operations

CHAPTER1: Digital Logic Circuits Combination Circuits

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

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

3. Combinational Circuit Design

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

Adders, subtractors comparators, multipliers and other ALU elements

Adders, subtractors comparators, multipliers and other ALU elements

Review for Test 1 : Ch1 5

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Combinational Logic. Course Instructor Mohammed Abdul kader

Binary addition by hand. Adding two bits

Fundamentals of Digital Design

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

ELCT201: DIGITAL LOGIC DESIGN


Combinational Logic Design Combinational Functions and Circuits

MODULAR CIRCUITS CHAPTER 7

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

211: Computer Architecture Summer 2016

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

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

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

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

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

Chapter 3 Ctd: Combinational Functions and Circuits

ENGIN 112 Intro to Electrical and Computer Engineering

Unit 3 Session - 9 Data-Processing Circuits

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

CSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego

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

14:332:231 DIGITAL LOGIC DESIGN

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

Overview. Arithmetic circuits. Binary half adder. Binary full adder. Last lecture PLDs ROMs Tristates Design examples

CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

UNIT III Design of Combinational Logic Circuits. Department of Computer Science SRM UNIVERSITY


Chapter 7 Logic Circuits

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

Adders - Subtractors

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

Department of Electrical and Computer Engineering University of Wisconsin - Madison. ECE/CS 352 Digital System Fundamentals

Lecture 2 Review on Digital Logic (Part 1)

Design of Sequential Circuits

Chapter 5. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 5 <1>

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

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Digital Electronics Circuits 2017

Hardware Design I Chap. 4 Representative combinational logic

Chap 2. Combinational Logic Circuits

Function of Combinational Logic ENT263

DE58/DC58 LOGIC DESIGN DEC 2014

ARITHMETIC COMBINATIONAL MODULES AND NETWORKS

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

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

Design of Combinational Logic

Boolean Algebra, Gates and Circuits

Module 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

ELEN Electronique numérique

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

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

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

MC9211 Computer Organization

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

Numbers and Arithmetic

Contents. Chapter 3 Combinational Circuits Page 1 of 36

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

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

ECE 341. Lecture # 3

CPE100: Digital Logic Design I

Hakim Weatherspoon CS 3410 Computer Science Cornell University

CMPUT 329. Circuits for binary addition

Transcription:

Chapter 4 Dr. Panos Nasiopoulos Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. Sequential: In addition, they include storage elements Combinational Logic 1

Design Procedure 1. Determine the number of inputs and outputs 2. Assign symbols 3. Derive the truth table 4. Obtain simplified functions for each output 5. Draw the logic diagram ADDERS The most basic arithmetic operation os the addition of two binary digits. Combinational Logic 2

Design Procedure Half-Adder - Needs 2 inputs and 2 outputs. - x,y: inputs; S,C outputs. X Y C S Combinational Logic 3

Full Adder Consists of 3 inputs and two outputs: x,y: two significant bits z: carry x y z 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Use K maps for the two outputs Combinational Logic 4

Full Adder S = C = xy+xz+yz S = z (x y) C =m 3 + m 5 + m 6 + m 7 = Combinational Logic 5

Code Conversion Convert code A to B: BCD A? B Excess-3 code BCD Excess-3 (self complementing) A B C D w x y z Combinational Logic 6

A B C D w x y z 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 1 0 1 0 1 1 0 0 0 0 1 1 0 1 0 0 1 0 1 1 1 1 0 1 0 1 0 0 0 1 0 1 1 1 0 0 1 1 1 0 0 Dr. Panos Nasiopoulos Combinational Logic 7

z = y = x = w = Combinational Logic 8

Analysis Procedure Dr. Panos Nasiopoulos Given: a logic diagram We want to derive the output Boolean function(s) Procedure: Combinational Logic 9

Analysis Procedure Dr. Panos Nasiopoulos T2 = ABC T1 = A+B+C F2 = AB + AC + BC T3 = F2 T1 F1 = T3 + T2 F1= Combinational Logic 10

Analysis Procedure TRUTH TABLE: Determine the number of input variables Label the outputs Obtain the truth table T2 = ABC T1 = A+B+C F2 = AB + AC + BC T3 = F2 T1 F1 = T3 + T2 A B C F2 F 2 T1 T2 T3 F1 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Combinational Logic 11

Binary Parallel Adder Two binary numbers of n bits can be added by using FAs. The sum of two n bit binary numbers, A and B, can be generated in serial or in parallel. Serial: Combinational Logic 12

Binary Parallel Adder Parallel adder: Uses n FAs. Combinational Logic 13

Example: BCD to excess 3 code converter Dr. Panos Nasiopoulos Recall that we needed 11 gates for this design. 1 BCD input IC FA Excess-3 output Combinational Logic 14

Carry Propagation Recall that for the design of the parallel adder to work, the signal must propagate through the gates before the correct output sum is available. Total propagation time = propagation delay of a typical gate x the number of gates Let s look at S3. Inputs A3 and B3 are available immediately. However, C3 is available only after C2 is available. C2 has to wait for C1, etc. C4 The number of gate levels for the carry to propagate is found from the FA circuit 2 gates Combinational Logic 15

Combinational Logic 16

Carry lookahead: Pi = Gi = Si = Gi : called a carry generate; it produces a carry of 1 when both Ai and Bi are 1, regardless of the input carry Ci. Pi : called carry propagate because it is the term associated with the propagation of the carry from Ci to C i+ 1. C0 = input carry C1 = C2 = C3 = Combinational Logic 17

C0 = input carry C1 = C2 = C3 = Dr. Panos Nasiopoulos Combinational Logic 18

A 4-bit adder using a carry lookahead scheme: Dr. Panos Nasiopoulos Note that all output carries are generated after a delay of two levels of gates. S1 to S3 have equal propagation delay times Combinational Logic 19

Binary Subtractor Recall that the subtraction of two numbers (A-B) is done by taking 2 s complement of the ve number and then we add the 2 numbers. 2 s complement is 1 s complement + 1 B3 A3 B2 A2 B1 A1 B0 A0 We want to figure out how to complement the ve number (e.g., B). Combinational Logic 20

Overflow Two n-bit numbers added result in n+1 It may result in overflow Example (4-bits) Note that overflow occurs when So, if we want to detect the overflow, we can use Combinational Logic 21

Design of a BCD Adder Add two BCD numbers; show output in BCD format If we add two BCD numbers, the maximum output will be: 9 + 9 + carry (if 1) = 19 decimal. Using FAs, we get binary representation. We MUST convert it to BCD using two BCDs Combinational Logic 22

Design of a BCD Adder Dr. Panos Nasiopoulos Combinational Logic 23

Decoders A binary code of n bits can represent 2 n distinct combinations (or unique cases ). Decoder: a combinational circuit that converts n binary lines into 2 n unique output lines Example: a 3-to-8 line decoder 3 inputs are decoded to 8 outputs representing the 8 minterms Combinational Logic 24

Decoders Truth table for a decoder: Inputs Outputs x y z D0 D1 D2 D3 D4 D5 D6 D7 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 0 1 Decoder with NAND gates: Combinational Logic 25

Decoders Decoder with NAND gates and enable: Decoders with enable can be connected together to form larger decoders. Example: Design a 4-to-16 decoder Combinational Logic 26

Decoders: Implementing Boolean functions Dr. Panos Nasiopoulos Implement a FA using a decoder: Recall that the full adder has 3 inputs and two outputs: S(x,y,z) = Σ(1,2,4,7) C(x,y,z) = Σ(3,5,6,7) Combinational Logic 27

Encoders Inverse operation of a decoder It has 2 n inputs and generates n codewords Example: Design a 4 x 2 encoder E N C O D E R D0 D1 D2 D3 x y Problems: Combinational Logic 28

Design: Priority encoder Dr. Panos Nasiopoulos D0 D1 D2 D3 x y 0 0 0 1 1 0 1 1 Combinational Logic 29

Multiplexers Dr. Panos Nasiopoulos A multiplexer selects one of many inputs and directs it to the output. ch1 ch2 Transmission line chn The selection may be controlled by select lines Normally 2 n lines: n select lines Example: 2 x 1 multiplexer x y MUX out How can we design this? Let s consider a 4 x 1 multiplexer MUX out Use code to direct input Combinational Logic 30

Multiplexers Dr. Panos Nasiopoulos Combinational Logic 31

Multiplexers used to implement Boolean functions Use a multiplexer to implement the following function: F = x y z + x yz + xy z + xyz z Z 1 z 0 Design a Full-adder S(x,y,z) = Σ(1,2,4,7); C(x,y,z) = Σ(1,2,4,7) x y z S 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Combinational Logic 32