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

Similar documents
Systems I: Computer Organization and Architecture

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

Combinational Logic. By : Ali Mustafa

Combinational Logic. Course Instructor Mohammed Abdul kader

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

COMBINATIONAL LOGIC FUNCTIONS


CHAPTER1: Digital Logic Circuits Combination Circuits

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

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

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

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

ELCT201: DIGITAL LOGIC DESIGN

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

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

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

Boolean Algebra, Gates and Circuits

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

UNIVERSITI TENAGA NASIONAL. College of Information Technology

UNIT II COMBINATIONAL CIRCUITS:

Review for Test 1 : Ch1 5

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

Digital Logic Design ENEE x. Lecture 14

Sample Test Paper - I

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

Signals and Systems Digital Logic System

ELCT201: DIGITAL LOGIC DESIGN

CHAPTER 2 BOOLEAN ALGEBRA

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

MC9211 Computer Organization

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

Chapter 2 Combinational Logic Circuits

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

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

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

Unit 2 Boolean Algebra

Lecture 2 Review on Digital Logic (Part 1)

UNIT 1. BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS

Unit 3 Session - 9 Data-Processing Circuits

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

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

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

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

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

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

Adders - Subtractors

ENGIN 112 Intro to Electrical and Computer Engineering

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

Chap 2. Combinational Logic Circuits

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

Karnaugh Map & Boolean Expression Simplification

Design of Combinational Logic

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

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Carry Look Ahead Adders

Combinational Logic Design Combinational Functions and Circuits

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

DE58/DC58 LOGIC DESIGN DEC 2014

Unit 2 Session - 6 Combinational Logic Circuits

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

DIGITAL LOGIC DESIGN PPT

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

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

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

CHAPTER 7. Exercises 17/ / /2 2 0

CHAPTER 3 BOOLEAN ALGEBRA

Chapter 3 Ctd: Combinational Functions and Circuits

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

Computer Science Final Examination Friday December 14 th 2001

MODULAR CIRCUITS CHAPTER 7

Chapter 2. Digital Logic Basics

DIGITAL LOGIC DESIGN

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

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

3. Combinational Circuit Design

INSTITUTEOFAERONAUTICALENGINEERING (Autonomous) Dundigal, Hyderabad

Unit 2 Boolean Algebra


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

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

Philadelphia University Student Name: Student Number:

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

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

Review: Additional Boolean operations

Digital Logic Design. Combinational Logic

Chapter 2 Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

Total Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20

1. Expand each of the following functions into a canonical sum-of-products expression.

Gate-Level Minimization

211: Computer Architecture Summer 2016

Digital Logic (2) Boolean Algebra

CHAPTER 12 Boolean Algebra

Binary logic consists of binary variables and logical operations. The variables are

COMBINATIONAL CIRCUITS

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

Transcription:

Chapter 4: Combinational Logic Solutions to Problems: [, 5, 9, 2, 9, 23, 3, 33] Problem: 4- Consider the combinational circuit shown in Fig. P4-. (a) Derive the Boolean expressions for T through T 4. Evaluate the outputs of F and F 2 as a function of the four inputs. (b) List the truth table with 6 binary combinations of the four inputs variables. Then list the binary values for T through T 4 and outputs F and F 2 in the table. (c) Plot the output Boolean functions obtained in part (b) on maps and show that the simplified Boolean expressions are equivalent to the ones obtained in part (a). Solution: (a) The Boolean expressions for T through T 4. The outputs of F and F 2 as a function of the four inputs. T T 4 F T F B C T T A( D) A BD B C B D ( A A )( A BD ) B C B D A BD B C B D 2 2 3 D T T A B T D A BD ( A B) D A BD ( A B ) D 4 2 2 A AD A BD B C B D D A B 3 A T A B C A BD AD B D Page of 4

(b) The truth table with 6 binary combinations of the four inputs variables with the binary values for T through T 4 and outputs F and F 2 : A B C D T T 2 T 3 T 4 F F 2 (c) Plot of the output Boolean functions obtained in part (b) on maps Map for F : C The simplified expression from the CD map is: AB F A BC BD B D A B Map for F 2 : The simplified expression from the map is: F D A B 2 AB CD D C A B The simplified Boolean expressions are equivalent to the ones obtained in part (a). Problem: 4-5 D Page 2 of 4

Design a combinational circuit with three inputs, x, y and z, and the three outputs, A, B, and C. when the binary input is,, 2, or 3, the binary output is one greater than the input. When the binary input is 4, 5, 6, or 7, the binary output is one less than the input. Solution: Design procedure:. Derive the truth table that defines the required relationship between inputs and outputs. x Y z A B C 2. Obtain the simplified Boolean functions for each output as a function of the input variables. Map for output A: The simplified expression from the map is: A xz xy yz x yz y Map for output B: The simplified expression from the map is: B x y z x yz xy z xyz x yz z y Map for output C: The simplified expression from the map is: C z' x yz z y z Page 3 of 4

3. Draw the logic diagram. A xy xz yz B x y z x yz xy z xyz C z' Page 4 of 4

Page 5 of 4

Problem: 4-9 A BCD-to-seven-segment decoder is a combinational circuit that converts a decimal digit in BCD to an appropriate code for the selection of segments in a display indicator used for displaying the decimal digit in a familiar form. The seven outputs of the decoder (a, b, c, d, e, f, g) select the corresponding segments in the display as shown in Fig. P4-9(a). The numeric display chosen to represent the decimal digit is shown Fig. P4-9(b). Design the BCD-to-seven-segment decoder using a minimum number of gates. The six invalid combinations should result in a blank display. Solution: Design procedure:. Derive the truth table that defines the required relationship between inputs and outputs. w x y z a b c d e f g X X X 2. Express the Boolean expressions for the outputs (a-g) in sum of minterms a(w,x,y,z)= (,2,3,5,6,7,8,9) b(w,x,y,z)= (,,2,3,4,7,8,9) c(w,x,y,z)= (,,3,4,5,6,7,8,9) d(w,x,y,z)= (,2,3,5,6,8,9) e(w,x,y,z)= (,2,6,8) f(w,x,y,z)= (,4,5,6,8,9) g(w,x,y,z)= (2,3,4,5,6,7,8,9) Page 6 of 4

3. Draw the logic circuit. Two 3-to-8-line decoders with enable inputs have been connected to form a 4-to-6-line decoder. Together they generate all the minterms of the input variables. OR gates are to be used to implement each of the functions a-g. The inputs to each OR gate are selected from the decoder outputs according to the list of minterm of each function. The diagram below shows the circuit for output a, d and e. The same procedure should be followed to include the remaining functions and complete the logic circuit. Decoder x y S S 2 D D 8 D D D 2 D 3 e w z S 3 ENB Decoder D 4 D 5 D 6 D 7 d a D 8 S D D 9 S 2 D 8 D D S 3 D 2 D 3 ENB D 4 D 5 Page 7 of 4

Problem: 4-2 (a) Design a half subtractor circuit with inputs x and y and outputs D and B. The circuit subtracts the bits x-y and places the difference in D and the borrow in B. (b) Design a full subtractor circuit with three inputs x, y and z and two outputs D and B. The circuit subtracts the bits x-y-z, where z is the input borrow, B is the output borrow and D is the difference. Solution (a) To design a half subtractor circuit with inputs x and y and outputs D and B. The circuit subtracts the bits x-y and places the difference in D and the borrow in B. Design procedure:. Derive the truth table that defines the required relationship between inputs and outputs. x y D B 2. Obtain the simplified Boolean functions for each output as a function of the input variables. D=x y+xy B=x y 3. Draw the logic diagram. Page 8 of 4

Solution (b) Design a full subtractor circuit with three inputs x, y and z and two outputs D and B. The circuit subtracts the bits x-y-z, where z is the input borrow, B is the output borrow and D is the difference. Design procedure:. Derive the truth table that defines the required relationship between inputs and outputs. x y z D B 2. Obtain the simplified Boolean functions for each output as a function of the input variables. yz y yz y x x D=x y z+x yz +xy z +xyz z z B=yz+x y+x z 3. Draw the logic diagram. Page 9 of 4

Page of 4

Problem: 4-9 Construct a BCD adder-subtractor circuit. Use the BCD adder of Fig 4-4 and the 9 s complementer of problem 4-8. Use block diagrams for the components. Solution: The circuit below will add or subtract two BCD digits. The multiplexer is to select between its two possible inputs according to whether we want to perform addition or subtraction. In the case that we want to perform subtraction of A 3 A 2 A A - B 3 B 2 B B, the input from the s complementer will be steered to the output lines of the multiplexer and into the input lines of the BCD adder. The s complementer is implemented by adding one to the output of the 9 s complementer block. B 3 B 2 B B 9 s complementer B 3 B 2 B B BCD Adder A 3 A 2 A A Quadruple 2-to- Multiplexer BCD Adder Page of 4

Problem: 4-23 Draw the logic diagram of a 2-to-4 line decoder using NOR gates only. Include an enable input. Solution: Design procedure:. The truth table for the circuit. E A B D D D 2 D 3 X X D = EA B =(E +A+B) D = EA B =(E +A+B ) D 2 = EAB =(E +A +B) D 3 = EAB =(E +A +B ) 2. The logic diagram A D B D D 2 E D 3 Page 2 of 4

Problem: 4-3 Specify the truth table of an octal to binary priority encoder. Provide an output V to indicate that at least one of the inputs is present. The input with the highest subscript number has the highest priority. What will be the value of the four inputs if inputs D 5 and D 3 are at the same time? Solution: Below is the truth table of an Octal-to-Binary priority encoder with an output V to indicate that at least one of the inputs is present. The input with the highest subscript number has the highest priority. D D D 2 D 3 D 4 D 5 D 6 D 7 X Y Z V X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X The value of the four outputs if inputs D 5 and D 3 are at the same time will be X=, Y=, Z=, V=. Page 3 of 4

Problem: 4-33 Implement a full adder with two 4 x multiplexers. Solution: Design procedure:. Derive the truth table that defines the required relationship between inputs and outputs. X Y Z C C S S C= S=Z C=Z S=Z C=Z S=Z C= S=Z 2. We connect the first two variables of the functions to the selection inputs of the multiplexer. The remaining single variable of the function is used for the data inputs. Page 4 of 4