Chapter 4. Combinational Logic

Similar documents
Combinational Circuits

Combinational Logic. Prof. Wangrok Oh. Dept. of Information Communications Eng. Chungnam National University. Prof. Wangrok Oh(CNU) 1 / 93

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 3 DLD P VIDYA SAGAR

Combinational Logic II

COMBINATIONAL LOGIC CIRCUITS

EE 8351 Digital Logic Circuits Ms.J.Jayaudhaya, ASP/EEE

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-II COMBINATIONAL CIRCUITS

Chap.3 3. Chap reduces the complexity required to represent the schematic diagram of a circuit Library


Combinational Logic with MSI and LSI

Chapter 1. Digital Systems and Binary Numbers

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

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

LOGIC CIRCUITS. Kirti P_Didital Design 1

Combinational Logic Circuits

Binary Addition. Add the binary numbers and and show the equivalent decimal addition.

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

Addition and multiplication

Combinational Logic Use the Boolean Algebra and the minimization techniques to design useful circuits No feedback, no memory Just n inputs, m outputs

Combinational Circuit Design

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT

UNIT- V COMBINATIONAL LOGIC DESIGN

Chapter Three. Digital Components

Injntu.com Injntu.com Injntu.com R16

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

ECE 341 Midterm Exam

Principles of Computer Architecture. Chapter 3: Arithmetic

Fundamentals of Computer Systems

Binary Adders: Half Adders and Full Adders

Korea University of Technology and Education

COPYRIGHTED MATERIAL INDEX

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

Chapter 3: part 3 Binary Subtraction

CO Computer Architecture and Programming Languages CAPL. Lecture 9

REGISTER TRANSFER LANGUAGE

3. The high voltage level of a digital signal in positive logic is : a) 1 b) 0 c) either 1 or 0

Basic Arithmetic (adding and subtracting)

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

Digital logic fundamentals. Question Bank. Unit I

2. (a) Compare the characteristics of a floppy disk and a hard disk. (b) Discuss in detail memory interleaving. [8+7]

Chapter 4: Combinational Logic

DE Solution Set QP Code : 00904

Area Efficient, Low Power Array Multiplier for Signed and Unsigned Number. Chapter 3

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

1. Mark the correct statement(s)

Chapter 3 Part 2 Combinational Logic Design

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

Digital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes

Code No: R Set No. 1

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

CONTENTS CHAPTER 1: NUMBER SYSTEM. Foreword...(vii) Preface... (ix) Acknowledgement... (xi) About the Author...(xxiii)

CS 121 Digital Logic Design. Chapter 1. Teacher Assistant. Hadeel Al-Ateeq

ECE 341 Midterm Exam

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 09 MULTIPLEXERS

D I G I T A L C I R C U I T S E E

Experiment 7 Arithmetic Circuits Design and Implementation

R10. II B. Tech I Semester, Supplementary Examinations, May

Lecture 6: Signed Numbers & Arithmetic Circuits. BCD (Binary Coded Decimal) Points Addressed in this Lecture

Chapter 6 Combinational-Circuit Building Blocks

END-TERM EXAMINATION

Arithmetic Logic Unit. Digital Computer Design

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

Arithmetic Circuits. Nurul Hazlina Adder 2. Multiplier 3. Arithmetic Logic Unit (ALU) 4. HDL for Arithmetic Circuit

II/IV B.Tech (Regular/Supplementary) DEGREE EXAMINATION. Answer ONE question from each unit.

Chapter 4. Combinational Logic. Dr. Abu-Arqoub

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

ECE 30 Introduction to Computer Engineering

IA Digital Electronics - Supervision I

THE LOGIC OF COMPOUND STATEMENTS

COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK SUBJECT CODE & NAME: EC 1312 DIGITAL LOGIC CIRCUITS UNIT I

BINARY SYSTEM. Binary system is used in digital systems because it is:

Chapter 4 Arithmetic

Number Systems. Readings: , Problem: Implement simple pocket calculator Need: Display, adders & subtractors, inputs

DIGITAL ELECTRONICS. P41l 3 HOURS


Objectives: 1. Design procedure. 2. Fundamental circuits. 1. Design procedure

LECTURE 4. Logic Design


Chapter 3 Arithmetic for Computers

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

CSE140 L. Instructor: Thomas Y. P. Lee January 18,2006. CSE140L Course Info

Arithmetic and Logical Operations

Scheme G. Sample Test Paper-I

UNIT IV: DATA PATH DESIGN

10EC33: DIGITAL ELECTRONICS QUESTION BANK

DIGITAL ARITHMETIC: OPERATIONS AND CIRCUITS

(+A) + ( B) + (A B) (B A) + (A B) ( A) + (+ B) (A B) + (B A) + (A B) (+ A) (+ B) + (A - B) (B A) + (A B) ( A) ( B) (A B) + (B A) + (A B)

EXPERIMENT #8: BINARY ARITHMETIC OPERATIONS

DIRECTORATE OF TECHNICAL EDUCATION DIPLOMA IN ELECTRICAL AND ELECTRONICS ENGINEERING II YEAR M SCHEME IV SEMESTER.

Hours / 100 Marks Seat No.

Fundamentals of Computer Systems

Number System. Introduction. Decimal Numbers

Department of Computer Science & Engineering. Lab Manual DIGITAL LAB. Class: 2nd yr, 3rd sem SYLLABUS

EX4 DIGITAL ELECTRONICS After completing the task and studying Unit 1.6, students will be able to: (check all that apply):

Register Transfer and Micro-operations

Transcription:

Chapter 4. Combinational Logic Tong In Oh 1

4.1 Introduction Combinational logic: Logic gates Output determined from only the present combination of inputs Specified by a set of Boolean functions Sequential logic: Employ storage elements in addition to logic gates Output determined by present inputs and the state of the storage elements Specified by a time sequence of inputs and internal states 2

4.2 Combinational Circuits Interconnection of logic gates React to the input signals and produce the output signal Transforming binary information For n input variables, m Boolean functions (one for each output variable) FIGURE 4.1 Block diagram of combinational circuit 3

Goals To formulate systematic analysis Design procedures for combinational circuits Provide a useful catalog of elementary functions Two tasks Analyze the behavior of a given logic circuit Synthesize a circuit for a given behavior The most important standard combinational circuits Adders, subtractors, comparators, decoders, encoders, and multiplexers 4

4.3 Analysis Procedure Determine the function implemented in the circuit Boolean functions, a truth table, explanation of the circuit operation from the given logic diagram 1. Combinational and not sequential? No feedback paths or memory elements 2. To obtain the output Boolean functions 1. Label all gate outputs that are a function of input variables with arbitrary symbols but with meaningful names. Determine the Boolean functions for each gate output. 2. Label the gates that are a function of input variables and previously labeled gates with other arbitrary symbols. Find the Boolean functions for these gates. 3. Repeat the process outlined in step 2 until the outputs of the circuit are obtained. 4. By repeated substitution of previously defined functions, obtain the output Boolean functions in terms of input variables. 5

Determine the function from a given logic diagram to a set of Boolean functions or a truth table FIGURE 4.2 Logic diagram for analysis example 6

Truth Table To obtain truth table 1. Determine the number of input variables in the circuit. List the binary numbers from 0 to (2 n - 1) in a table. 2. Label the outputs of selected gates with arbitrary symbols. 3. Obtain the truth table for the outputs of those gates which are a function of the input variables only. 4. Proceed to obtain the truth table for the outputs of those gates which are a function of previously defined values until the columns for all outputs are determined Identical to the truth table of the full adder 7

4.4 Design Procedure Start from the specification of the design objective Culminate in a logic circuit diagram or a set of Boolean functions 1. From the specifications of the circuit, determine the required number of inputs and outputs and assign a symbol to each. 2. Derive the truth table that defines the required relationship between inputs and outputs. 3. Obtain the simplified Boolean functions for each output as a function of the input variables. 4. Draw the logic diagram and verify the correctness of the design (manually or by simulation). Interpret verbal specifications correctly in the truth table Constraints Number of gates, number of inputs to a gate, propagation time of the signal through the gates, number of interconnections, limitations of the driving capability of each gate, various other criteria 8

Code Conversion Example Code converter: transformation Ex. Convert BCD to the excess-3 code for decimal digits Four inputs, four outputs 10 combinations except of 6 don t care combinations 9 FIGURE 4.3 Maps for BCD-to-excess-3 code converter

FIGURE 4.4 Logic diagram for BCD-to-excess- 3 code converter 10

4.5 Binary Adder-Subtractor Digital computer: Perform a variety of information-processing tasks Various arithmetic operations Addition of two binary digits 0+0=0, 0+1=1, 1+0=1, 1+1=10 Half adder: perform the addition of two bits Full adder: perform the addition of three bits (two significant bits and a previous carry) Carry: higher significant bit of binary sum of two digits Binary adder-subtractor: combinational circuit performs the arithmetic operation of addition and subtraction with binary numbers Hierarchical design Half adder full adder binary adder subtractor 11

Half Adder Need two binary inputs (augend, addend) and two binary outputs (sum, carry) FIGURE 4.5 Implementation of half adder 12

Full Adder Process of addition: Bit-by-bit basis, right to left, beginning with the least significant bit Consider the addition at each position and possible carry bit from the previous position Three inputs and two outputs 13

FIGURE 4.7 Implementation of full adder in sum-of-products form FIGURE 4.8 Implementation of full adder with two half adders and an OR gate 14

Binary Adder Produce the arithmetic sum of two binary numbers Connected full adders in cascade N-bit addition: chain of N full adders or 1 half adder and N-1 full adders FIGURE 4.9 Four-bit adder 15

Carry Propagation For N-bit adder, 2n gate levels for carry to propagate from input to output Reducing the carry propagation delay time Employ faster gates with reduced delays To increase the complexity of the equipment (in a parallel adder) Principle of carry lookahead logic FIGURE 4.10 Full adder with P and G shown 16

Speed of operation Expense of additional complexity FIGURE 4.11 Logic diagram of carry lookahead generator + 17

FIGURE 4.12 Four-bit adder with carry lookahead 18

Binary Subtractor A-B: Adding A to 2 s complement of B 2 s complement: inverters and sum through the input carry 19 FIGURE 4.13 Four-bit adder subtractor (with overflow detection)

Overflow Detect from the end carry out of the most significant position When unsigned numbers Consider with the last two carries together When signed numbers (Considering the leftmost sign bit and negative numbers as 2 s complement form) = If not equal, overflow has occurred 20

4.6 Decimal Adder BCD adder 9+9+1 = 19 21

Block diagram of a BCD adder 22

4.7 Binary Multiplier J multiplier bits K multiplicand bits (JXK) AND gates (J-1) K-bit adders Result: product of (J+K) bits FIGURE 4.15 Two-bit by two-bit binary multiplier 23

FIGURE 4.16 Four-bit by three-bit binary multiplier 24

4.8 Magnitude Comparator Regularity Algorithm FIGURE 4.17 Four-bit magnitude comparator 25

4.9 Decoders Convert binary information from n input lines to a maximum of 2 n unique output lines 2 n (or fewer) minterms of n input variables Generate a unique output N-to-M line decoder Code converter FIGURE 4.18 Three-to-eight-line decoder 26

Decoder-Demultiplexer 0 A decoder with enable input can function as a demultiplexer Ex) one to four line demultiplexer (E: data input line, A and B: selection inputs) FIGURE 4.19 Two-to-four-line decoder with enable input 27

Larger Decoder Circuit FIGURE 4.20 4 16 decoder constructed with two 3 8 decoders 28

Combinational Logic Implementation FIGURE 4.21 Implementation of a full adder with a decoder 29

Encoders 2 n (or fewer) input lines and n output lines Assume only one input has a value of 1 at any given time Must establish an input priority Ambiguities of all 0 s inputs 30

Priority Encoder V: valid bit indicator FIGURE 4.23 Four-input priority encoder FIGURE 4.22 Maps for a priority encoder 31

Multiplexers (MUX) Select binary information from one of many input lines and directs it to a single output line 2 n input lines and n selection lines, a common destination Electronic switch that selects one of two sources Data selector (providing a path from the selected input to the output) FIGURE 4.24 Two-to-one-line multiplexer 32

Decoder FIGURE 4.25 Four-to-one-line multiplexer 33

Multiple-bit Selection Logic FIGURE 4.26 multiplexer Quadruple two-to-one-line 34

Boolean Function Implementation Bolean function of n variables with a multiplexer with n-1 selection inputs and 2 n-1 data inputs FIGURE 4.27 Implementing a Boolean function with a multiplexer 35

FIGURE 4.28 Implementing a four-input function with a multiplexer 36

Three-State Gates A multiplexer constructed with three-state gates The third state: high impedance state Behave like an open circuit No logic significance Not affected by the inputs to the gate Buffer gate FIGURE 4.29 Graphic symbol for a three-state buffer Multiplexers with three- FIGURE 4.30 state gates 37