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

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

Fundamentals of Computer Systems

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

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

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

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR

Carry Look Ahead Adders

COMP2611: Computer Organization. Introduction to Digital Logic

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

Systems I: Computer Organization and Architecture

Show that the dual of the exclusive-or is equal to its compliment. 7

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

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

COMBINATIONAL CIRCUITS

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

COMBINATIONAL LOGIC FUNCTIONS

Combinational Logic. By : Ali Mustafa

Arithmetic Circuits How to add and subtract using combinational logic Setting flags Adding faster

EECS150. Arithmetic Circuits

Switching Circuits & Logic Design

Why digital? Overview. Number Systems. Binary to Decimal conversion

ELCT201: DIGITAL LOGIC DESIGN

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

Chapter 2. Review of Digital Systems Design

Theory of Logic Circuits. Laboratory manual. Exercise 1

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

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

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

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

Digital Electronics Circuits 2017

Full Adder Ripple Carry Adder Carry-Look-Ahead Adder Manchester Adders Carry Select Adder

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

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

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

Digital- or Logic Circuits. Outline Logic Circuits. Logic Voltage Levels. Binary Representation

Review. EECS Components and Design Techniques for Digital Systems. Lec 18 Arithmetic II (Multiplication) Computer Number Systems

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

ELEN Electronique numérique

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

Learning Objectives. Boolean Algebra. In this chapter you will learn about:

211: Computer Architecture Summer 2016

Logic Design Combinational Circuits. Digital Computer Design

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

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

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

COMPUTERS ORGANIZATION 2ND YEAR COMPUTE SCIENCE MANAGEMENT ENGINEERING UNIT 3 - ARITMETHIC-LOGIC UNIT JOSÉ GARCÍA RODRÍGUEZ JOSÉ ANTONIO SERRA PÉREZ

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

COSC3330 Computer Architecture Lecture 2. Combinational Logic

ECE 2300 Digital Logic & Computer Organization

UNIT II COMBINATIONAL CIRCUITS:

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

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

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 2 Circuit Optimization

Numbers and Arithmetic

Function of Combinational Logic ENT263

DE58/DC58 LOGIC DESIGN DEC 2014

Hakim Weatherspoon CS 3410 Computer Science Cornell University

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

Sample Test Paper - I

Possible logic functions of two variables

CHAPTER1: Digital Logic Circuits Combination Circuits

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques s complement 2 s complement 1 s complement

Simlification of Switching Functions

Decoding A Counter. svbitec.wordpress.com 1

Addition and Subtraction

Arithmetic Circuits-2

Combinational Logic (mostly review!)

Chapter 2. Introduction. Chapter 2 :: Topics. Circuits. Nodes. Circuit elements. Introduction

Combinational Logic Design Arithmetic Functions and Circuits

Lecture 2 Review on Digital Logic (Part 1)

Design of Combinational Logic

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

Fundamentals of Digital Design

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

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

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

ENGIN 112 Intro to Electrical and Computer Engineering

University of Toronto Faculty of Applied Science and Engineering Final Examination

ECE380 Digital Logic. Positional representation

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

Adders allow computers to add numbers 2-bit ripple-carry adder

Appendix A: Digital Logic. CPSC 352- Computer Organization

CPE100: Digital Logic Design I

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

Adders, subtractors comparators, multipliers and other ALU elements

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

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

Adders, subtractors comparators, multipliers and other ALU elements

Numbers and Arithmetic

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

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

Review for Test 1 : Ch1 5

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

CMP 334: Seventh Class

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

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

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Transcription:

UNIT III Design of ombinational Logic ircuits Department of omputer Science SRM UNIVERSITY

Introduction to ombinational ircuits Logic circuits for digital systems may be ombinational Sequential combinational circuit consists of logic gates whose outputs at any time are determined by the current input values. It has no memory elements No feedback from output to input

ombinational ircuits Output is function of input only i.e. no feedback n inputs ombinational ircuits m outputs When input changes, output may change (after a delay)

ombinational ircuits nalysis Given a circuit, find out its function F? Function may be epressed as: F2? oolean function Truth table Design Given a desired function, determine its circuit Function may be epressed as: oolean function? Truth table

nalysis Procedure oolean Epression pproach T 2 = T =++ F 2 =( + )( + )( + ) F T 3 =''+''+'' F 2 =++ F 2 F =''+''+''+ F 2 =++

nalysis Procedure Truth Table pproach F F 2 = = = = = = = = F = = F 2 = =

nalysis Procedure Truth Table pproach = = = F F F 2 = = = = = = = F 2 = =

nalysis Procedure Truth Table pproach = = = = = = = = F F F 2 = = F 2 = =

nalysis Procedure Truth Table pproach = = = = = = = = F F F 2 = = F 2 = =

nalysis Procedure Truth Table pproach = = = = = = = = F F F 2 = = F 2 = =

nalysis Procedure Truth Table pproach = = = = = = = = F F F 2 = = F 2 = =

nalysis Procedure Truth Table pproach = = = = = = = = = = F F 2 F F 2 = =

nalysis Procedure Truth Table pproach = = = = = = = = = = = = F =''+''+''+ F F 2 F F 2 F 2 =++

Design Procedure Given a problem statement: Determine the number of inputs and outputs Derive the truth table Simplify the oolean epression for each output Produce the required circuit Eample: Design a circuit to convert a D code to Ecess 3 code 4-bits -9 values? 4-bits Value+3 Eastern Mediterranean University 3 / 65

Design Procedure D-to-Ecess 3 onverter D w y z D w = ++D D y = D +D z = D D D = + D+ D

Design Procedure D-to-Ecess 3 onverter D w y z D w = + (+D) = (+D) + (+D) y = (+D) + D z = D w y z

inary dder Half dder dds -bit plus -bit y H S Produces Sum and arry y S y + y S S

inary dder Full dder dds -bit plus -bit plus -bit Produces Sum and arry y z S y yz F + y + z S z S = y'z'+'yz'+'y'z+yz = y z y z = y + z + yz S

inary dder Full dder y z y z S = y'z'+'yz'+'y'z+yz = y z = y + z + yz y z y z y z y z S y z y z y z y z S y z

inary dder Full dder y H H S z y S z

inary dder y 3 2 y 3 y 2 y y inary dder arry Propagate ddition c 3 c 2 c. + 3 2 + y 3 y 2 y y y S 3 S 2 S S S 3 S 2 S S 3 2 y 3 y 2 y y F F F F 4 S 3 3 S 2 2 S S

inary dder arry Propagate dder 7 6 5 4 y 7 y 6 y 5 y 4 3 2 y 3 y 2 y y 3 2 3 2 3 2 3 2 y P y P S 3 S 2 S S S 3 S 2 S S S 7 S 6 S 5 S 4 S 3 S 2 S S

inary dder arry Propagation arry propagation When the correct outputs are available The critical path counts (the worst case) (,, ) 2 3 4 ( 5, S 4 ) When 4-bits full-adder 8 gate levels (n-bits: 2n gate levels) Full dder with P and G

Parallel dders Reduce the carry propagation delay Employ faster gates Look-ahead carry (more comple mechanism, yet faster) arry propagate: P i = i i arry generate: G i = i i Sum: S i = P i i arry: i+ = G i +P i i = Input carry = G +P 2 = G +P = G +P (G +P ) = G +P G +P P 3 = G 2 +P 2 2 = G 2 +P 2 G +P 2 P G + P 2 P P

inary Subtractor Use 2 s complement with binary adder y = + (-y) = + y + 3 2 y 3 y 2 y y 3 2 3 2 y inary dder i S 3 S 2 S S F 3 F 2 F F

inary dder/subtractor M: ontrol Signal (Mode) M= F = + y M= F = y 3 2 y 3 y 2 y y M 3 2 3 2 y inary dder i S 3 S 2 S S F 3 F 2 F F

Logic diagram arry Look-ahead dder (/2) Logic Diagram of arry Look-ahead Generator

arry Look-ahead dder (2/2) 4-bit carry-look ahead adder Propagation delay of 3, 2 and are equal. 4-it dder with arry Look-ahead

Decimal dder decimal adder requires a minimum of 9 inputs and 5 outputs digit requires 4-bit Input: 2 digits + -bit carry Output: digit + -bit carry D adder Perform the addition of two decimal digits in D, together with an input carry from a previous stage. The output sum cannot be greater than 9 (9+9+)

D dder 4-bits plus 4-bits Operands and Result: to 9 + 3 2 + y 3 y 2 y y y S 3 S 2 S S X +Y 3 2 y 3 y 2 y y Sum y S 3 S 2 S S + = + = + 2 = 2 + 9 = 9 + = + = 2 + 8 = 9 + 9 = 2 + = 2 9 + 9 = 2 Invalid ode Wrong D Value

D dder X +Y 3 2 y 3 y 2 y y Sum y S 3 S 2 S S Required D Output Value 9 + = 9 = 9 9 + = = 6 9 + 2 = = 7 9 + 3 = 2 = 8 9 + 4 = 3 = 9 9 + 5 = 4 = 2 9 + 6 = 5 = 2 9 + 7 = 6 = 22 9 + 8 = 7 = 23 9 + 9 = 8 = 24 + 6

D dder orrect inary dder s Output (+6) If the result is between and F If y = S 3 S 2 S S Err S S 3 S S 2 Err = S 3 S 2 + S 3 S

D dder 3 2 y 3 y 2 y y 3 2 3 2 y inary dder i S 3 S 2 S S Err 3 2 3 2 y inary dder i S 3 S 2 S S y S 3 S 2 S S

Overflow Unsigned inary Numbers 3 2 y 3 y 2 y y arry F 2 s omplement Numbers F F 4 S 3 3 S 2 2 S S 3 2 F y 3 y 2 y y F F F F Overflow 4 S 3 3 S 2 2 S S

inary Multiplier

4-it y 3-it inary Multiplier

Decoders Etract Information from the code inary Decoder Eample: 2-bit inary Number Only one lamp will turn on inary Decoder

inary Decoder Decoders 2-to-4 Line Decoder Y 3 I I y 3 y 2 y y Y 2 Y Y I I Y 3 Y 2 Y Y I I Y3 I I Y2 I I Y I I Y I I

inary Decoder Decoders 3-to-8 Line Decoder Y 7 Y 6 I I 2 I I 2 I I I 2 I I Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y Y Y 5 Y 4 Y 3 Y 2 Y Y I I I I I I 2 I I 2 I I 2 I I 2 I I 2 I I 2 I I I 2 I I

inary Decoder Decoders Enable ontrol Y 3 I I E Y 3 Y 2 Y Y Y 2 Y Y E I I Y 3 Y 2 Y Y I I E

Decoders inary Decoder inary Decoder Epansion I 2 I I I 2 I I Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y Y I I E I I E Y 3 Y 2 Y Y Y 3 Y 2 Y Y Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y Y

inary Decoder Decoders inary Decoder ctive-high / ctive-low I I Y 3 Y 2 Y Y I I Y 3 Y 2 Y Y Y 3 Y 2 I I Y 3 Y 2 Y I Y 3 Y 2 Y Y I I Y I Y Y

Implementation Using Decoders Each output is a minterm ll minterms are produced Sum the required minterms Eample: Full dder S(, y, z) = (, 2, 4, 7) (, y, z) = (3, 5, 6, 7) y z inary Decoder I 2 I I Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y Y S

Implementation Using Decoders inary Decoder inary Decoder y z I 2 I I Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y Y y z I 2 I I Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y Y S S

Seven-Segment Decoder w y z a b c d e f g w y z? D code y w z a b c d a = w + y + z + z b =... c =... d =... e f g e f d a g b c

Encoders Put Information into code inary Encoder Eample: 4-to-2 inary Encoder Only one switch should be activated at a time 2 3 inary Encoder y y 3 2 y y

Encoders inary Encoder Octal-to-inary Encoder (8-to-3) I 7 I 6 I 5 I 4 I 3 I 2 I I Y 2 Y Y Y Y Y 2 I I I 7 7 7 I I I 6 6 5 I I I 5 3 3 I I I 4 2 I 7 I 6 I 5 I 4 I 3 I 2 I I I 7 I 6 I 5 I 4 I 3 I 2 I I Y 2 Y Y Y 2 Y Y

Priority Encoders Priority Encoder 4-Input Priority Encoder I 3 I 2 I I Y Y V I 3 I 2 I 3 I 2 I I V Y Y Y Y I I 3 I I 2 Y Y V I I I 3 3 3 I I I 2 2 2 I I I I I Y V

Encoder / Decoder Pairs inary Encoder inary Decoder I 7 I 6 I 5 I 4 I 3 I 2 I I Y 2 Y Y I 2 I I Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y Y

Digital Multipleer S S Y I I I I I 2 MUX I 3 S S Y I 2 I 3

Multipleers 2-to- MUX I I I MUX S Y I Y S 4-to- MUX I I I I I 2 MUX I 3 S S Y I 2 I 3 Y S S

Multipleers Quad 2-to- MUX 3 y 3 I I MUX Y S 3 2 Y 3 Y 2 Y Y 2 y 2 y y I I I I I I MUX Y S MUX Y S MUX Y S 3 2 S E 3 2 3 2 MUX S E Y 3 Y 2 Y Y S

Multipleers Quad 2-to- MUX 3 2 3 2 Y 3 Y 2 Y Y 3 2 3 2 MUX S E Y 3 Y 2 Y Y Etra uffers S E

Implementation Using Multipleers Eample F(, y) = (,, 3) y F I I I 2 MUX I 3 S S y Y F

Implementation Using Using Multipleers Eample F(, y, z) = (, 2, 6, 7) y z F I I I 2 I 3 I MUX 4 I 5 I 6 I 7 S2 S S y z Y F

Implementation Using Using Multipleers Eample F(, y, z) = (, 2, 6, 7) y z F F = z F = z F = F = z z I I I 2 MUX I 3 S S y Y F

Implementation Using Using Multipleers Eample F(,,, D) = (, 3, 4,, 2, 3, 4, 5) D F F = D F = D F = D F = F = F = D F = F = D D D D I I I 2 I 3 I MUX 4 I 5 I 6 I 7 S2 S S Y F

Multipleer Epansion 8-to- MUX using Dual 4-to- MUX I I I 2 I 3 I I I 2 MUX I 3 S S Y I 4 I 5 I 6 I 7 I I I 2 MUX I 3 S S Y I I MUX S Y Y S 2 S S

DeMultipleers I DeMUX S S Y 3 Y 2 Y Y Y 3 I S S Y 2 Y Y S S Y 3 Y 2 Y Y I I I I

Multipleer / DeMultipleers Pairs MUX DeMUX I 7 I 6 I 5 I 4 I 3 I 2 I I Y I Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y Y S 2 S S S 2 S S Synchronize 2 y 2 y y

DeMultipleers / Decoders inary Decoder I DeMUX S S Y 3 Y 2 Y Y I I E Y 3 Y 2 Y Y S S Y 3 Y 2 Y Y I I I I E I I Y 3 Y 2 Y Y

Magnitude omparator ompare 4-bit number to 4-bit number 3 Outputs: <, =, > Epandable to more number of bits Magnitude omparator 3 2 3 2 < = > 3 3 3 3 3 2 2 2 2 2 2 3 ) ( 2 3 2 3 2 2 3 3 3 ) ( 2 3 2 3 2 2 3 3 3 ) (

Magnitude omparator 3 3 3 2 2 2 (<) (>) (=)

Magnitude omparator 7 6 5 4 y 7 y 6 y 5 y 4 3 2 y 3 y 2 y y 3 2 3 2 I (>) I (=) I (<) Magnitude omparator < = > 3 2 3 2 I (>) I (=) I (<) Magnitude omparator < = > < = >

Thank you