CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015

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

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

Review for Final Exam

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

ALU, Latches and Flip-Flops

CSE140: Design of Sequential Logic

EECS 270 Midterm 2 Exam Answer Key Winter 2017

CPE100: Digital Logic Design I

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

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

Sequential Logic Worksheet

EECS 270 Midterm Exam 2 Fall 2009

CSE140: Digital Logic Design Registers and Counters

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Lecture 10: Sequential Networks: Timing and Retiming

EE 209 Logic Cumulative Exam Name:

ENEL Digital Circuits Final Examination

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

Digital Electronics II Mike Brookes Please pick up: Notes from the front desk

CPE100: Digital Logic Design I

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

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

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

Fundamentals of Computer Systems

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

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

Adders, subtractors comparators, multipliers and other ALU elements

Arithmetic Building Blocks

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

State and Finite State Machines

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

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

Fundamentals of Computer Systems

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

Synchronous Sequential Circuit Design. Digital Computer Design

Adders, subtractors comparators, multipliers and other ALU elements

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

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

Lecture 10: Synchronous Sequential Circuits Design

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

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

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

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

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

University of Minnesota Department of Electrical and Computer Engineering

CSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego

Fundamentals of Digital Design


Bit-Sliced Design. EECS 141 F01 Arithmetic Circuits. A Generic Digital Processor. Full-Adder. The Binary Adder

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

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

Written exam with solutions IE Digital Design Friday 21/

Review for B33DV2-Digital Design. Digital Design

Practice Final Exam Solutions

Hakim Weatherspoon CS 3410 Computer Science Cornell University

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

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

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

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

UNIVERSITY OF WISCONSIN MADISON

Digital Logic Design - Chapter 4

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

State & Finite State Machines

Floating Point Representation and Digital Logic. Lecture 11 CS301

CMOS Technology Worksheet

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

Numbers and Arithmetic

Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.

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

Digital Integrated Circuits A Design Perspective. Arithmetic Circuits. Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic.

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

State & Finite State Machines

EE 209 Spiral 1 Exam Solutions Name:

EECS150 - Digital Design Lecture 16 Counters. Announcements

Time Allowed 3:00 hrs. April, pages

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

Total Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20

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

EEE2135 Digital Logic Design

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

ECE 448 Lecture 6. Finite State Machines. State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL Code. George Mason University

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

CprE 281: Digital Logic

Design at the Register Transfer Level

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

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

CSC 322: Computer Organization Lab

CSE 140 Midterm I - Solution

Sample Test Paper - I

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

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

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

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

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

EE371 - Advanced VLSI Circuit Design

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

Digital Integrated Circuits A Design Perspective. Arithmetic Circuits. Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic.

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

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

Transcription:

CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015 Name of the person on your left : Name of the person on your right: 1. 20 points 2. 20 points 3. 20 points 4. 15 points 5. 15 points 6. 10 points Total (100 pts.) Do not start the exam until you are told. Write your name and PID at the top of every page. Write the names of people on your left and right on the first page. Turn off and put away all your electronics. This is a closed book, closed notes. You may only refer to one 8 ½ x 11 page of your handwritten notes. By turning in this exam for grading you are stating that you have followed the UCSD s academic honesty policies. Do not look at anyone else s exam or talk to

anyone but an exam proctor. 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 space provided. To get the most partial credit, clearly show all the steps of your work. Full credit may not be given for correct answers with no work shown.

Problem 1 RTL Design Design an 8 bit counter using RTL design method that performs the following functions: 1. When input E = 1, it counts even numbers (0, 2, 4, 6, ) and when E = 0, it counts odd numbers (1, 3, 5, 7,...). There is no need to handle overflow. 2. When input CLR = 1 and E=1, then it clears the output to 00000000 else if CLR=1 and E=0, it sets output to 00000001. If you were initially counting even(odd) numbers, and now want to change the type of counting, the output changes to the nearest greater odd (even) value. For example, If E changes from 1 to 0 when output is 120, the next output will be 121. a. Define all the remaining transitions in this counter s high level state machine.

b. Design the datapath for this RTL design. c. Connect datapath and controller, show all the signals. d. What is the critical path through this design that determines the maximum clock frequency?

Problem 2 Timing Draw the waveforms for the missing signals (X0, X1 and Y), in circuit shown below. T he gates have the following propagation delays (t pd ) : AND: 25ns, NOR: 25ns, XOR: 50ns, CMOS gates (input to output delay): 25ns. The D FF has a propagation delay (t pcq ) = 50ns, ignore setup and hold constraints. C lock cycle time T c is 200ns. Note: Initial values (X0 X1 Y = 100) are drawn in the graph below.

Problem 3 FSM Complete the following for the circuit in figure below: a. Is this a Mealy or a Moore machine? b. In the excitation table, complete the column corresponding to D1. Q1 Q0 A D1 D0 Y 000 1 0 001 0 0 010 0 0 011 1 1 100 1 0 101 0 1 110 0 0 111 1 1 c. Provide equations for X0, X2 and D1

X0 = X2 = D1 = d. Given the excitation table for D0 and Y, provide a circuit implementation for the two blocks Design me #1 and Design me #2. Draw your circuit in the boxes.

Problem 4 Modified ALU Design an ALU that takes two 4 bit numbers A and B as inputs, and generates output Z as follows: lf A and B are odd numbers then Z = A B. lf A and B are even numbers then Z = B A. lf A is an even number and B is an odd number then Z = A + B lf A is an odd number and B is an even number then Z = A B 1 Use at most one adder, a single 2x4 decoder, no more than two MUXs and a minimum number of other gates. Problem 5 Design of a new latch

The following figure has a new latch design. The output Out changes depending on inputs A and B. Please fill in the following excitation table. A(t) B(t) Out(t) Out(t+1) 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 What does this new latch do?

Problem 6a Multiple Choice 1. In this figure, if the combinational circuit (CL) is just a wire, which of the following should be greater than the hold time of R1? a. The contamination delay of R1 b. The contamination delay of R2 c. The propagation delay of R1 d. The propagation delay of R2 e. The clock skew 2. What does this circuit represent? a. The sum of a full adder b. The carry out of a full adder c. The C output of a carry lookahead adder ( C = AB + C(A B) ) d. None of the above 3. What is the difference between HLSM and FSM? a. HLSM needs local registers b. Inputs & outputs can have multiple bits in HLSM c. The transitions can have complex conditions in HLSM d. FSM is a subset of HLSM e. All of the Above

Problem 6b True or False 1. Ripple carry adder is always slower than carry lookahead adder. 2. nmos passes 0 better, while pmos passes 1 better. 3. {AND, OR} is a universal gate. 4. In this K map, B D is an essential prime implicant. AB \ CD 0 0 0 1 1 1 1 0 00 1 0 0 1 01 1 1 1 0 11 0 1 1 1 10 1 0 0 1 5. If F(a,b,c) = (a c + ab), then F (a,b,c) = (ab + a c). 6. Mealy FSM usually has more states compared to an equivalent Moore one. 7. Minimum CPU clock frequency is defined with the hold constraint.

This page was intentionally left blank.