McGILL UNIVERSITY Electrical and Computer Engineering Department MIDTERM EXAM

Similar documents
CSCI 220: Computer Architecture I Instructor: Pranava K. Jha. Simplification of Boolean Functions using a Karnaugh Map

Experiment 3: Logic Simplification

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

Chapter 2 Combinational

Chapter 3. Gate-Level Minimization. Outlines

Chapter 2 Combinational Logic Circuits

Combinational Logic Circuits

Gate Level Minimization Map Method

Gate-Level Minimization

Code No: R Set No. 1

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

Simplification of Boolean Functions

Gate Level Minimization

CMPE223/CMSE222 Digital Logic

UNIT 2 BOOLEAN ALGEBRA

ELCT201: DIGITAL LOGIC DESIGN

Contents. Chapter 3 Combinational Circuits Page 1 of 34

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

ECE380 Digital Logic

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

IT 201 Digital System Design Module II Notes

PROGRAMMABLE LOGIC DEVICES

數位系統 Digital Systems 朝陽科技大學資工系. Speaker: Fuw-Yi Yang 楊伏夷. 伏夷非征番, 道德經察政章 (Chapter 58) 伏者潛藏也道紀章 (Chapter 14) 道無形象, 視之不可見者曰夷

BHARATHIDASAN ENGINEERING COLLEGE Degree / Branch : B.E./ECE Year / Sem : II/ III Sub.Code / Name : EC6302/DIGITAL ELECTRONICS


Code No: R Set No. 1

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Literal Cost F = BD + A B C + A C D F = BD + A B C + A BD + AB C F = (A + B)(A + D)(B + C + D )( B + C + D) L = 10

Chapter 3 Simplification of Boolean functions

Presentation 4: Programmable Combinational Devices

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY

2.1 Binary Logic and Gates

10EC33: DIGITAL ELECTRONICS QUESTION BANK

Digital Design. Chapter 4. Principles Of. Simplification of Boolean Functions

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

UNIT I BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS PART-A (2 MARKS)

QUESTION BANK FOR TEST

Specifying logic functions

ELCT201: DIGITAL LOGIC DESIGN

A B AB CD Objectives:

Programmable Logic Devices

Switching Circuits & Logic Design

CHAPTER 9 MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

CS8803: Advanced Digital Design for Embedded Hardware

PALs, GALs & CUPL. What is Programmable Logic?

R.M.D. ENGINEERING COLLEGE R.S.M. Nagar, Kavaraipettai

Dr. S. Shirani COE2DI4 Midterm Test #1 Oct. 14, 2010

EECS 140/141 Introduction to Digital Logic Design Fall Semester 2016 Exam #1 Date: 3 October 2016

Code No: 07A3EC03 Set No. 1

ece5745-pla-notes.txt

Spring 2010 CPE231 Digital Logic Section 1 Quiz 1-A. Convert the following numbers from the given base to the other three bases listed in the table:

Digital Logic Design. Outline

Synthesis 1. 1 Figures in this chapter taken from S. H. Gerez, Algorithms for VLSI Design Automation, Wiley, Typeset by FoilTEX 1

Combinational Logic Circuits Part III -Theoretical Foundations

ENGINEERS ACADEMY. 7. Given Boolean theorem. (a) A B A C B C A B A C. (b) AB AC BC AB BC. (c) AB AC BC A B A C B C.

Digital logic fundamentals. Question Bank. Unit I

Final Examination (Open Katz, asynchronous & test notes only, Calculators OK, 3 hours)

Mid-Term Exam Solutions

Code No: R Set No. 1

CS6201-DIGITAL PRINCIPLE AND SYSTEM DESIGN I YEAR/II SEM PART-B UNIT-I BOOLEAN ALGEBRA AND LOGIC GATES.

Chapter 2 Combinational Logic Circuits

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

UNIT II. Circuit minimization

Gate-Level Minimization

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Combinational Logic & Circuits

ECE260B CSE241A Winter Logic Synthesis

ENEL 353: Digital Circuits Midterm Examination

Gate-Level Minimization

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

CprE 281: Digital Logic

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

Introduction to Programmable Logic Devices (Class 7.2 2/28/2013)

2008 The McGraw-Hill Companies, Inc. All rights reserved.

PART B. 3. Minimize the following function using K-map and also verify through tabulation method. F (A, B, C, D) = +d (0, 3, 6, 10).

CHAPTER-2 STRUCTURE OF BOOLEAN FUNCTION USING GATES, K-Map and Quine-McCluskey

Simplification of Boolean Functions

Programmable Logic Devices (PLDs)

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

Presented By :- Alok Kumar Lecturer in ECE C.R.Polytechnic, Rohtak

UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

Introduction. The Quine-McCluskey Method Handout 5 January 24, CSEE E6861y Prof. Steven Nowick

Programmable Logic Devices. Programmable Read Only Memory (PROM) Example

Programmable Logic Devices I. EECE143 Lecture 4. PALs, GALs & CUPL. A lesson on Programmable Logic Devices and programming them using CUPL

Question Total Possible Test Score Total 100

BOOLEAN ALGEBRA. 1. State & Verify Laws by using :

GATE Exercises on Boolean Logic

VALLIAMMAI ENGINEERING COLLEGE

Module -7. Karnaugh Maps

END-TERM EXAMINATION

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

Unit-IV Boolean Algebra

Synthesis of combinational logic

EECS 150 Homework 7 Solutions Fall (a) 4.3 The functions for the 7 segment display decoder given in Section 4.3 are:

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

Switching Theory & Logic Design/Digital Logic Design Question Bank

NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY Vadapudupatti, Theni

LOGIC CIRCUITS. Kirti P_Didital Design 1

3.4 QUINE MCCLUSKEY METHOD 73. f(a, B, C, D, E)¼AC ĒþB CD þ BCDþĀBD.

Experiment 4 Boolean Functions Implementation

Transcription:

McGILL UNIVERSITY Electrical and Computer Engineering Department ECSE-323 DIGITAL SYSTEM DESIGN MIDTERM EXAM Winter 2010 Question Maximum Points Points Attained 1 15 2 10 3 10 4 15 5 20 6 5 Total 75 Please write down your name: Please write your student ID number: Instructions/Please read carefully! This is a closed book quiz. No books or notes are allowed. You may use a standard calculator. All work is to be done on the attached sheets and under no circumstance are booklets or loose sheets to be used. Write your name at the top of every sheet. Read the question carefully. If something appears ambiguous, write down your assumption. The points have been assigned according to the formula that 1 point = 1 exam minute, so please pace yourself accordingly. Page 1 of 17

Question 1: Boolean Logic Theory (15 marks) Consider the following Boolean function: f(b,d,f,g,e) = bdg+b dfg+b d g+bd eg. a) Find the minimal SoP form of function f using the Quine-McCluskey method. Clearly state which are the essential prime implicants and prime implicants. b) Perform the factorization of the minimized SoP from part b). Try to get as small a form as possible. c) Perform the decomposition of the minimized function from part b). Solution a) We need to express f in terms of minterms. f(b,d,f,g,e) = bdg+b dfg+b d g+bd eg = bd(f+f )g(e+e ) + b dfg(e+e ) + b d (f+f )g(e+e ) +bd (f+f )ge = bdfg(e+e ) + bdf g(e+e ) + b dfge + b dfge + b d fg(e+e ) + b d f g(e+e ) +bd fge + bd f ge = bdfge + bdfge + bdf ge + bdf ge + b dfge + b dfge + b d fge + b d fge + b d f ge + b d f ge +bd fge + bd f ge = Σ m(11111, 11110, 11011, 11010, 01111, 01110, 00111, 00110, 00011, 00010, 10111, 10011) = Σ m(00010, 00011, 00110, 00111, 01110, 01111, 10011, 10111,11010, 11011, 11110, 11111) Σ m(2, 3, 6, 7, 14, 15, 19, 23, 26, 27, 30, 31) 2 00010 -------------- 3 00011 6 00110 -------------- 7 00111 14 01110 19 10011 26 11010 -------------- 15 01111 23 10111 27 11011 30 11110 ------------- 31 11111 (2,3) 0001_ (2,6) 00_10 Page 2 of 17

------------------- (3,7) 00_11 (3,19) _0011 (6,7) 0011_ (6,14) 0_110 ------------------ (7,15) 0_111 (7,23) _0111 (14,15) 0111_ (14,30) _1110 (19,23) 10_11 (19,27) 1_011 (26,27) 1101_ (26,30) 11_10 ------------------ (15,31) _1111 (23,31) 1_111 (27,31) 11_11 (30,31) 1111_ (2,3,6,7) 00_1_ ------------------------- (3,7,19,23) _0_11 (6,7,14,15) 0_11_ -------------------------- (7,15,23,31) 111 (14,15,30,31) _ 111 _ (19,23,27,31) 1 11 (26,27,30,31) 11_ 1_ Prime implicants are: {b d g, d ge, b fg, fge, dfg, bge, bdg} Page 3 of 17

Implicant table: f(b,d,f,g,e) = Σ m(00010, 00011, 00110, 00111, 01110, 01111, 10011, 10111,11010, 11011, 11110, 11111) 00010 00011 00110 00111 01110 01111 10011 10111 11010 11011 11110 11111 00_1_ _0_11 0_11_ 111 _ 111_ 1 11 11_ 1_ Essential prime implicants are: 00_1_ and 11_1_. Minimal cover is: f(b,d,f,g,e) = b d g + d ge + dfg + bdg b) Factored form is: g(d(b+f)+d (b +e)) c) Decomposition: f = gx x = d(b+f)+d (b +e) Page 4 of 17

Question 2: Application of Boolean Theory (10 marks) Consider the following three Boolean functions: F(a,b,c,d) = m(2,3,5,7,8,9,10,11,13,15), G(a,b,c, d) = m(2, 3,5,6, 7,10,11,14,15) and H(a,b,c,d) = m(6,7,8,9,13,14,15). a) While considering each of the functions individually, find their minimal cover using Karnaugh Maps. How many logic gates you would need to use to implement the minimal covers of F, G and H? b) Again, minimize the three functions F, G and H using K-Maps. However, this time treat the problem as a 4-input (a,b,c,d) and three output (F,G,H) system. How many gates would you need to implement the system now? Hint: In the three individual K-Maps of functions F, G and H try to identify as common terms to at least two and possibly all three functions, and then share these terms in the covers of F, G and H. Solution a) The solution requires 10 gates and 25 gate inputs. Page 5 of 17

c) The 4-input (A,B,C,D) and three output (F,G,H) system requires 8 gates and 22 gate inputs. Page 6 of 17

(Question 2 continued ) Page 7 of 17

Question 3: CMOS Circuit Technology Design (10 marks) Design a CMOS logic gate that implements the function: F = (A + C)(A + D)(B + D)(C + D). First manipulate the original Boolean expression of the function F, such that the resulting implementation will have the minimal number of transistors. Draw the schematic, indicating which transistors belong to the pull-up and which to the pull-down network. Solution F = (A + C)(A + D)(B + D)(C + D) =(A + C) + (A + D) + (B + D) + (C + D) = AC + AD+ BD+ CD = A(C + D) + D(B + C). Figure 1: CMOS Implementation Page 8 of 17

(Question 3 continued ) Page 9 of 17

Question 4: VHDL (10 marks) Consider a logic operator that can be either a buffer or an inverter. If a mode select line called MODE_CNTRL is set to 0, then the output SIG_OUT equals the inverse of the input SIG_IN. If MODE_CNTRL is set to 1, then the output SIG_OUT equals the input SIG_IN. a) Write a complete VHDL description using concurrent signal assignments of your choice. b) Rewrite the VHDL code. This time, create components describing a buffer, an inverter, and other needed hardware elements. Then write the complete description using your components. Page 10 of 17

(Question 4 continued ) Page 11 of 17

Question 5: Circuit Implementation Strategies (15 marks) Consider the two functions F and G, given in the form of a minimal SoP: F(W,X,Y,Z) =W Y + XYZ and G(W,X,Y,Z) =W XY + XZ +W YZ. a) Implement the above two functions using ROM. b) Implement F and G with PLA using no more than four terms. c) Implement F and G with PAL. Solution a) The function is not in the form of the sum of minterms. First, we need to find its minterm representation. F(W, X,Y,Z) = m(5,8,9,12,13), G(W, X,Y, Z) = m(1, 3,5,8,9,11), Figure 2: ROM Implementation For PAL, we need to find a sum of products solution that uses only four different terms. The map below shows such a solution. Page 12 of 17

The PAL below implements this four-term solution. Figure 3: PLA Implementation PAL implementation is straight forward, as there are no restrictions on the hardware. For the implementation we use the minimized functions from part b). Page 13 of 17

(question 5 continued ) Page 14 of 17

Question 6: Circuit Implementation Strategies LUT (5 marks) Implement the following 6-variable function Z(a,b,c,d,e, f ) = abcde f + abcde f + bcde f using 4-input LUTs. List inside each LUT the truth table it realizes. Solution As the original function is of 6 variables we need to perform the Shannon decomposition to reduce the variable count. The first variable of the decomposition is a: Z = a Z 0 + az 1. Z 0 = 0bcd ef + 1b c def + b cde f = b c def + b cde f. Z 1 = 1bcd ef + 0b c def + b cde f = bcd ef + b cde f. Next, Z0 and Z1 are expanded around variable b. Z 00 is obtained by substituting 0 for b in Z 0 Z 00 = 1c def + 1cde f = c def + cde f. Z 01 is obtained by substituting 1 for b in Z 0 : Z 01 = 0c def + 0cde f = 0. Z 10 is obtained by substituting 0 for b in Z 1 : Z 10 = 0cd ef + 1cde f = cde f. Z 11 is obtained by substituting 1 for b in Z 1 : Z 11 = 1cd ef + 0cde f = cd ef. Now Z can be written as: Z = a Z 0 + az 1, Z 0 = b Z 00 + bz 01, Z 1 = b Z 10 + bz 11. Page 15 of 17

Figure 4: LUT Implementation Note that each LUT implements the AND functions, so the contents of each LUT is 15 0 and last 1. Page 16 of 17

(question 6 continued ) Page 17 of 17