EECS 270 Midterm 2 Exam Closed book portion Fall 2014

Similar documents
EECS 270 Midterm 1 Exam Closed book portion Winter 2017

EECS 270 Final Exam Spring 2012

EECS 270 Midterm Exam Spring 2011

EECS 270 Group Homework 4 Due Friday. June half credit if turned in by June

1. Convert the decimal number to binary, octal, and hexadecimal.

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

EECS 270 Homework the Last Winter 2017

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

Midterm Exam 15 points total. March 28, 2011

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

MODULE 3. Combinational & Sequential logic

ME 515 Mechatronics. Introduction to Digital Electronics

Analogue Versus Digital [5 M]

Software Engineering 2DA4. Slides 3: Optimized Implementation of Logic Functions

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 2 Logistics

Computer Architecture and Organization

CS 151 Final. Instructions: Student ID. (Last Name) (First Name) Signature

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS


R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

Combinational Logic Design

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Universidad Carlos III de Madrid Digital Electronics Exercises

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

St. MARTIN S ENGINEERING COLLEGE

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

Good Evening! Welcome!

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

Logic Design II (17.342) Spring Lecture Outline

CSE 140 Exam #3 Tajana Simunic Rosing

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

Principles of Computer Architecture. Appendix A: Digital Logic

Good Evening! Welcome!

Chapter 5: Synchronous Sequential Logic

WINTER 15 EXAMINATION Model Answer

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

EE 121 June 4, 2002 Digital Design Laboratory Handout #34 CLK

Flip-Flops and Sequential Circuit Design

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

TYPICAL QUESTIONS & ANSWERS

Quiz #4 Thursday, April 25, 2002, 5:30-6:45 PM

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Lecture 8: Sequential Logic

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

VU Mobile Powered by S NO Group

COMP2611: Computer Organization. Introduction to Digital Logic

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF ELECTRONICS AND ELECTRICAL ENGINEERING DEPARTMENT OF ECE COURSE PLAN

Section 001. Read this before starting!

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

Chapter 5 Synchronous Sequential Logic

DIGITAL ELECTRONICS MCQs

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Introduction to Digital Electronics

Chapter 3: Sequential Logic Systems

Decade Counters Mod-5 counter: Decade Counter:

Course Administration

Good Evening! Welcome!

CprE 281: Digital Logic

SEMESTER ONE EXAMINATIONS 2002

Dr. Shahram Shirani COE2DI4 Midterm Test #2 Nov 19, 2008

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

Introduction to Sequential Circuits

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Logic Design. Flip Flops, Registers and Counters

Asynchronous (Ripple) Counters

Chapter 3 Unit Combinational

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

EE 109 Homework 6 State Machine Design Name: Score:

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Registers and Counters

For Teacher's Use Only Q Total No. Marks. Q No Q No Q No

Practice Homework Problems for Module 3

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

Elwin Cabrera May 11, 2016 DIGITAL CLOCK. ECE271/CSC222 Final Project Report

CHAPTER 4 RESULTS & DISCUSSION

Using minterms, m-notation / decimal notation Sum = Cout = Using maxterms, M-notation Sum = Cout =

UNIVERSITI TEKNOLOGI MALAYSIA

DO NOT COPY DO NOT COPY

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Where Are We Now? e.g., ADD $S0 $S1 $S2?? Computed by digital circuit. CSCI 402: Computer Architectures. Some basics of Logic Design (Appendix B)

Module -5 Sequential Logic Design

L5 Sequential Circuit Design

EECS 140 Laboratory Exercise 7 PLD Programming

Lesson 12. Advanced Digital Integrated Circuits Flip-Flops, Counters, Decoders, Displays

CprE 281: Digital Logic

CHAPTER 4: Logic Circuits

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

PHYS 3322 Modern Laboratory Methods I Digital Devices

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Transcription:

EECS 270 Midterm 2 Exam Closed book portion Fall 2014 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Scores: Page # Points 2 /14 3 /10 Total closed book /24 Total open book /76 Total /100 NOTES: 1. This part of the exam is closed everything. No calculators, books, notes, etc. 2. Once you finish this part, turn it in and you ll be given the open book part. You won t be able to come back to this part. 3. There are 3 pages total. Count them to be sure you have them all. 4. You have about 120 minutes for the exam total. We d suggest you not spend more than 25 or 30 minutes on this part. Page 1 of 10

1. Fill in each blank or circle the best answer.[10 points, -2 per wrong or blank answer, min 0] a)!(a+b), when expanded into canonical sum-of-products form, has minterms. b) A 4-bit 8 to 1 MUX would require select lines. c) You are treating the 8-bit numbers A[7:0] and B[7:0] as unsigned numbers. If you set B[3:0]=A[3:0] and B[7:4]=4 b0000, B is now equal to A plus / minus / times / modulo / divided by 2 / 3 / 4 / 8 / 16 / 32 d) When building a 1024 by 4 memory out of a square memory of minimum size, the row decoder will have bits of input while the column MUX will have bits needed for its select input. e) In CMOS you d need at least transistors to implement a 4-input OR gate. 2. Two 8-bit counters are connected as follows. Assume that these two counters are both working as "counting up" (note that Q7 is the MSB for the output of a counter); also, the period of the input clock signal for the 1st counter (the one on the left-hand side) is equal to 100 μs. Calculate the period of the output signals at A and B, respectively. Your answer must be in ms! [4] 100μs clock 8-bit up counter Clock Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 A 8-bit up counter Clock Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 B Period of A: ms Period of B: ms Page 2 of 10

3. Complete 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. Changes 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 C S R Q QB 4. Find the minimal sum-of-products using this Kmap. Clearly show your work. [5] Minimal SoP: Page 3 of 10

EECS 270 Midterm 2 Exam Open book portion Fall 2014 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Scores: Page # Points 5 /12 6 /12 7 /8 8 /15 9 /15 10 /14 Total open book /76 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. The last two questions are fairly difficult and potentially time consuming. We recommend you do the rest of the exam before starting those. Page 4 of 10

1. Consider the following Mealy state transition diagram.!a/x=0 D M!A/X=1 A/X=0 A/X=1 Complete the following timing diagram.. [6 points] D 2. Consider the transistor diagram below. Fill in the truth table with either 1, 0, Hi-Z or Smoke (the last if OUT is connected to both Vcc and Ground). [6 points] A B C OUT 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Page 5 of 10

3. The following table describes a state machine. Present state Next state x=0 x=1 Output Z A B C 0 B D E 0 C F G 0 D A A 0 E A A 1 F A A 0 G A A 1 Minimize the number of states in this machine and draw the state transition diagram which describes this minimized machine. Show your work. [12 points] A B C D E F G A B C D E Page 6 of 10

Min Max AND?????? NOR 2ns 5ns NOT 2ns 3ns XOR 3ns 8ns DFF: Min Max Clock to Q 2ns 3ns Set-up time 3 ns Hold time 5 ns D flip-flop #1 A D Q C QB D D flip-flop Q X C QB Clock D flip-flop D Q C QB Y 4. Answer the following questions. Assume we are clocking this circuit at 50MHz. [8 points] a) In order for this circuit to work correctly, what range of values that would be acceptable for the minimum time delay of the AND gates? Assume the only options are integers from 1ns to 20ns. Clearly show your work. [4] Smallest Largest b) In order for this circuit to work correctly, what range of values that would be acceptable for the maximum time delay of the AND gates? Assume the only options range from 1ns to 10ns. Clearly show your work. [4] Smallest Largest Page 7 of 10

5. Design a state machine which implements the following state transition diagram. Assign state bits S[1:0] as 01 for state X, 00 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] Input is B. Output is W. W is a 1 in State X and Y (and is 0 in Z). X!B Y!B B Z B (Be sure all are in minimal sum-of-products form!) NS1= NS0= W= Page 8 of 10

6. The following circuit is an unsigned binary multiplier which computes A*B. Draw the control state transition diagram. [15 points] You are to assume: Start will be asserted for one cycle and that A and B are available on the rising edge that start is asserted On any rising edge Done is asserted, Sum should be correct. Done need only be held high for 1 cycle. Start will not be reasserted to start a new operation until after you assert Done (and if it is, you can ignore it). Page 9 of 10

7. Binary Coded Decimal (BCD) encoding is used to represent decimal numbers. Each digit of the decimal number is binary encoded with 4 bits. For example, 12 will be encoded as 0001 0010 and 45 as 0100 0101. Using gates and two 4-bit counters of the type to the right, design a two-digit saturating BCD counter that counts from 00 to 99. Your BCD counter should have three inputs: clock, reset and enable. On each rising edge: If reset is a 1, your BCD counter should go to 00. Otherwise, if enable=1 it should increment to the next value (staying at 99 if already at 99). Otherwise it should hold its value. It should have outputs LSD[3:0] which is the least-significant BCD digit and MSD[3:0] which is the most-significant BCD digit. Your grade for this problem will be based on correctness, efficiency, and clarity. Your counters must be clocked using the clock input. Assume the supplied 4-bit counter will ignore the EN input if RESET is 1. [15 points] Page 10 of 10