Practice Final Exam Solutions

Similar documents
The University of Michigan Department of Electrical Engineering and Computer Science. EECS 270 Fall Practice Final Exam.

For smaller NRE cost For faster time to market For smaller high-volume manufacturing cost For higher performance

Final Exam. ECE 25, Spring 2008 Thursday, June 12, Problem Points Score Total 90

Karnaugh Maps (K-Maps)

CPE100: Digital Logic Design I

UNIVERSITI TENAGA NASIONAL. College of Information Technology

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Written exam with solutions IE Digital Design Friday 21/

Fundamentals of Digital Design

CPE100: Digital Logic Design I

ECE 2300 Digital Logic & Computer Organization

Sequential Logic Worksheet

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Computer Science Final Examination Friday December 14 th 2001

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

EECS 270 Midterm Exam 2 Fall 2009

Quiz 2 Solutions Room 10 Evans Hall, 2:10pm Tuesday April 2 (Open Katz only, Calculators OK, 1hr 20mins)

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

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

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

Simplify the following Boolean expressions and minimize the number of literals:

University of Minnesota Department of Electrical and Computer Engineering

Digital Logic Appendix A

Exam for Physics 4051, October 31, 2008

CPE/EE 422/522. Chapter 1 - Review of Logic Design Fundamentals. Dr. Rhonda Kay Gaede UAH. 1.1 Combinational Logic

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

Sequential Circuit Analysis

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

CSCI 2150 Intro to State Machines

Time Allowed 3:00 hrs. April, pages

University of Florida EEL 3701 Summer 2015 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Tuesday, 30 June 2015

Written exam for IE1204/5 Digital Design with solutions Thursday 29/

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Clocked Sequential Circuits UNIT 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS. Analysis of Clocked Sequential Circuits. Signal Tracing and Timing Charts

Unit 2 Session - 6 Combinational Logic Circuits

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

EECS 270 Midterm 2 Exam Answer Key Winter 2017

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

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

CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015

Written exam with solutions IE1204/5 Digital Design Friday 13/

Written reexam with solutions for IE1204/5 Digital Design Monday 14/

Sample Test Paper - I

Synchronous Sequential Logic

Synchronous Sequential Circuit

Number System conversions

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Philadelphia University Student Name: Student Number:

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

CSE 140 Midterm 2 - Solutions Prof. Tajana Simunic Rosing Spring 2013

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Quiz 2 Room 10 Evans Hall, 2:10pm Tuesday April 2 (Open Katz only, Calculators OK, 1hr 20mins)

Chapter 2 Boolean Algebra and Logic Gates

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Solution (a) We can draw Karnaugh maps for NS1, NS0 and OUT:

Sequential Logic Circuits

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

Week-5. Sequential Circuit Design. Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.

Unit 7 Sequential Circuits (Flip Flop, Registers)

Different encodings generate different circuits

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

DE58/DC58 LOGIC DESIGN DEC 2014

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

Review Problem 1. should be on. door state, false if light should be on when a door is open. v Describe when the dome/interior light of the car

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

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

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

UNIT 5 KARNAUGH MAPS Spring 2011

ELCT201: DIGITAL LOGIC DESIGN

Written exam with solutions IE1204/5 Digital Design Monday 23/

Sequential Circuits Sequential circuits combinational circuits state gate delay

Digital Logic Design. Combinational Logic

ENGG 1203 Tutorial_9 - Review. Boolean Algebra. Simplifying Logic Circuits. Combinational Logic. 1. Combinational & Sequential Logic

Simplifying Logic Circuits with Karnaugh Maps

Synchronous Sequential Circuit Design. Digital Computer Design

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

Chapter 7 Logic Circuits

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

Chapter 4. Sequential Logic Circuits

ENEL Digital Circuits Final Examination

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

Gate-Level Minimization

State Machines ELCTEC-131

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Optimizations and Tradeoffs. Combinational Logic Optimization

Textbook: Digital Design, 3 rd. Edition M. Morris Mano


10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

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

Review for B33DV2-Digital Design. Digital Design

Outline. EECS Components and Design Techniques for Digital Systems. Lec 18 Error Coding. In the real world. Our beautiful digital world.

Transcription:

The University of Michigan Department of Electrical Engineering and Computer Science EECS 270 Fall 2003 Practice Final Exam Solutions Name: UM ID: For all questions, show all work that leads to your answer. Problem # Possible Points Points Earned 1 13 2 19 3 14 4 17 5 15 6 12 7 10 Total 100 I have neither given nor received any unauthorized aid on this exam. Signed:

1. Number Conversion: 13 Points Total (a: 3 pts) -20 10 =? 2 using 6-bit two s-complement representation 20 10 = 10100; Sign extend = 010100 Flip all bits: 101011; add 1 = 101100-20 10 = 101100 2 (two s-complement representation) (b: 3 pts) AB.9 16 =? 8 A B. 9 16 = 1010 1011.1001 2 = 010 101 011. 100 100 2 = 2 5 3 4 4 8 = 253.44 8 (c: 4 pts) Represent the decimal number 26.6 with a binary number containing no more than eight bits. What is the numerical error in this representation of the number 26.6? 26 10 = 11010 2 With 8 bits, 26.6 10 is represented by 11010.100 2.6 * 2 1.2 * 2 0.4 * 2 0.8 * 2. This is equal to 26.5, so the numerical error in this 8-bit representation of 26.6 is 26.6 26.5 = 0.1

2. K-Maps: 19 Total Points Consider the following function and its K-map: F = Σ ABCD (0, 2, 5, 10, 15) + d(7) C CD AB 00 01 11 10 A 00 01 11 10 1 0 0 0 0 1 0 0 0 d 1 0 1 0 0 1 D B (a: 3 pts) Construct the minimal S.O.P. expression for F. C CD AB 00 01 11 10 A 00 01 11 10 1 0 0 0 0 1 0 0 0 d 1 0 1 0 0 1 D B F = A B D + A B D + B C D + B C D

(b: 4 pts) Construct the minimal P.O.S. expression for F. F : F = B D + A C + B D F = (F ) = (B + D) (A + C) (B + D ) (c: 3 pts) What is the cost of each expression (S.O.P and P.O.S.) in terms of number of literals? S.O.P. cost is 12 literals and P.O.S. cost is 6 literals. (d: 4 pts) Are the S.O.P. and P.O.S. identical functions? Yes: In the minimal S.O.P., the don t care cell is circled by a prime implicant and therefore assigned to be 1. In the minimal P.O.S., the don t care cell is not circled and therefore also assigned to be 1. Therefore, the functions are equal.

(e: 5 pts) Change two cells in the K-map above to don t cares, and derive the new minimal S.O.P and P.O.S. expressions. Choose your don t cares such that: 1) The new minimal S.O.P. and P.O.S. are equal functions 2) The sum of the number of literals from the S.O.P. and P.O.S. is minimal. Change cells 8 and 13 to don t cares New S.O.P. expression: F= B D + B D New P.O.S. expression: F : F = B D + B D F = (F ) = (B + D) (B + D ) All don t cares are assigned to 1 in both the S.O.P. and the P.O.S. so the functions are equal. The sum of the number of literals from the S.O.P. and the P.O.S is 8, which is minimal.

3. Sequential Circuits: 14 Total Points Given the circuit above, complete the timing diagram for signals n, out, and out_b. Assume the following values for the D-latch: t setup = t hold = 1.5ns t CQ HL = t CQ LH = 1ns t DQ HL = t DQ LH = 2ns Also, assume the NOR gates have a rising and falling delay of 1ns. Mark any regions of metastability with Metastability does not occur on out and out_b because n is the Reset input to the SRlatch, and the latch is already in a reset state at the time when n goes metastable. Therefore, any uncertainty in the reset input will not affect the latch.

4. State Machine Design: 17 Total Points Given a state machine with one input x and one output Q. Let num_cyc_1 denote the number of clock cycles where x was a one and num_cyc_0 denote the number of clock cycles where x was a zero. The state machine sets Q = 1 if (num_cyc_1-num_cyc_0) is a multiple of 3, i.e (num_cyc_1-num_cyc_0) = -6, -3, 0, 3, 6 When the state machine starts, num_cyc_0 and num_cyc_1 are assumed to be zero. Example sequence: X: 100 001 110 101 110 Q: 101 001 001 010 100 num_cyc_0: 001 234 444 556 666 num_cyc_1: 011 111 234 455 678 Draw the state diagram for this state machine using no more than 5 states. Identify which state your machine should start in. Draw neatly and avoid crossing lines if possible. This problem can be solved using three states or five: 2 extra 0s/ 1 extra 1 Q = 0 X X X 1 extra 0/ 2 extra 1s Q = 0 X X Mult. Of 3 Q =1 X Start

5. Counter/Shifter Design: 15 Total Points Consider the design below, constructed with one up counter and one right/up shift register. Let outputs out3-out0 be the binary representation of a number x between 0 and 15 (out3 is the MSB). What is the repeating sequence of numbers x this design will produce? Hint: Assume the counter starts in state Q3 Q0 = 0011 Counter Shift Register Q3 Q2 Q1 Q0 LD out3 out2 out1 out0 ser_in out3- out0 0 0 1 1 1 X X X X X 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 1 1 0 1 1 0 0 0 0 1 1 1 3 0 1 1 1 1 0 1 1 1 1 7 1 0 0 0 0 0 0 0 1 1 1 1 0 0 1 0 0 0 1 1 1 3 1 0 1 0 0 0 1 1 1 1 7 repeats 1 0 1 1 1 1 1 1 1 0 15 1 1 0 0 0 0 0 1 0 1 2 1 1 0 1 0 0 1 0 1 1 5 1 1 1 0 0 1 0 1 1 0 11 1 1 1 1 1 0 1 1 0 0 6 0 0 0 0 0 0 0 1 1 1 3 0 0 0 1 0 0 1 1 1 1 7 0 0 1 0 0 1 1 1 1 0 15 0 0 1 1 1 1 1 1 0 0 14 0 1 0 0 0 0 0 0 0 1 0

6. Codes: 12 Total Points You have designed a system that transmits one of four 5-bit codes A, B, C, D, shown below, across a microwave link. A: 0 1 1 0 0 B: 1 1 0 1 0 C: 1 0 1 0 1 D: 0 0 0 1 1 (a: 4 pts) What is the Hamming distance of this code? 3: The minimum number of bit changes to get from any valid code to another is three. (b: 4 pts) Your manager explains to the customer that the microwave link is very robust and only a single bit in any 5-bit code can be flipped. If the data transmitted by the microwave link is corrupted and you receive the code X, shown below, can the received code be corrected? If yes, what was the transmitted code? If no, what is the set of possible transmitted codes? X: 11101 Yes, this code can be corrected if it is known that only a single bit can be corrupted. n = 2d + c + 1, where n is the minimum Hamming distance which is 3. Set d = 0, then c = 1, so we can correct one bit error. The only valid codeword with a distance of one from X is C (10101), so C is the code that must have been transmitted. (c: 4 pts) After buying your system, your customer finds that the microwave link is not quite as reliable as your manager had claimed. Your manager blames you for the problem and tells you to develop a solution, once again interrupting your latch design project. Upon investigation, you find that the link is such that either no bits are flipped in a transmitted code, or exactly two bits are flipped. Given this new information, can the received code be corrected? If yes, what was the transmitted code? If no, what is the set of possible transmitted codes? Yes, this code can be corrected if it is known that exactly two bits or no bits are flipped. The only valid codeword with a distance of 2 from X is A (01100), so A is the code that must have been transmitted.

7. CMOS: 10 Total Points (a: 5 pts) Given the circuit below, write out the Boolean equation for out as a function of inputs A and B. out = (A B ) = ((A + B) ) = A + B (b: 5 pts) Is the gate shown below a valid CMOS gate? Briefly explain why or why not. No, this is not a valid CMOS gate. Looking at the input conditions for out to be 1 and 0 shows why: If (A B ) + (C D ), out = 1 If AC + BD, out = 0 These two cases are not complements of each other. As a consequence of this, under input combinations ABCD = 0110 and 1001, out is not connected to Vdd or ground.