University of Minnesota Department of Electrical and Computer Engineering

Similar documents
Synchronous Sequential Circuit

Synchronous Sequential Logic

Problem Set 9 Solutions

Chapter 9 Asynchronous Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

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

Different encodings generate different circuits

Fundamentals of Digital Design

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

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

EECS 270 Midterm 2 Exam Answer Key Winter 2017

DIGITAL LOGIC CIRCUITS

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Sequential vs. Combinational

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

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Sequential Circuits Sequential circuits combinational circuits state gate delay

15.1 Elimination of Redundant States

Sample Test Paper - I

EE 209 Logic Cumulative Exam Name:

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS


11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

ENEL Digital Circuit Design. Final Examination

Synchronous Sequential Circuit Design. Digital Computer Design

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

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

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

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

Review for B33DV2-Digital Design. Digital Design

Time Allowed 3:00 hrs. April, pages

ENEL Digital Circuits Final Examination

Digital Electronics Final Examination. Part A

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Digital Logic Design - Chapter 4

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

Chapter 4. Sequential Logic Circuits

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Philadelphia University Student Name: Student Number:

Sequential Logic Circuits

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

ELEN Electronique numérique

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

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

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

Philadelphia University Student Name: Student Number:

CPE100: Digital Logic Design I

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

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

CHAPTER 7. Exercises 17/ / /2 2 0

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

Fundamentals of Computer Systems

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

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

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

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

EE 209 Spiral 1 Exam Solutions Name:

Chapter 14 Sequential logic, Latches and Flip-Flops

EET 310 Flip-Flops 11/17/2011 1

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

CPE100: Digital Logic Design I

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Digital electronics form a class of circuitry where the ability of the electronics to process data is the primary focus.

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

COMPUTER SCIENCE TRIPOS

Combinational Logic Design Principles

Fundamentals of Boolean Algebra

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

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

DO NOT COPY DO NOT COPY

Computer Science Final Examination Friday December 14 th 2001

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

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

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

Practice Final Exam Solutions

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

EECS 270 Midterm Exam 2 Fall 2009

ECE20B Final Exam, 200 Point Exam Closed Book, Closed Notes, Calculators Not Allowed June 12th, Name

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

Logic Gate Level. Part 2

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1

Introduction to Digital Logic

Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Latches. October 13, 2003 Latches 1

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Chapter 7 Sequential Logic

Digital Circuits and Systems

Lecture 9: Digital Electronics

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Transcription:

University of Minnesota Department of Electrical and Computer Engineering EE2301 Fall 2008 Introduction to Digital System Design L. L. Kinney Final Eam (Closed Book) Solutions Please enter your name, ID number. This eam is closed book and closed notes. Please remove all items from your desk other than pencils and eraser; this includes cell phones and calculators--no calculators or other electronic devices may be used during the eam. Show all of your work for a problem in the space provided on the eam sheet. If you need additional space, you must place a note with the problem indicating where the additional work is located. Answers without derivations are worth no credit. Please be sure that all parts of each problem have been completed. Problem 1 Problem 2 Problem 3 Problem 4 Problem 5 Problem 6 Problem 7 Problem 8 Total (46 pts) (35 pts) (10 pts) (16 pts) (20 pts) (20 pts) (20 pts) (20 pts) (187 pts)

1(46) Circle the most correct answer, T (true) or F (false), to the following statements or do not answer. The scoring is +2 for a correct answer, 0 for no answer, and -2 for an incorrect answer. a) F Clock skew is the deterioration of the rise and fall times of clock signals as they propagate throughout a digital system. b) T A gate having an inertial delay of 10ns can be used to filter out glitches if their duration is less than 10ns. c) T Metastability in the flip-flops of a sequential circuit can occur if changes in the sequential circuit inputs are not synchronized with the clock signal. d) F A multiple level combinational circuit containing only NAND gates cannot contain static-0 hazards. e) T Tri-state buses allow bidirectional communication between devices. f) T Minimal implementations of two-level multiple output circuits may use nonminimal implementations of individual outputs. g) T There are 256 different combinational functions of 3 variables. h) T A sequential circuit always contains feedback. i) F A combinational circuit never contains feedback. j) F Unstable states in an asynchronous sequential circuit almost always cause oscillations in the circuit. k) F Hazards in combinational logic can be eliminated by properly adjusting the delays in the wires and gates of the circuit. l) T Equivalent states in a sequential circuit cannot be distinguished eperimentally by observing the response of the circuit to different input sequences. m) T Eliminating equivalent states in a state table permits its realization with a minimal number of flip-flops. n) T A sequential circuit consisting of a set of interconnected Mealy model circuits may have to operate at a slower clock speed than that of the slowest Mealy model circuit which it contains. o) F Hazards must be eliminated from the combinational logic in synchronous sequential circuits in order to obtain reliable operation. p) F The major disadvantage of one s complement representation of negative numbers over two s complement is the eistence of two zeros in one s complement. q) F If m i and M j are a minterm and a materm of n-variables, where i does not equal j, then m i + M j = m i. r) T If p i and p j are distinct prime implicants of a function f of n-variables, then p i + p j cannot be a prime implicant of f. s) F Two distinct essential prime implicants of a function f cannot cover (include) the same minterm. t) T The Boolean algebra identity w+(y+z)( +z) = (w+y+z)(w+ +z) illustrates the distributive property of Boolean algebra. u) F The Boolean algebra identity yz+ yz= yz illustrates the involution property of Boolean algebra. v) T The Boolean algebra identity wy+w z+ z+yz= wy+w z+ z can be verified using the distributive, DeMorgan and consensus properties of Boolean algebra. 2

2(35) The SM chart below describes a sequential circuit with two inputs, A and B and three outputs, X, Y and Z. (a) The circuit is to be implemented using four D FFs with outputs Q 4, Q 3, Q 2, and Q 1. The state assignment is State Q 4 Q 3 Q 2 Q 1 S 0 0 0 0 0 S 1 0 0 0 1 S 2 0 0 1 0 S 3 0 1 0 0 S 4 1 0 0 0 Derive FF ecitation equations and output equations. You need not draw the circuit. (b) Using the guidelines discussed in class and the tet for finding a good state assignment for sequential circuits, find a good minimal state assignment for this circuit. You can ignore the outputs and you need not give the equations, just give the state assignment. Assign all 0 s to S 0. 3

(a) D 1 = AQ 4 Q 3 Q 2 Q 1 + Q 4 = AQ 3 Q 2 Q 1 + Q 4 + A B Q 1 D 2 = A BQ 1 D 3 = AQ 1 D 4 = Q 3 X = Q 4 Q 3 Q 2 Q 1 + Q 3 Y = AQ 4 Q 3 Q 2 Q 1 + A BQ 1 Z = AQ 1 + A BQ 1 b. AB 00 01 10 11 S0 S0 S0 S1 S1 S1 S0 S2 S3 S3 S2 S3 S2 S2 S3 S3 S4 S4 S4 S4 S4 S0 S0 S0 S0 H1: (S0,S1), (S0,S4), (S1,S4) (S0,S4), (S1,S2) (S1,S2) =(S0,S1), (S0,S4) 2, (S1,S4), (S1,S2) 2 H2: (S0,S1) 4 (S0,S2), (S0,S3) 2 (S2,S3) 4 Two possible assignments: S0 = 000 S1 = 100 S2 = 110 S3 = 010 S4 = 001 and S0 = 000 S1 = 100 S2 = 101 S3 = 001 S4 = 010 4

3(10) Realize an SR latch with just two components: 1) a 3-to-8 decoder with active high outputs, no enable and 2) a NOR gate with up to 8 inputs. The inputs to the NOR are the minterms of Q, S and R for which Q + is a 0. (Thinking of a NOR as an OR followed by an inverter, the output of the OR should be the complement of the function at the output of the NOR; hence, the minterms of the complement function should be ORed.) If Q, S and R are the I 2, I 1, and I 0 inputs to decoder, then Y 0, Y 1, and Y 5 from the decoder are the inputs to the NOR gate. 4(16) A positive edge-triggered, LM flip-flop operates as shown in the transition table below. L M CP Q Q LM flip-flops are to be used to implement the following transition table. Construct the ecitation table for the B FF. (You don t need the ecitation table for the A FF. AB 0 1 00 10 10 01 0-,-1 0-,-1 11 01 01 10-0,1- -0,1- LA,MA AB 0 1 00 0-,-1 10 01-0,1-01 11-0,1-01 10 10 10 LB,MB AB 0 1 00 10 11 01 01 00 10 11 11 11 01 00 5

5(20) Construct a Mealy state diagram, with a minimum number of states, for a sequential circuit with two inputs, and y, and one output, z. At each clock time, the most-recent two inputs on is considered to be a 2-bit unsigned, binary number; similarly, the mostrecent two inputs on y is considered to be a 2-bit unsigned, binary number. (For both and y, the most recent input is the least significant bit of the two-bit number.) z is 1 if the sum of these two 2-bit numbers is divisible by 3; otherwise, z is 0. (Note: 0 is divisible by 3.) For the first and y input combination, the circuit responds as if the previous and y input combination had been 00. An eample input/output sequence is : 0 1 1 1 0 y: 1 0 0 1 0 z: 0 1 1 0 0 Mealy Circuit Past Present y sum State 00 01 11 10 0 1 1, 1 2, 0 3, 0 2, 0 1 2 1, 0 2, 1 3, 0 2, 1 2 3 1, 0 2, 0 3, 1 2, 0 6(20) A certain EE2301 student claims that the two circuits below implement the same combinational logic function. Prove or disprove her claim. Show your derivation. Circuit on left (A + C)(B E + C ) + CDF = A B E + A C + B CE + CDF = A C + B CE + CDF (consensus of A C and B CE) Circuit on right (A + C)(B E + C + D F ) = A B E + A C + A DF + B CE + CDF = A B E + A C + B CE + CDF (consensus of A C and CDF ) = A C + B CE + CDF (consensus of A C and B CE). The two circuits implement the same function. 6

7(20) Find the minimal row state table that is equivalent to the one below. Show your derivation. 1 2 S 00 01 11 10 1 2,0 5,1 4,1 1,0 2 1,1 8,0 3,1 5,1 3 6,0 5,1 4,1 1,0 4 2,0 5,1 3,1 4,0 5 2,1 5,1 3,0 7,0 6 3,1 8,0 1,1 5,1 7 1,1 6,0 4,1 5,1 8 4,1 2,0 1,1 4,1 Equivalent States: 134,26,5,7,8 1 2 S 00 01 11 10 1 2,0 5,1 1,1 1,0 2 1,1 8,0 1,1 5,1 5 2,1 5,1 1,0 7,0 7 1,1 2,0 1,1 5,1 8 1,1 2,0 1,1 1,1 7

8(20) The state table below is to be implemented using a minimum number of JK flip-flops and a minimal number of gates (AND, OR and inverters). State A is the initial state and has a state assignment of all 0 s. Derive the FF ecitation equations and the output equation. 0 1 Z A B A 0 B B C 0 C C C 1 Using the state assignment A = 00, B = 01, and C = 11, the transition and output tables become 0 1 Z 00 01 00 0 01 01 11 0 11 11 11 1 10 -- -- - For JK flip-flops, the ecitation and output tables are q1q0 0 1 Z 00 0 -, 1-0 -, 0-0 01 0 -, - 0 1 -, - 0 0 11-0, - 0-0, - 0 1 10 - -, - - - -, - - - J1 = q0, K1 = 0, J2 =, K2 = 0, Z = q1 Using the state assignment A = 00, B = 01, and C = 10, the transition and output tables become 0 1 Z 00 01 00 0 01 01 10 0 11 -- -- - 10 10 10 1 For JK flip-flops, the ecitation and output tables are q1q0 0 1 Z 00 0 -, 1-0 -, 0-0 01 0 -, - 0 1 -, - 1 0 11 - -, - - - -, - - 1 10-0, 0 - - 0, 0 - - J1 = q0, K1 = 0, J2 = q1, K2 =, Z = q1 8