ENEL Digital Circuits Final Examination

Similar documents
ENGG Fundamentals of Electrical Circuits and Machines Final Examination

ENGG Fundamentals of Electrical Circuits and Machines Final Examination

ENGG Fundamentals of Electrical Circuits and Machines Final Examination

ENGG Fundamentals of Electrical Circuits and Machines Final Examination

ENGG Fundamentals of Electrical Circuits and Machines Winter 2017 Final Examination

CPE100: Digital Logic Design I

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

University of Florida EEL 3701 Fall 2014 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Wednesday, 15 October 2014

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

CPE100: Digital Logic Design I

Fundamentals of Digital Design

University of Minnesota Department of Electrical and Computer Engineering

CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015

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

Philadelphia University Student Name: Student Number:

Computer Science Final Examination Friday December 14 th 2001

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

Philadelphia University Student Name: Student Number:

Please read carefully. Good luck & Go Gators!!!

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

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

ECE 2300 Digital Logic & Computer Organization

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

CPE100: Digital Logic Design I

Timing Constraints in Sequential Designs. 63 Sources: TSR, Katz, Boriello & Vahid

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

CprE 281: Digital Logic

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

Sequential Logic Worksheet

CPSC 121 Sample Midterm Examination October 2007

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Chapter 3. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 3 <1>

Homework #4. CSE 140 Summer Session Instructor: Mohsen Imani. Only a subset of questions will be graded

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

Read this before starting!

ENEL Digital Circuit Design. Final Examination

Faculty of Engineering. FINAL EXAMINATION FALL 2008 (December2008) ANSWER KEY

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

Karnaugh Maps (K-Maps)

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

Slides for Lecture 19

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

Fundamentals of Computer Systems


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

Fundamentals of Computer Systems

Read this before starting!

Dr. S. Shirani COE2DI4 Midterm Test #2 Nov. 9, 2010

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

EE 209 Logic Cumulative Exam Name:

Philadelphia University Faculty of Engineering

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

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

Written exam with solutions IE Digital Design Friday 21/

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

Problem Set 9 Solutions

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

ALU, Latches and Flip-Flops

Chapter 3. Chapter 3 :: Topics. Introduction. Sequential Circuits

Logic Design Combinational Circuits. Digital Computer Design

211: Computer Architecture Summer 2016

Sequential Logic. Handouts: Lecture Slides Spring /27/01. L06 Sequential Logic 1

Lecture 2 Review on Digital Logic (Part 1)

Slide Set 6. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Read this before starting!

Review for Test 1 : Ch1 5

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

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

T02 Tutorial Slides for Week 6

5. Sequential Logic x Computation Structures Part 1 Digital Circuits. Copyright 2015 MIT EECS

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

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

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

Time Allowed 3:00 hrs. April, pages

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

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

CSE140: Design of Sequential Logic

Read this before starting!

CPE100: Digital Logic Design I

UNIVERSITY OF WISCONSIN MADISON

Slides for Lecture 16

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Chapter 2. Review of Digital Systems Design

Review for B33DV2-Digital Design. Digital Design

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

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

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences

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

University of Florida EEL 3701 Fall 1996 Dr. Eric M. Schwartz

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

COSC3330 Computer Architecture Lecture 2. Combinational Logic

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

CHAPTER 7. Exercises 17/ / /2 2 0

CE1911 LECTURE FSM DESIGN PRACTICE DAY 1

University of Toronto Faculty of Applied Science and Engineering Department of Electrical and Computer Engineering Midterm Examination

CSE 140 Spring 2017: Final Solutions (Total 50 Points)

Practice Final Exam Solutions

Transcription:

Name: I#: Lecture Section: ENEL 353 - igital Circuits Final Examination Lecture sections : N. R. Bartley, MWF : :5, ENC 24 2: S. A. Norman, MWF : :5, ST 45 Wednesday, ecember 7, 24 Time: 7: PM : PM Locations: ICT 2 for section, EC 79 for section 2 Instructions: Time allowed is 3 hours. Please review the examination rules on Page 2. Non-programmable calculators are permitted. The maximum number of marks is 98, as indicated. The final examination counts toward 5% of the final grade. Please attempt all questions. Please use a pen or heavy pencil to ensure legibility. Please answer questions in the spaces provided; if space is insufficient, please use the back of the pages. Where appropriate, marks will be awarded for proper and well-reasoned explanations. (Please do not write in this space.) (5) 2 (4) 3 (2) 4 (2) 5 () 6 () 7 () 8 (4) Total (98)

ENEL 353 Final Examination Fall 24 Page 2 of Student Identification Each candidate must sign the Seating List confirming presence at the examination. All candidates for final examinations are required to place their University of Calgary I.. cards on their desks for the duration of the examination. (Students writing mid-term tests can also be asked to provide identity proof.) Students without an I.. card who can produce an acceptable alternative I.., e.g., one with a printed name and photograph, are allowed to write the examination. A student without acceptable I.. will be required to complete an Identification Form. The form indicates that there is no guarantee that the examination paper will be graded if any discrepancies in identification are discovered after verification with the student s file. A student who refuses to produce identification or who refuses to complete and sign the Identification Form is not permitted to write the examination. Examination Rules () Students late in arriving will not normally be admitted after one-half hour of the examination time has passed. (2) No candidate will be permitted to leave the examination room until one-half hour has elapsed after the opening of the examination, nor during the last 5 minutes of the examination. All candidates remaining during the last 5 minutes of the examination period must remain at their desks until their papers have been collected by an invigilator. (3) All inquiries and requests must be addressed to supervisors only. (4) The following is strictly prohibited: (a) (b) (c) (d) (e) speaking to other candidates or communicating with them under any circumstances whatsoever; bringing into the examination room any textbook, notebook or document not authorized by the examiner; making use of calculators, cameras, cell-phones, computers, headsets, pagers, PA s, or any device not authorized by the examiner; leaving examination papers exposed to view; attempting to read other student s examination papers. The penalty for violation of these rules is suspension or expulsion or such other penalty as may be determined. (5) Candidates are requested to write on both sides of the page, unless the examiner has asked that the left hand page be reserved for rough drafts or calculations. (6) iscarded matter is to be struck out and not removed by mutilation of the examination answer book. (7) Candidates are cautioned against writing on their examination paper any matter extraneous to the actual answering of the question set. (8) The candidate is to write his/her name on each answer book as directed and is to number each book. (9) uring the examination a candidate must report to a supervisor before leaving the examination room. () Candidates must stop writing when the signal is given. Answer books must be handed to the supervisor-in-charge promptly. Failure to comply with this regulation will be cause for rejection of an answer paper. () If during the course of an examination a student becomes ill or receives word of a domestic affliction, the student should report at once to the supervisor, hand in the unfinished paper and request that it be cancelled. If physical and/or emotional ill health is the cause, the student must report at once to a physican/counsellor so that subsequent application for a deferred examination is supported by a completed Physician/Counsellor Statement form. Students can consult professionals at University Health Services or Counselling and Student evelopment Centre during normal working hours or consult their physician/counsellor in the community. Once an examination has been handed in for marking a student cannot request that the examination be cancelled for whatever reason. Such a request will be denied. Retroactive withdrawals will also not be considered.

ENEL 353 Final Examination Fall 24 Page 3 of. [5 marks total.] Numbers, codes and binary addition. (a) [3 marks.] Convert the fourteen-bit unsigned binary number 2 to hexadecimal and octal representations. hexadecimal octal (b) [ mark.] One of the following bit patterns is valid BC (binary-coded decimal), but the other one is not:,. Which one is not valid? For credit to be given, you must give a correct reason. (c) [ mark.] What number does the valid bit pattern from part (b) represent? Give your answer in base ten. (d) [3 marks.] Use repeated division to find the unsigned binary representation of 53. (e) [2 marks.] Find the decimal representation of AB 6. Show your work. (f) [3 marks.] Unlike a -bit full-adder, which has three inputs, a -bit halfadder circuit computes the sum and carry-out of only two input bits. Use of a half-adder is shown in the four-bit adder of part (g) below. raw a schematic for a half-adder circuit, using only inverters and two-input NAN gates. Use A and B as names for inputs, and S and C OUT as names for outputs. (g) [2 marks.] Add wires and logic gates within the area labeled overflow detection so that V U = indicates unsigned overflow and V S = indicates signed overflow. You can connect your gates to whichever wires of the fourbit adder you want to use. B 3 A 3 B 2 A 2 B A B A -bit full adder -bit full adder -bit full adder -bit half adder S 3 S 2 S S overflow detection V U V S

ENEL 353 Final Examination Fall 24 Page 4 of 2. [4 marks total.] Boolean algebra and multiplexers. (a) [4 marks.] The consensus theorem in boolean algebra states that AB + ĀC = AB + ĀC + BC. Algebraically prove this theorem. o not use a truth table or K-map. (b) [3 marks.] In the circuits shown below, algebraically prove or disprove that Z = Y. o not use a truth table or K-map. B C Y A B C Z Ā (c) [3 marks.] Use bubble-pushing and/or algebra to find a SOP expression for Y. If you use bubble-pushing, draw your equivalent circuit to the right of the given circuit. A B C Y E F (d) [4 marks.] raw a schematic to show how the function Y = A B C can be implemented with just three 2: multiplexers and one inverter. No other components are allowed.

ENEL 353 Final Examination Fall 24 Page 5 of 3. [2 marks total.] K-map problems. (a) [7 marks.] Consider the following two logic functions given in minterm and maxterm notation with the given don t-care conditions: Function Expression on t-cares F (A, B, C, ) (m, m 3, m 6, m 8, m, m 4 ) m 3, m 5 G(A, B, C, ) (M, M 6, M 2, M 3, M 4 ) M 4, M 5 Use the blank K-maps below to determine minimal SOP expressions for each of F and G: i. If there is more than one solution for either, give just one, but indicate how many other solutions are possible; ii. On the map for F, indicate all of the distinguished -cells and the essential prime implicants. (b) [5 marks.] Use the same maps from part (a) to determine minimal POS expressions for each of F and G. If there are multiple solutions, give just one.

ENEL 353 Final Examination Fall 24 Page 6 of 4. [2 marks total.] uestions about basic building blocks for sequential circuits. (a) [3 marks.] The schematic below shows an SR latch made from two NOR gates. Complete the timing diagram. (Note that for the given S and R signals, it s possible to determine and N at all times.) R S N S R N (b) [4 marks.] The schematic below shows a circuit built with two latches, an inverter, and a 2: mux. Complete the timing diagram. C n Y C A n A n2 n2 Y (c) [3 marks.] The reset input to the 2-bit register in this circuit is asynchronous. Complete the timing diagram. r S S reset S reset S (d) [2 marks.] The vertical dotted lines in the timing diagram below indicate the setup-and-hold apertures around rising clock edges. Complete the timing diagram, clearly indicating any time intervals in which the FF could be in a metastable state. Assume that for the FF t ccq > t hold, and show appropriate delays on.

ENEL 353 Final Examination Fall 24 Page 7 of 5. [ marks total.] Constraints related to voltage levels and timing. (a) [3 marks.] The table below on the left specifies important voltage levels for Advanced Ultra-Low Voltage CMOS operating with V =.2 V. Fill in the table on the right with either the most precise possible range of output voltages, or an explanation of why the range is unknown. gate output range or explanation V OH V IH V IL V OL.8 V.78 V.42 V.3 V.39 V.6 V.2 V.8 V.25 V.75 V (b) [3 marks.] 2 Suppose that and 2 come from the same source, and there is zero skew between them. Here are the timing parameters for both the 3-bit register and the FF: t setup = 5 ps, t hold = ps, t pcq = 4 ps, and t ccq = 25 ps. Timing parameters for logic gates, in ps, are given in the table below to the right. What is the shortest clock period T C allowable for reliable operation of the circuit? Show your work. gate # inputs t pd t cd NOT 3 2 NAN 2 43 32 NAN 3 53 42 NOR 2 5 37 AN 2 55 4 XOR 2 7 54 (c) [4 marks.] Consider again the circuit of part (b), but now assume that there might be some clock skew. Suppose the desired T C is 26 ps. What is the maximum value of t skew that will allow reliable operation?

ENEL 353 Final Examination Fall 24 Page 8 of 6. [ marks total.] FSM implementation in a programmable FSM circuit. An engineer has designed a Moore-type FSM. 2: is the name for the state and B is the name for the one-bit input. Next-state and output equations are: 2 = 2 + 2 B + B = + B = B + B + B Y = 2 The FSM will be implemented using a ROM array and a few other components that should be familiar to you. The circuit is shown at the bottom of the page. (a) [3 marks.] A decision has been made to use I/O pin for B and I/O pin for Y. Fill in the table to specify and explain the correct values for the tristate enable signals E and E and the mux select signal S. signal or? reason E E S (b) [8 marks.] Use dot notation on the given ROM array to show how to implement the next-state and output logic for the FSM. Use the space above and beside the schematic to show any work you need to do to decide where to place dots. 4:6 decoder A 3 A 2 A A E I/O pin E I/O pin S

ENEL 353 Final Examination Fall 24 Page 9 of 7. [ marks.] An FSM-like system that updates twice per clock cycle. Consider the device labeled Foo below, and the associated timing diagram. The two-bit signal Y : repeats the bit pattern,,,,,,..., indefinitely. Foo Y Y Y Y Implementing Foo as a Moore-type FSM would be easy if updates to Y : happened only on rising edges of, but here they happen on both rising and falling edges of. raw a schematic for an implementation of Foo using elements selected from this list: SR latches, latches, FFs, inverters, any kind of two-input logic gate, 2: multiplexers. Hints: () On page 6 there is a circuit that could be used to do state updates every half-cycle of. (2) Starting with a Moore-type state transition diagram is a reasonable approach. Important: o not start by trying to draw a schematic show your preliminary work first.

ENEL 353 Final Examination Fall 24 Page of 8. [4 marks total.] uestions about FSM analysis. (a) [4 marks.] Below is the combined state and output table for a Mealy-type FSM that has one input A, and one output Y. The state variables are S 2:. Use the information in this table to sketch a state-transition diagram. S 2: A S 2: Y S 2: A S 2: Y (b) [5 marks.] below. A S 2 S S Y Using the table in part (a), complete the timing diagram (c) [5 marks.] raw a state-transition diagram for a Moore-type FSM that mimics the Mealy-type FSM of part (a) as closely as possible. Hypothetically, for example, if the Mealy output is when the current input is and the input has been at the last three rising edges of clk, then the Moore output should be when the input has been at the last four rising edges of clk.