CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

Similar documents
CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015

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

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

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

ALU, Latches and Flip-Flops

EECS 270 Midterm Exam 2 Fall 2009

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

FSM model for sequential circuits

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

EECS 270 Midterm 2 Exam Answer Key Winter 2017

Problem Set 9 Solutions

UNIVERSITY OF WISCONSIN MADISON

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

6 Synchronous State Machine Design

CSE140: Design of Sequential Logic

Synchronous Sequential Circuit Design. Digital Computer Design

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

Finite State Machine (FSM)

P2 (10 points): Given the circuit below, answer the following questions:

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

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

Example: vending machine

Lecture 9: Sequential Logic Circuits. Reading: CH 7

CPE100: Digital Logic Design I

Design at the Register Transfer Level

Different encodings generate different circuits

Topics. CMOS Design Multi-input delay analysis. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

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

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

EECS 312: Digital Integrated Circuits Final Exam Solutions 23 April 2009

Sequential Logic Optimization. Optimization in Context. Algorithmic Approach to State Minimization. Finite State Machine Optimization

EE141- Spring 2007 Digital Integrated Circuits

Digital Design. Sequential Logic

COE 202: Digital Logic Design Sequential Circuits Part 3. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

University of Minnesota Department of Electrical and Computer Engineering

Review for Final Exam

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

Adders, subtractors comparators, multipliers and other ALU elements

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

MODULE 5 Chapter 7. Clocked Storage Elements

Chapter 3 Digital Logic Structures

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Synchronous Sequential Logic

Lecture 10: Sequential Networks: Timing and Retiming

COE 202: Digital Logic Design Sequential Circuits Part 3. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

EECS 312: Digital Integrated Circuits Midterm Exam 2 December 2010

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

EECS150 - Digital Design Lecture 23 - FSMs & Counters

CSE140: Digital Logic Design Registers and Counters

Chapter 4 Part 2 Sequential Circuits

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

Clocked Synchronous State-machine Analysis

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

EGR224 F 18 Assignment #4

CHW 261: Logic Design

Department of Electrical and Computer Engineering University of Wisconsin Madison. Fall Final Examination

Exam for Physics 4051, October 31, 2008

15.1 Elimination of Redundant States

EE 209 Logic Cumulative Exam Name:

Name: Answers. Mean: 83, Standard Deviation: 12 Q1 Q2 Q3 Q4 Q5 Q6 Total. ESE370 Fall 2015

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

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

Sequential vs. Combinational

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

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

Digital Logic Design - Chapter 4

14.1. Unit 14. State Machine Design

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

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

Chapter 15 SEQUENTIAL CIRCUITS ANALYSIS, STATE- MINIMIZATION, ASSIGNMENT AND CIRCUIT IMPLEMENTATION

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

Sequential Logic Worksheet

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

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

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

Fundamentals of Digital Design

CPE100: Digital Logic Design I

EE141Microelettronica. CMOS Logic

COE 328 Final Exam 2008

L10 State Machine Design Topics

Name: Grade: Q1 Q2 Q3 Q4 Q5 Total. ESE370 Fall 2015

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

State and Finite State Machines

EEE2135 Digital Logic Design

FSM Optimization. Counter Logic Diagram Q1 Q2 Q3. Counter Implementation using RS FF 10/13/2015

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec 09 Counters Outline.

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

Logic Design II (17.342) Spring Lecture Outline

Lecture 7: Sequential Networks

Topic 8: Sequential Circuits

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

Chapter #7: Sequential Logic Case Studies Contemporary Logic Design

Sequential logic and design

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Transcription:

CSE 14 Midterm 2 Tajana Simunic Rosing Spring 28 Do not start the exam until you are told to. Turn off any cell phones or pagers. Write your name and PID at the top of every page. Do not separate the pages. This is a closed-book, closed-notes, no-calculator exam. You many only refer to one page of your own handwritten notes. Do not look at anyone else s exam. Do not talk to anyone but an exam proctor during the exam. If you have a question, raise your hand and an exam proctor will come to you. You have 8 minutes to finish the exam. When the time is finished, you must stop writing. Write your answers in the space provided. Clearly and neatly show all of the steps of your work to get the most partial credit 1. 1 points 2. 1 points 3. 2 points 4. 15 points 5. 15 points 6. 15 points 7. 15 points 8. 1 points Total 1 points (+1 bonus)

Problem 1. (1 points) Determine the maximum frequency of the clock, given: T setup = 2ns T pd = 2ns T hold = 1.5ns T AND/OR = 1ns (AND/OR gates delay) Clk Clk Clk Critical path: OR -> AND -> D-FF: T period > T pd + T OR + T AND + T setup = 2+1+1+2=6ns Frequency < 1/6ns

Problem 2. (1 points) (a) Determine the worst-case delay between the points X and I for the circuit below in terms of nmos resistance, Rn, and gate capacitance Cg. Assume Rp=2Rn. G I 1 X 1 Y A 1 B A G B Clk Clk G The delay at X = 6RnCg (b) What does this circuit do? Negative edge triggered Master-slave D flip-flop

Problem 3. (2 points) A Mealy machine has one input X and one output Z. Given the following state transition table, use the implication chart method to minimize the number of states. Present Next State Output Y State X = X = 1 X = X = 1 S S 1 S 4 S 1 S 2 S 1 S 2 S 1 S 6 S 3 S 1 S 3 S 4 S 5 S 4 S 5 S 2 S 1 S 6 S 5 S 3 1 a) Label the rows and columns with states, and then fill the implication chart S1 S2 S3 S4 S5 S6 S1=S2 S1=S4 S1=S1 S1=S2 S4=S6 S1=S6 S1=S1 S1=S2 S1=S1 S3=S4 S1=S3 S3=S6 S1=S5 S2=S5 S1=S5 S1=S5 S4=S4 S1=S4 S4=S6 S3=S4 S1=S2 S2=S2 S1=S2 S2=S1 S2=S5 S1=S4 S1=S1 S1=S6 S1=S3 S1=S4 X X X X X X S S1 S2 S3 S4 S5

Problem 3. cont.. b) Show the Maximal Class of Compatibility. Fill in as many groups as necessary. g:_{s, S3,S4}_ g1:_{s1,s5} g2:_{s2} g3:_{s6} g4: g5: g6: c) Identify a set that satisfies both covering and closure conditions on minimal class of compatibility. List the resulting state transitions and outputs in a table. Fill in as many rows of the table as necessary. Present Next State Output Y State X = X = 1 X = X = 1 g g1 g g1 g2 g1 g2 g1 g3 g3 g1 g 1 g4 g5 g6

Problem 4. (15 points) Implement a state assignment using three guidelines based on next state and input/outputs for the state diagram below. S2 S,1/,1/,1/ S1 Start 1/ / S3 /1 1/ 1/ / S4 S5 Highest priority states: 2 (S4, S5), 2 (S2, S3) Medium priority states: S2, S3 Lowest priority states: /: {S, S1, S3, S4, S5} 1/: {S, S1, S2, S3, S4, S5} Q2 Q1Q S S3 S4 S1 S2 S5 *It should be noted that alternative solutions could exist

Problem 5. (15 points) (a) Design a basic cell of a universal shift register that satisfies the following: Uses a positive edge-triggered T-flip flops as internal storage Has two select bits, S and S 1, to determine the shift function as follows: S S 1 Function Shift left 1 Shift right 1 Load new value 1 1 Hold the state First we need to implement a D-FF from a T-FF as follows: D T Then we use the D-FF to implement the basic cell of the universal shift register as follows: Q N-1 Q N+1 Input N Q N 3 N+1 N-1 N S S1

Problem 5. cont.. (b) Construct a circuit to perform the operation of multiplying a 4-bit number by 2 and adding 1 using the basic cell of part (a) with NO additional logic gates. We perform that through the use of a shift register structure, shift right, and inserting a 1 at the LSB side 2 * X1 X2 X3 X4 +1 = X2 X3 X4 1 1 LSB The function need to be set to shift right

Problem 6. (15 points) Design a minimum state FSM that gives 1 as output if the total number of both s and 1 s received is odd, otherwise it outputs. Draw its diagram. 1 [] [] 1 1 1 1 Start State : Even # s & even #1 s State 1: Odd # s & even #1 s State 1: Odd # s & odd #1 s State 11: Odd #1 s & even # s 1 [1] 11 []

Problem 7. (15 points) Using the following state transition table, implement the next state output, S1+, using J-K flipflops with minimal logic gates. I Current state Next state Output (Input) S1 S S1+ S+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Using K-map, the functions of J and K that are required to implement S1+ are shown in the following: K + = I J + = I I

Problem 8. (BONUS) (1 points) Draw the state diagram implemented by the circuit below. What does this circuit do? I 1 C 1 I C C 1 Clk C 1 C I 1 I C Clk C I1 I C1 C C1+ C+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Stop counting Count up by 1 Count down by 1 Count up by 2 I, I1 1 1 11

This page is intentionally left blank. Use as scratch paper or to provide additional answers.