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

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

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

Lecture 10: Sequential Networks: Timing and Retiming

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

ALU, Latches and Flip-Flops

CSE140: Design of Sequential Logic

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

CPE100: Digital Logic Design I

UNIVERSITY OF WISCONSIN MADISON

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

Sequential Logic Worksheet

CPE100: Digital Logic Design I

Review for Final Exam

ENEL Digital Circuits Final Examination

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

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

Problem Set 9 Solutions

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

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

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

Synchronous Sequential Circuit Design. Digital Computer Design

CPE100: Digital Logic Design I

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

mith College Computer Science CSC270 Spring 16 Circuits and Systems Lecture Notes Week 2 Dominique Thiébaut

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

Sequential Circuits. Circuits with state. Silvina Hanono Wachman Computer Science & Artificial Intelligence Lab M.I.T. L06-1

EE 209 Logic Cumulative Exam Name:

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

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

Different encodings generate different circuits

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

Exam for Physics 4051, October 31, 2008

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

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

EECS 270 Midterm Exam 2 Fall 2009

Lecture 9: Sequential Logic Circuits. Reading: CH 7

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

Practice Final Exam Solutions

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

EECS 270 Midterm 2 Exam Answer Key Winter 2017

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

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

Fundamentals of Digital Design

Adders, subtractors comparators, multipliers and other ALU elements

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

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

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

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Sequential vs. Combinational

Time Allowed 3:00 hrs. April, pages

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

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

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

Sequential Circuit Timing. Young Won Lim 11/6/15

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

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

CSE140: Digital Logic Design Registers and Counters

EE141- Spring 2007 Digital Integrated Circuits

Design of Sequential Circuits

University of Minnesota Department of Electrical and Computer Engineering

CSC 322: Computer Organization Lab

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

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

CMPEN 411. Spring Lecture 18: Static Sequential Circuits

CHW 261: Logic Design

Digital Logic Design - Chapter 4

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

CARNEGIE MELLON UNIVERSITY DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING DIGITAL INTEGRATED CIRCUITS FALL 2002

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #2 Nov 22, 2006

Jin-Fu Li Advanced Reliable Systems (ARES) Lab. Department of Electrical Engineering. Jungli, Taiwan

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

CMOS Technology Worksheet

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

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

Digital Integrated Circuits A Design Perspective

Preparation of Examination Questions and Exercises: Solutions

Sequential Logic Circuits

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

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

CSE 140 Midterm I - Solution

CS/COE1541: Introduction to Computer Architecture. Logic Design Review. Sangyeun Cho. Computer Science Department University of Pittsburgh

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Digital Circuits ECS 371

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

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

Combinatorial Logic Design Multiplexers and ALUs CS 64: Computer Organization and Design Logic Lecture #13

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

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

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

14.1. Unit 14. State Machine Design

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

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

Synchronous Sequential Logic

Philadelphia University Student Name: Student Number:

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

Fundamentals of Computer Systems

Lecture 7: Logic design. Combinational logic circuits

LECTURE 28. Analyzing digital computation at a very low level! The Latch Pipelined Datapath Control Signals Concept of State

Transcription:

CSE 140 Midterm 2 - Solutions Prof. Tajana Simunic Rosing Spring 2013 Do not start the exam until you are told. Write your name and PID at the top of every page. Do not separate the pages. Turn off and put away all your electronics. This is a closed-book, closed-notes, nocalculator exam. You may only refer to one 8 ½ x 11 page of your 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 80 minutes to finish the exam. When the time is finished, you must stop writing. Write your answers in the provided space. No credit will be given if you do not show all steps of your work. 1. 15 points 2. 20 points 3. 15 points 4. 15 points 5. 20 points 6. 15 points Total (100 pts.)

Problem 1 A sequential circuit design is shown in the following diagram. a) Write down Boolean equations for the next state and the output. Q1+= X (Q1+Q0) = XQ1 + XQ0 Q0+= X (Q1+Q0 ) = XQ1 + XQ0 M = X Q1Q0

b) Draw the finite state machine representing this design. c) What does this circuit do? Describe. This FSM outputs M = 1 when the input has the pattern X = 1110. cycle 1 2 3 4 5 6 7 8 9 10 X 1 1 1 0 0 0 1 1 1 0 state S0 S1 S2 S3 S0 S0 S0 S1 S2 S3 M 0 0 0 1 0 0 0 0 0 1

Problem 2 a) Design a finite state machine (FSM) for a counter that counts through the 3-bit prime numbers downwards. Assume the counter starts with initial prime value set to 010 as its first 3 bit prime number. You need to provide the state transition table and the state transition diagram. Assume that the state is stored in three D-FFs. Hint: The set of all 3-bit prime numbers includes 2, 3, 5 and7. Since there are three bit prime numbers, we will require 3DFF. There are 4 valid states. The rest of the state shouldn t appear in the counter since the counter will always start with a prime number. State transition table previous state next state value P2 P1 P0 value N2 N1 N0 0 0 0 0 x x x x 1 0 0 1 x x x x 2 0 1 0 7 1 1 1 3 0 1 1 2 0 1 0 4 1 0 0 x x x x 5 1 0 1 3 0 1 1 6 1 1 0 x x x x 7 1 1 1 5 1 0 1 State transition diagram, the transition occurs when a CLK signal arrives.

b) Design the circuit for the least significant bit (LSB) of the next state. For N0, we draw the following Karnaugh map. N0=P2 + P0

Problem 3 A sequential circuit design is shown in the following diagram. D-FF clk-to-q propagation delay t pcq = 15 ps D-FF clk-to-q contamination delay t ccq = 10 ps D-FF data setup time t s = 15 ps D-FF data hold time t h = 10 ps Gate T pd (ps) T cd (ps) 2-input NAND 15 10 2-input NOR 25 15 2-input XOR 35 25 NOT 10 5 a) Calculate the maximum clock frequency for reliable operation assuming there is no clock skew. period > (DFF_propagation_delay) + (max_combination_circuit_delay) + (DFF_setup_time) + (max_clock_skew) = 15 + (35+10+25) + 15+0 = 100 ps frequency < 1 / (100ps)

= 10.0 GHz b) How much clock skew can the circuit tolerate before it experiences a hold time violation? hold_time (DFF_contamination_delay) + (min_combinational_circuit_delay) (max_clock_skew) So hold time will be violated when the following inequality is satisfied. max_clock_skew < (DFF_contamination_delay) + (comb_circuit_contamination_delay) (hold_time) = 10 + 10 10 = 10 ps

Problem 4 For the partially defined finite-state-machine (FSM) shown below, find the value for the right-most bit of the state name, F0, in the FSM diagram by using the values given in the incomplete FSM and the next state hardware schematic for the most significant bit of the state name, F1. The FSM has only one input that is indicated on the transitions.

Problem 5 a) Write the finite state machine (FSM) of the circuit shown below. Hint: In the given DEMUX below, S2 is the input signal, S1=Q1, S0=Q0, and there is a single output labeled as M. State transition table current state next state state Q1 Q0 input state Q1 Q0 output S0 0 0 0 S1 0 1 0 S1 0 1 0 S2 1 0 0 S2 1 0 0 S3 1 1 1 S3 1 1 0 S0 0 0 1 S0 0 0 1 S3 1 1 1 S1 0 1 1 S0 0 0 1 S2 1 0 1 S1 0 1 0 S3 1 1 1 S2 1 0 0 State transition diagram with the input denoted on each edge. The output M is shown inside each state.

b) Given the waveforms of the input signal and the initial state Q1=0, Q0=0, draw the waveforms of Q1, Q0 and M. Assume there is no gate and wire delay and the D-FF is triggered by the rising edge of the clock.

Problem 6 Draw a latch with two inputs S & R by implementing the functionality in the state transition table below. Use one 4:1 MUX and minimum number of other gates. S R Q(t) Q(t+ ) 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1

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