EECS 270 Midterm 2 Exam Answer Key Winter 2017

Similar documents
EECS 270 Midterm Exam 2 Fall 2009

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

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

CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015

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

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

EE 209 Logic Cumulative Exam Name:

University of Minnesota Department of Electrical and Computer Engineering

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

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

EE 209 Spiral 1 Exam Solutions Name:

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


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

CSE370 HW3 Solutions (Winter 2010)

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

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

CPE100: Digital Logic Design I

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

CPE100: Digital Logic Design I

Time Allowed 3:00 hrs. April, pages

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

Synchronous Sequential Circuit

Sequential Logic Circuits

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

Written exam with solutions IE Digital Design Friday 21/

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

Models for representing sequential circuits

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

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

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

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

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

Lecture 10: Synchronous Sequential Circuits Design

Chapter 6. Synchronous Sequential Circuits

Example: vending machine

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

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

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

Chapter 4. Sequential Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

UNIVERSITY OF WISCONSIN MADISON

Synchronous Sequential Logic

ALU, Latches and Flip-Flops

EE371 - Advanced VLSI Circuit Design

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

Fundamentals of Digital Design

Laboratory Exercise #11 A Simple Digital Combination Lock

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

Sequential Logic (3.1 and is a long difficult section you really should read!)

Different encodings generate different circuits

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

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Spiral 2-1. Datapath Components: Counters Adders Design Example: Crosswalk Controller

Present Next state Output state w = 0 w = 1 z A A B 0 B A C 0 C A C 1

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

State & Finite State Machines

Problem Set 9 Solutions

State and Finite State Machines

EE371 - Advanced VLSI Circuit Design

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

Chapter 7. Sequential Circuits Registers, Counters, RAM

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

Laboratory Exercise #8 Introduction to Sequential Logic

Topic 8: Sequential Circuits

Digital Design. Sequential Logic

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

Review for Final Exam

Design of Datapath Controllers

State & Finite State Machines

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

Digital Circuit Engineering

Please read carefully. Good luck & Go Gators!!!

EET 310 Flip-Flops 11/17/2011 1

CARLETON UNIVERSITY Final rev EXAMINATION Fri, April 22, 2005, 14:00

Practice Final Exam Solutions

Review Problem 1. should be on. door state, false if light should be on when a door is open. v Describe when the dome/interior light of the car

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

CSC 322: Computer Organization Lab

ELCT201: DIGITAL LOGIC DESIGN

Sequential Circuits Sequential circuits combinational circuits state gate delay

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

Sequential Circuit Design

University of Toronto Faculty of Applied Science and Engineering Final Examination

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

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

CSE140L: Components and Design Techniques for Digital Systems Lab. FSMs. Instructor: Mohsen Imani. Slides from Tajana Simunic Rosing

Table of Content. Chapter 11 Dedicated Microprocessors Page 1 of 25

Chapter 5 Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic

Design of Sequential Circuits

Philadelphia University Student Name: Student Number:

ECE 2300 Digital Logic & Computer Organization

Synchronous Sequential Circuit Design. Digital Computer Design

Adders, subtractors comparators, multipliers and other ALU elements

Adders, subtractors comparators, multipliers and other ALU elements

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

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

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

14:332:231 DIGITAL LOGIC DESIGN

Transcription:

EES 270 Midterm 2 Exam nswer Key Winter 2017 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. NOTES: 1. This part of the exam is open books and open notes. You may not use any device capable of communication (cell phones, calculators with wireless, etc.) 2. You have about 120 minutes for the exam total. 3. Some questions may be harder than others. Manage your time wisely. 4. o NOT write anything you want graded on the back of any page. If you need extra space for a problem, write it on the last (blank) page. If you do so: On the page of the problem itself, make it clear your answer is on the last page. Make it clear on the last page what problem(s) you are putting there. Page 1 of 10

1. Fill in each blank or circle the best answer.[11 points, -2 per wrong or blank answer, min 0] a) Using standard static MOS logic, a 3-input NN gate requires 2 / 3 / 4 / 6 / 8 / 12 transistors. 2-input N gate requires 2 / 3 / 4 / 6 / 8 / 12 transistors. b)!(++!), when expanded into canonical sum-of-products form, has 1 minterms. c) You are treating the 8-bit numbers [7:0] and [7:0] as unsigned numbers. If you set [4:0]=[7:3] and [7:5]=3 b000, is now equal to plus / minus / times / modulo / divided by 2 / 3 / 4 / 8 / 16 / 32 d) When building a 512 by 2 memory out of a square memory of minimum size, the row decoder will have 5 bits of input while the column MUX will have 4 bits needed for its select input. e) The primary difference between a Mealy machine and a Moore machine is that in a Mealy machine the output depends on the current state and the inputs. f) Flash memory is a type of dynamic / static / non-volatile / / Garrick memory. g) 6-bit 2 s complement number can represent values from -32 to 31. 2. omplete the following Verilog module to implement the circuit shown. You may not make any changes to the supplied code. You are to follow our standard coding guidelines. [4 points] module PE (pulse, clock, PE); input pulse, clock; output PE; wire PE; reg state; pulse clock flip-flop Q Q PE assign PE = ~state & pulse; always @(posedge clock) begin state <= pulse; end endmodule Page 2 of 10

3. omplete the following timing diagram for an SR-latch with enable. You may assume that the time scale is such that the gate delay is extremely small and your answer should not reflect those delays. hanges shown to be simultaneous are exactly simultaneous. [5 points] If the value is unknown (or oscillating) at some point, clearly indicate that with hashes (like this) Value unknown S R Q Q Page 3 of 10

4. Using NMOS and PMOS transistors, and following the static MOS design rules described in class, design a MOS device which implements the function!*(!+!). Your design should use as few transistors as possible. [7 points, 4 for a correct solution that uses 10 or fewer transistors, the 3 additional points are for a correct solution that uses as few transistors as possible]!*(!+!)!*!(*)!(+(*)) OUT 5. Find the minimal product-of-sums for the function : Σ(,,,)=(5,6,8,12,14)+d(0,10) using a K-map. learly show your work. [7 points] ( + + ) (! +!) (! +!) ( + ) 00 01 11 10 00 dc 0 1 1 01 0 1 0 0 11 0 0 0 0 10 0 1 1 dc Page 4 of 10

6. The following table describes a state machine. Present state Next state x=0 x=1 Output Z 0 1 1 E 1 E 1 Minimize the number of states in this machine and draw the state transition diagram which describes this minimized machine. Show your work. is the initial state. [10 points] E E E E Page 5 of 10

7. esign a state machine which implements the following state transition diagram. ssign state bits S[1:0] as 00 for state X, 01 for state Y, and 11 for state Z. You are to assume that you will never reach the state S[1:0]=10, so you don t care what happens in that case. You must show your work to get any credit! You only need to compute the next state and output logic, you don t need to draw the gates or flip-flops! Place your answer where shown, all answers must be in minimal sum-ofproducts form. [14 points]!/w=0 Input is. Output is W. X!/W=0 Y /W=1!/W=0 Z /W=0 /W=1 S1 S0 NS1 NS0 W 0 0 0 0 1 0 0 0 1 1 1 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 0 dc dc dc 1 0 1 dc dc dc 1 1 0 1 1 0 1 1 1 0 0 0 S1S0 00 01 11 10 NS1 0 0 0 1 dc 1 1 1 0 dc S1S0 00 01 11 10 NS0 0 1 1 1 dc 1 1 1 0 dc S1S0 W 00 01 11 10 0 0 0 0 dc 1 1 1 0 dc (e sure all are in minimal sum-of-products form!) NS1=!S1* + S1*! NS0=!S1 +! W=!S1* Page 6 of 10

8. esign a Moore-type state transistion diagram for a state machine with 2 inputs ( and ) and 1 output (Z). Z should be high if and only if and were both 1 in the previous last cycle and are both 0 this cycle. Your machine should use as few states as possible. [5 points] 9. s the problem above, but design a Mealy-type state transition diagram with as few states as possible. [8 points] Page 7 of 10

10. You have been tasked with designing a state machine that implements the state-transition diagram found below. Sadly, the only sequential logic part you have is an old chip that implements a 2-bit saturating up/down counter with enable and reset identical to the device you were to create in lab 5. You need to use that chip to implement that state machine. s a reminder, the inputs and outputs to the counter are as follows: Taken (output): 1 if the counter is a 2 or 3, otherwise a 0. Strong (output): 1 if the counter is a 0 or 3, otherwise a 0. Reset (input): If this input is a high on the rising edge of clock, the counter will go to 0. Enable (input): If this input is low and reset is low the counter will hold its value. Up/down (input): If enable is high and reset is low this input will cause the counter of count up by one if the value is a 1, otherwise it will count down by 1. Recall this is a saturating counter. Notice that the state machine itself has one input (X) and two outputs (Y and Z). elow you are asked to design the needed combinational logic to drive the three inputs to the counter as well as the logic needed to generate the two state machine outputs (Y and Z). X!X 0 1 2 3 Y=1 Z=0 Y=0 Z=1!X X Y=0 Z=0!X Y=0 Z=1 X ount T S X Nount R E U 00 0 1 0 01 0 1 1 00 0 1 1 01 0 1 1 01 0 0 0 01 0 0 dc 01 0 0 1 10 0 1 1 10 1 0 0 11 0 1 1 10 1 0 1 00 1 dc dc 11 1 1 0 10 0 1 0 11 1 1 1 00 1 dc dc The above states are labeled according to their counter value, however, as in lab, we have access to only T and S and thus have to use those to know our current state State T S Y Z 00 0 1 1 0 01 0 0 0 1 10 1 0 0 0 11 1 1 0 1 Write logic equations for the following. Keep your solutions as simple as possible. [14 points] Reset: T*X Enable: T + S + X Up/down:!T +!S Y:!T*S Z:!(T S) Page 8 of 10

E T OUT OE OE 1E 0E R L Reg Reset Load lock ob R L Reg Reset Load lock 11. You are to design a Moore-type state transition diagram which causes the above datapath to find the maximum of 16 unsigned numbers. When the STRT signal goes high, you are to begin. Once done, the result should be placed on OUT and the ONE signal should be set high. STRT will not go high again until after ONE is asserted. ny value not specified in a given state will be assumed to be zero. [15 points] in in LU cmd out LU 1 0 Other inputs and outputs NEXT auses T to change to the next data element on the following rising edge of the clock. ONE Indicates the result is available on OUT. Only needs to be asserted for one clock period. STRT You are to start finding the average. ob1 True if ob==1 16 True if Reg==16. LU cmd Operation 0 out=in+in 1 out=in-in 2 out=in<in 3 out=in>in Note X>Y means the output is a 1 if X>Y otherwise it is a 0. Page 9 of 10

This page intentionally blank. See cover sheet for directions. Page 10 of 10