INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

Similar documents
INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

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

Gate Level Minimization Map Method

Code No: 07A3EC03 Set No. 1

Chapter 3. Gate-Level Minimization. Outlines

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

Gate-Level Minimization

Chapter 3 Simplification of Boolean functions

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.

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

Contents. Chapter 3 Combinational Circuits Page 1 of 34

Unit-IV Boolean Algebra

QUESTION BANK FOR TEST

IT 201 Digital System Design Module II Notes

Code No: R Set No. 1

Experiment 4 Boolean Functions Implementation

Chapter 2 Boolean algebra and Logic Gates

Objectives: 1- Bolean Algebra. Eng. Ayman Metwali

Gate Level Minimization

Combinational Logic & Circuits

Code No: R Set No. 1

LOGIC CIRCUITS. Kirti P_Didital Design 1

UNIT II. Circuit minimization

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

Gate-Level Minimization

CS8803: Advanced Digital Design for Embedded Hardware

Last Name Student Number. Last Name Student Number

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

2.1 Binary Logic and Gates

Gate-Level Minimization

Code No: R Set No. 1

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

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

ENEL 353: Digital Circuits Midterm Examination

McGILL UNIVERSITY Electrical and Computer Engineering Department MIDTERM EXAM


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

ELCT201: DIGITAL LOGIC DESIGN

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY

Standard Forms of Expression. Minterms and Maxterms

Experiment 3: Logic Simplification

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Digital Logic. Copyright By NODIA & COMPANY

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

1. Mark the correct statement(s)

X Y Z F=X+Y+Z

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

R07

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

Chapter 2 Combinational Logic Circuits

Combinational Logic Circuits

Digital Logic Design. Outline

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

2.6 BOOLEAN FUNCTIONS

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

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

EECS 140/141 Introduction to Digital Logic Design Spring Semester 2017 Exam #1 Date: 27 February 2017

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

ELCT201: DIGITAL LOGIC DESIGN

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

Chapter 2. Boolean Expressions:

Chapter 3. Boolean Algebra and Digital Logic

Switching Theory & Logic Design/Digital Logic Design Question Bank

CDS130 Mid-term exam: Sample


Simplification of Boolean Functions

VALLIAMMAI ENGINEERING COLLEGE

Computer Science. Unit-4: Introduction to Boolean Algebra

Karnaugh Map (K-Map) Karnaugh Map. Karnaugh Map Examples. Ch. 2.4 Ch. 2.5 Simplification using K-map

VALLIAMMAI ENGINEERING COLLEGE

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

Gate-Level Minimization. section instructor: Ufuk Çelikcan

SIR C.R.REDDY COLLEGE OF ENGINEERING, ELURU DEPARTMENT OF INFORMATION TECHNOLOGY LESSON PLAN

CS February 17

Boolean Algebra. BME208 Logic Circuits Yalçın İŞLER

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

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

DKT 122/3 DIGITAL SYSTEM 1

Combinational Logic Circuits Part III -Theoretical Foundations

Chapter 2 Combinational

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).

Switching Circuits & Logic Design

CMPE223/CMSE222 Digital Logic

Boolean Algebra and Logic Gates

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

10EC33: DIGITAL ELECTRONICS QUESTION BANK

Review: Standard forms of expressions

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

END-TERM EXAMINATION

ECE380 Digital Logic

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

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

Transcription:

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator EXAMINATION ( Mid Semester ) SEMESTER ( Spring ) Roll Number Section Name Subject Number C S 2 1 0 0 2 Subject Name Switching Circuits and Logic Design Department / Center of the Student Additional sheets Important Instructions and Guidelines for Students 1. You must occupy your seat as per the Examination Schedule/Sitting Plan. 2. Do not keep mobile phones or any similar electronic gadgets with you even in the switched off mode. 3. Loose papers, class notes, books or any such materials must not be in your possession, even if they are irrelevant to the subject you are taking examination. 4. Data book, codes, graph papers, relevant standard tables/charts or any other materials are allowed only when instructed by the paper-setter. 5. Use of instrument box, pencil box and non-programmable calculator is allowed during the examination. However, exchange of these items or any other papers (including question papers) is not permitted. 6. Write on both sides of the answer script and do not tear off any page. Use last page(s) of the answer script for rough work. Report to the invigilator if the answer script has torn or distorted page(s). 7. It is your responsibility to ensure that you have signed the Attendance Sheet. Keep your Admit Card/Identity Card on the desk for checking by the invigilator. 8. You may leave the examination hall for wash room or for drinking water for a very short period. Record your absence from the Examination Hall in the register provided. Smoking and the consumption of any kind of beverages are strictly prohibited inside the Examination Hall. 9. Do not leave the Examination Hall without submitting your answer script to the invigilator. In any case, you are not allowed to take away the answer script with you. After the completion of the examination, do not leave the seat until the invigilators collect all the answer scripts. 10. During the examination, either inside or outside the Examination Hall, gathering information from any kind of sources or exchanging information with others or any such attempt will be treated as unfair means. Do not adopt unfair means and do not indulge in unseemly behavior. Violation of any of the above instructions may lead to severe punishment. Signature of the Student To be filled in by the examiner Question Number 1 2 3 4 5 6 7 8 9 10 Total Marks Obtained Marks obtained (in words) Signature of the Examiner Signature of the Scrutineer

CS21002 Switching Circuits and Logic Design Mid-Semester Test 20 February 2016 2:00 4:00pm Maximum marks: 60 [ Write your answers in the question paper itself. Be brief and precise. Answer all questions. ] 1. Recall that the dual of a Boolean function is obtained by interchanging the AND and OR operations and the constants 0 and 1. For example, the dual of a+b (cd + e)+0 is a(b +(c+d )e)1. Denote the dual of f by f d. A Boolean function is called self-dual if f = f d. (a) Using algebraic manipulations, prove that f(x, y, z) = xy + yz + zx is self-dual. (5) Solution f d (x,y,z)=(x+y)(y+z)(z+x)=(y+xz)(z+x)=yz+xz+xy+xz=xy+yz+zx= f(x,y,z). (b) Prove that there are exactly 2 2n 1 self-dual Boolean functions in n input variables. (5) Solution First, note that f d (x 1,x 2,...,x n )=[ f(x 1,x 2,...,x n)]. This requires the lower half of the truth table of f be the complemented reflection of the upper half of the table. We can fix the upper half in any of the 2 2n 1 ways. The self-duality requirement then fixes the lower half. Page 1 of 7

2. Consider the Boolean function g(w,x,y,z)= m(0,1,2,4,5,10,12,13,14,15)+ d(6,8). (a) Use the Quine McCluskey tabulation procedure to find all the prime implicants of g. (No credits will be given if you manually identify the prime implicants from the Karnaugh map of g.) (10) Solution The steps of the tabulation procedure follows. Index Init Round 1 Round 2 Round 3 0 0 0,1(z) 0,1,4,5(xz) B 0,2,4,6,8,10,12,14(wxy) A 0,2(y) 0,2,4,6(xy) 0,4(x) 0,2,8,10(wy) 0,8(w) 0,4,8,12(wx) 1 1 1, 5(x) 2, 6, 10, 14(wx) 2 2,6(x) 4,5,12,13(wz) C 4 2, 10(w) 4, 6, 12, 14(wy) 8 4,5(z) 8,10,12,14(xy) 4, 6(y) 4, 12(w) 8, 10(y) 8, 12(x) 2 5 5, 13(w) 12, 13, 14, 15(yz) D 6 6, 14(w) 10 10, 14(x) 12 12, 13(z) 12, 14(y) 3 13 13, 15(y) 14 14, 15(z) 4 15 Page 2 of 7

(b) Draw the prime implicant chart for g, identify the essential prime implicants, and derive a minimum sum-of-products expression for g. (10) Solution The prime implicant chart follows. 0 1 2 4 5 10 12 13 14 15 A=z B=w y C=xy D=wx The chart shows that A, B and D are essential prime implicants. Including them covers all the minterms of f. Therefore the minimum SOP expression for g is g(w,x,y,z)=z + w y + wx. Page 3 of 7

3. A transmission system encodes the bit 0 as 0000 and the bit 1 as 1111. This leads to one-error-correcting and two-error-detecting capability. Suppose that noise during the transmission of an encoded bit can introduce errors in at most two bits of the codeword. The potentially noisy four-bit codeword that you receive is denoted by abcd. Design a combinational circuit which takes the four received bits as inputs (their complements are not input). The circuit has three output bits f 0, f 1, f 2, where f 0 = 1 if and only if 0 was transmitted, f 1 = 1 if and only if 1 was transmitted, and f 2 = 1 if and only if there were two errors. Your design is required to use as few standard gates (two-input AND, OR, NAND, NOR, XOR and XNOR gates, and NOT gates) as possible. It is possible to design this circuit using only eleven gates. The evaluation of your answer will depend on (correctness and) how many gates you use. Derive the necessary expressions for the three outputs, and draw the gate-level diagram of your circuit. (10) Solution The received bit is 0 if and only if all the received bits are 0 or only one of them is 1. Therefore, we have f 0 = a b c d + ab c d + a bc d + a b cd + a b c d = (a b+ab + a b )c d + a b (c d + cd + c d) = (ab) (c+d) +(a+b) (cd) = [(ab)+(c+d)] +[(a+b)+(cd)] [ ((ab)+(c+d) )( ) ] = (a+b)+(cd). The received bit is 1 if and only if all the received bits are 1 or only one of them is 0. Therefore, we have f 1 = abcd+ a bcd+ ab cd+ abc d+ abcd = (ab+a b+ab )cd+ ab(cd+ c d+ cd ) = (a+b)(cd)+(ab)(c+d). Finally, we have f 2 = ( f 0 + f 1 ). This gives the following circuit with eleven gates. a b f 0 c d f f 2 1 Page 4 of 7

Space for the answer to Q3 continues Page 5 of 7

4. (a) Consider a two-bit comparator circuit which takes two two-bit unsigned integers a and b as input, and outputs two bits g and l. If a > b, we have g = 1 and l = 0. If a < b, we have g = 0 and l = 1. Finally, if a = b, we have g = l = 0. Derive the expressions for g and l, and write a gate-level Verilog module to implement this two-bit comparator. (5+5) Solution Let a=(a 1 a 0 ) 2 and b=(b 1 b 0 ) 2. We have g=1 if and only if (a,b)=(1,0),(2,0),(3,0),(2,1),(3,1),(3,2), that is, g = (a 1a 0 + a 1 a 0+ a 1 a 0 )b 1b 0+(a 1 a 0+ a 1 a 0 )b 1b 0 +(a 1 a 0 )b 1 b 0 = (a 1 + a 0 )(b 1 + b 0 ) + a 1 b 1b 0 + a 1 a 0 b 1 b 0. Symmetrically, we have l = (b 1 + b 0 )(a 1 + a 0 ) + b 1 a 1a 0 + b 1 b 0 a 1 a 0. Based on this, a Verilog module can be written as follows. module comp2 (g,l,a1,a0,b1,b0); output g,l; input a1,a0,b1,b0; or (c1,a1,a0), (d1,b1,b0); not (c2,d1), (d2,c1); and (c3,c1,c2), (d3,d1,d2); not (c4,b1), (d4,a1); and (c5,a1,c4,b0), (d5,b1,d4,a0); not (c6,b0), (d6,a0); and (c7,a1,a0,b1,c6), (d7,b1,b0,a1,d6); or (g,c3,c5,c7), (l,d3,d5,d7); endmodule Page 6 of 7

(b) Your goal is to realize a four-bit comparator. It takes two four-bit unsigned integers A=(a 3 a 2 a 1 a 0 ) 2 and B=(b 3 b 2 b 1 b 0 ) 2 as input, and outputs two bits G and L. If A>B, we have(g,l)=(1,0). If A<B, we have (G,L)=(0,1). Finally, if A=B, we have (G,L)=(0,0). Use three two-bit comparators designed in Part (a) to implement the four-bit comparator. Draw a schematic diagram of your circuit, and write a Verilog module to realize this circuit. (5+5) Solution Let us schematically represent the two-bit comparator of Part (a) as follows. a a b b 1 0 1 0 Comp2 g l A four-bit comparator can be constructed from three copies of the two-bit comparator as follows. a 3 a 2 b3 b 2 Comp2 l 32 g 32 Comp4 a 1 b1 Comp2 l321 g 321 a 0 b 0 Comp2 G L This leads to the following Verilog module. module comp4 (G,L,a3,a2,a1,a0,b3,b2,b1,b0); output G,L; input a3,a2,a1,a0,b3,b2,b1,b0; comp2 C32(g32,l32,a3,a2,b3,b2), C321(g321,l321,g32,a1,l32,b1), C3210(G,L,g321,a0,l321,b0); endmodule Page 7 of 7

Use this space for leftover answers and rough work

Use this space for leftover answers and rough work

Use this space for leftover answers and rough work