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

Similar documents
Fundamentals of Digital Design

Total time is: 1 setup, 2 AND, 3 XOR, 1 delay = (1*1) + (2*2) + (3*3) + (1*1) = 15ns

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

Computer Science Final Examination Friday December 14 th 2001

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

Lecture 10: Synchronous Sequential Circuits Design

CPE100: Digital Logic Design I

Different encodings generate different circuits

COMBINATIONAL LOGIC FUNCTIONS

CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015

Parity Checker Example. EECS150 - Digital Design Lecture 9 - Finite State Machines 1. Formal Design Process. Formal Design Process

ECE 2300 Digital Logic & Computer Organization

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

Practice Final Exam Solutions

04. What is the Mod number of the counter circuit shown below? Assume initially reset.

Finite State Machine (FSM)

L10 State Machine Design Topics

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

Philadelphia University Student Name: Student Number:

Problem Set 9 Solutions

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

Logic. Combinational. inputs. outputs. the result. system can

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Synchronous Sequential Circuit Design. Digital Computer Design

EEE2135 Digital Logic Design


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

211: Computer Architecture Summer 2016

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

Cs302 Quiz for MID TERM Exam Solved

Systems I: Computer Organization and Architecture

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

EECS150 - Digital Design Lecture 23 - FSMs & Counters

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

ENGG 1203 Tutorial - 2 Recall Lab 2 - e.g. 4 input XOR. Parity checking (for interest) Recall : Simplification methods. Recall : Time Delay

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Lecture 8: Sequential Networks and Finite State Machines

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

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

DIGITAL LOGIC CIRCUITS

EE 209 Logic Cumulative Exam Name:

EECS 270 Midterm Exam 2 Fall 2009

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

FSM model for sequential circuits

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

UNIVERSITI TENAGA NASIONAL. College of Information Technology

ENEL Digital Circuits Final Examination

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

Fundamentals of Computer Systems

Sequential Synchronous Circuit Analysis

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

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Sequential Logic Worksheet

Lecture 3 Review on Digital Logic (Part 2)

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

(Boolean Algebra, combinational circuits) (Binary Codes and -arithmetics)

Sequential Circuit Design

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007

ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF

Chapter 4: Combinational Logic Solutions to Problems: [1, 5, 9, 12, 19, 23, 30, 33]

Sample Test Paper - I

Fundamentals of Computer Systems

Time Allowed 3:00 hrs. April, pages

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

Analysis of Clocked Sequential Circuits

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

Sequential Circuit Analysis

Sequential logic and design

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

University of Minnesota Department of Electrical and Computer Engineering

UNIT 5 KARNAUGH MAPS Spring 2011

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

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

Logical design of digital systems

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

DE58/DC58 LOGIC DESIGN DEC 2014

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

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.

Chapter 7 Logic Circuits

ELE2120 Digital Circuits and Systems. Tutorial Note 9

Digital Electronics Final Examination. Part A

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

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

Digital Logic Appendix A

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

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

Models for representing sequential circuits

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

Lecture (08) Synchronous Sequential Logic

Philadelphia University Student Name: Student Number:

Karnaugh Maps Objectives

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

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

CSC9R6 Computer Design. Practical Digital Logic

Numbers and Arithmetic

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

Transcription:

Final Exam ECE 25, Spring 2008 Thursday, June 12, 2008 Name: PID: Problem Points Score 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 9 10 Total 90 1) Number representation (10 pts) a) For each binary vector below, what does it represent as an Octal number and a Hexadecimal number? Binary Octal Hexadecimal 11010001 00110011 b) Given X and Y below that are 4-bit numbers in 2 s complement form, fill in the table of what S should be bit-vector form, whether or not there is an overflow, andwhats is as a number. (First row provides an example.) X Y S = X Y S as a x 3 x 2 x 1 x 0 y 3 y 2 y 1 y 0 s 3 s 2 s 1 s 0 Overflow? number 0111 0011 0100 No 4 0110 1110 0000 1111 0111 0000 1000 1100 1

2) Two-level logic minimization (10 pts) Consider the logic diagram shown below. X A Y B OR F C D a) The second block F (A, B, C, D) is a function of A, B, C, andd. Please fill out the following K-map by taking into consideration combinations of A and B that cannot occur as don t cares because A and B are themselves functions of X and Y. AB CD 00 F 00 01 11 10 01 11 10 b) For the K-map derived in part (a) for F, specify all the primes and essential primes. Prime Essential c) Find the minimum two-level logic implementation for F. F = 2

3) Finite state machines (10 pts) Consider the following Mealy state machine with A as the initial state. 1/0 0/1 A 0/1 1/1 0/0 B 1/0 C Figure 1: Mealy machine. If the input sequence is 011, then the corresponding output sequence, A 0/1 B 1/0 C 1/1 A, would be 101. a) What would be output sequence if the input sequence is 100? b) What would be output sequence if the input sequence is 001? c) Consider the following Mealy state machine with R as the initial state. 0/1 R 1/0 0/1 1/1 S 1/0 T Figure 2: Mealy machine. Part 1) If the input is fixed to a constant 1 for all cycles, then will the Mealy machine shown in Fig. 2 produce the same output as the Mealy machine in shown Fig. 1 starting from their respective initial states? Part 2) If the input is fixed to a constant 0 for all cycles, then will the two Mealy machines produce the same outputs? You have to get both parts correct to get points so that you can t just guess the answer. 3

4) Multi-level logic minimization (10 pts) Given following logic equations, minimize the number of literals, e.g. by using common subexpressions, Boolean rules, etc. You can introduce new immediate equations for common sub-expressions if it helps to reduce the number of literals. Put a box around your final answer, and indicate the number of literals in your final answer. H = Ā B C + Ā BC + A B C + A BC + AB C + ABC J = A + B K = ĀBE(ĀBE + CDE) L = AD + Ā BD + Ā BCD 4

5) Sequential logic implementation (10 pts) Consider the following Moore machine with initial state A. S + 2 S + + 1 S 2 I =0 I =1 Z A B C 0 B F A 1 C B C 0 D E C 1 E F D 0 F F A 1 G A F 0 Assume the following state encoding. State S 2 A 000 B 001 C 100 D 101 E 011 F 111 G 010 Derive the minimum two-level logic for the output Z by taking into consideration what states are reachable from the initial state A. Z = 5

6) Reverse engineer sequential circuit to finite state machine (10 pts) + D-FF F I + D-FF a) Fill out the following functions (OK to use in functions). F = + = + = b) Assume initial state is 00, fill in the following state table. If a state is not reacheable, indicate the appropriate don t cares (use * to indicate don t cares). S + + 1 I =0 I =1 F 00 01 10 11 c) With initial state = 00, what states, if any, are not reacheable? 6

7) ALU design (10 pts) Consider the following diagram with two sets of data inputs A 3 A 2 A 1 A 0 and B 3 B 2 B 1 B 0, two selection bits and, and one set of outputs F 3 F 2 F 1 F 0. A 3 B 3 A 2 B 2 A 1 B 1 A 0 B 0 your logic your logic your logic your logic X 3 Y 3 X 2 Y 2 X 1 Y 1 X 0 Y 0 overflow C 4 full C 3 full C 2 full C 1 adder adder adder full adder C 0 F 3 F 2 F 1 F 0 Consider the following four ALU operations: ALU operation 0 0 A (two s complement of A) 0 1 B (two s complement of B) 1 0 A B 1 1 A + B Specify the minimized logic equations for X i and Y i of the your function box shown in the diagram. (X i and Y i are both functions of A i, B i,,.) X i = Y i = 7

8) Timing analysis (10 pts) Consider the following sequential logic diagram. Assume the gate delay is 1 ns for both 2- and 2-OR. Assume the gate delay is 3 ns for 2-. Assume the positive edge-trigged flip-flop delay is T delayf F = 1 ns, and Assume the positive edge-trigged flip-flop setup time is also T setupf F = 1 ns. a) Fill out the rest of the timing diagram for A, B, C, D, and E. B A OR D D-FF E C A B C D E CLK 1 3 5 7 9 11 13 15 17 b) The clock period shown in the diagram is 6ns. The clock can safely run faster. How fast can we run the clock (what is the shortest feasible clock period)? 8

9) Delay analysis (10 pts) Consider the following 32-bit priority encoder with inputs R 31 R 30 R 1 R 0 ( requests ) and outputs G 31 G 30 G 1 G 0 ( grants ). When both R i =1,and thereisnor j =1suchthatj>i, then G i =1;otherwise,G i = 0. The logic in Fig. 3 is designed so that at most one G i is equal to 1, corresponding to the highest R i = 1 request. The output status = 1 indicates that there was agrant.assume1ns gate delay for all gates (i.e., 2-, 2-OR, and INV). R i R 31 R 30 R 1 R 0 D i OR D i-1 D 31 = 0 D 30 D 29 D 1 D 0 status G 31 G 30 G 1 G 0 G i Figure 3: Priority encoder. Figure 4: Logic for rectangle box. a) What is the longest delay in Fig. 3 (in ns)? b) Which output in Fig. 3 determines the longest delay? Now consider the following modified diagram (same gate delays and same Fig. 4 rectangle box). R 31 R 30 R 1 R 0 D 31 = 0 D 30 D 29 D 1 D 0 S G 31 G 30 G 1 G 0 E 31 = 0 E 30 E 29 E 1 E 0 T H 31 H 30 H 1 H 0 Figure 5: Modified design. c) What is the longest delay in Fig. 5 (in ns)? d) Which output in Fig. 5 determines the longest delay? 9