EECS 270 Midterm Exam

Similar documents
ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

Engineering 100 Midterm Exam Technical Part Fall 2010

Question Total Possible Test Score Total 100

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

EECS 452 Midterm Closed book part Fall 2010

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

EECS 373 Midterm Winter 2012

LECTURE 4. Logic Design

Student Number: UTORid: Question 0. [1 mark] Read and follow all instructions on this page, and fill in all fields.

EPC6055 Digital Integrated Circuits EXAM 1 Fall Semester 2013

EECS150 Homework 2 Solutions Fall ) CLD2 problem 2.2. Page 1 of 15

Good Evening! Welcome!

EECS 373 Practice Midterm / Homework #3 Fall 2014

EECS 470 Midterm Exam Fall 2006

problem maximum score 1 10pts 2 8pts 3 10pts 4 12pts 5 7pts 6 7pts 7 7pts 8 17pts 9 22pts total 100pts

Chapter 4. Combinational Logic

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

University of Toronto Mississauga. Flip to the back cover and write down your name and student number.

EECS 470 Midterm Exam Answer Key Fall 2004

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

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

EECS 452 Midterm Closed book part Fall 2010

Written exam for IE1204/5 Digital Design Thursday 29/

EECS 373 Midterm 2 Fall 2018

EECS150, Fall 2004, Midterm 1, Prof. Culler. Problem 1 (15 points) 1.a. Circle the gate-level circuits that DO NOT implement a Boolean AND function.

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

Section 001. Read this before starting! You may use one sheet of scrap paper that you will turn in with your test.

Solution printed. Do not start the test until instructed to do so! CS 2504 Intro Computer Organization Test 2 Spring 2006.

1 /10 2 /12 3 /16 4 /30 5 /12 6 /20

ENGR 100 Midterm (CSE Part) Winter 2014

CSE 140L Final Exam. Prof. Tajana Simunic Rosing. Spring 2008

EECS 470 Midterm Exam

Combinational Logic. Prof. Wangrok Oh. Dept. of Information Communications Eng. Chungnam National University. Prof. Wangrok Oh(CNU) 1 / 93

Combinational Logic II

ENEL Digital Circuits Midterm Examination

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

CS8803: Advanced Digital Design for Embedded Hardware

EECS 470 Final Exam Fall 2015

Chapter 4: Combinational Logic

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences. Spring 2010 May 10, 2010

Laboratory Exercise 1

Combinational Circuits

Last Name Student Number. Last Name Student Number

1. Mark the correct statement(s)

Design of Digital Circuits ( L) ETH Zürich, Spring 2017

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

COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK SUBJECT CODE & NAME: EC 1312 DIGITAL LOGIC CIRCUITS UNIT I


UNCA CSCI 255 Exam 1 Spring February, This is a closed book and closed notes exam. It is to be turned in by 1:45 PM.

EECS 470 Midterm Exam

CDA 3103 Computer Organization Exam 1 (Sep. 22th, 2014)

EECS 373 Midterm Winter 2013

Combinational Logic & Circuits

EECS 373 Midterm Winter 2016

Slide Set 5. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

problem maximum score 1 8pts 2 6pts 3 10pts 4 15pts 5 12pts 6 10pts 7 24pts 8 16pts 9 19pts Total 120pts

Topics of this Slideset. CS429: Computer Organization and Architecture. Digital Signals. Truth Tables. Logic Design

Computer Architecture: Part III. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

EE 231 Fall EE 231 Lab 3

NATIONAL UNIVERSITY OF SINGAPORE CS2100 COMPUTER ORGANISATION

10EC33: DIGITAL ELECTRONICS QUESTION BANK

END-TERM EXAMINATION

Code No: R Set No. 1

Chapter 2. Boolean Expressions:

CSE 140L Final Exam. Prof. Tajana Simunic Rosing. Spring 2008

EECS 150 Homework 7 Solutions Fall (a) 4.3 The functions for the 7 segment display decoder given in Section 4.3 are:

Code No: R Set No. 1

Lab 7 (All Sections) Prelab: Introduction to Verilog

UNIT- V COMBINATIONAL LOGIC DESIGN

2/8/2017. SOP Form Gives Good Performance. ECE 120: Introduction to Computing. K-Maps Can Identify Single-Gate Functions

Midterm Exam 2B Answer key

Read this before starting!

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 3 DLD P VIDYA SAGAR

Department of Electrical and Computer Engineering University of Wisconsin - Madison. ECE/CS 352 Digital System Fundamentals.

Code No: R Set No. 1

Fundamentals of Computer Systems

Read this before starting!

Final Exam Solution Sunday, December 15, 10:05-12:05 PM


EECS 470 Final Exam Fall 2005

QUESTION BANK FOR TEST

Objectives: 1. Design procedure. 2. Fundamental circuits. 1. Design procedure

CHAPTER NINE - MSI Logic Circuits

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

Final Examination (Open Katz, asynchronous & test notes only, Calculators OK, 3 hours)

Experiment 3: Logic Simplification

DIGITAL ELECTRONICS. P41l 3 HOURS

ECE20B, Spring Final Exam lab questions.

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April

Combinational Logic Circuits

Specifying logic functions

Lab 3: Standard Combinational Components

FPGA Design Challenge :Techkriti 14 Digital Design using Verilog Part 1

ECE 331: N0. Professor Andrew Mason Michigan State University. Opening Remarks

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

Chapter 6 Combinational-Circuit Building Blocks

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Transcription:

EECS 270 Midterm Exam Fall 2009 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Scores: NOTES: Problem # Points 1 /11 2 /4 3 /8 4 /18 5 /8 6 /15 7 /8 8 /8 9 /20 Total /100 1. Open book and Open notes 2. There are 14 pages total. Count them to be sure you have them all. 3. Calculators are allowed, but no PDs, Portables, Cell phones, etc. 4. This exam is fairly long: don t spend too much time on any one problem. 5. You have about 120 minutes for the exam. 6. Some questions may be more difficult than others. You may want to skip around. 7. Be sure to show work and explain what you ve done when asked to do so. Page 1 of 14

1. Fill in the blank/multiple choice. [11 points] a. Convert 10111 as a 5-bit 2 s complement number to decimal. b. Convert 10111 as a 5-bit signed-magnitude number to decimal.. c. Convert 11110 as a 5-bit signed-magnitude number to a 6-bit 2 s complement number. d. When +!(!*B*C) is converted into canonical sum-of-products form, it has minterms. When converted into canonical product-of-sums form it has maxterms. e. truth table with 5 inputs and 3 outputs has rows. f. 32 to 1 multiplexor has selection bits. g.!( B) is the equivalent of (*B)+. h. clock with a 100MHz frequency has a μs period. i. The smallest (most negative) decimal number that can be represented by an 8-bit 2 s complement number is. The largest (most positive) decimal number that can be represented by an 8-bit 2 s complement number is. Page 2 of 14

2. Truth tables. Fill in the truth table for the output of the following circuit. [4 points, -1 per wrong/blank box, minimum 0] B Out C 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 3 of 14

3. Logic. Using the rules of logic convert the following into sum-of-products form. Show each step as in example 2.13 on page 52 of our text. [8] a.!(+b)*!(c*d) b.!(*(b+c))+!d c. (!+B)*!(B C) Page 4 of 14

4. Short design. In each problem you will be asked to design a given device using a limited number of some set of components. We will give little, if any, partial credit for these problems. Draw your answers neatly. [18 points, 6 points each] a. Using no more than 5 components, build a two-input ND gate using only tri-state buffers and inverters. You can freely connect inputs to 1 and 0 as needed. Label the inputs as and B. Label the output as X. b. Design a 1 to 2 demux using only ND, OR and NOT gates. Your answer must have 5 or fewer gates to receive credit. Your inputs and outputs should use the same labeling scheme as found in the figure below. S 0 1 X0 X1 Page 5 of 14

c. Say you are working in a system where the only component you have available is a 2-to-1 MUX. Show how to build a 2-input NOR gate from those MUXes. You can freely connect inputs to 1 and 0 as needed. Label the inputs as and B. Label the output as X. Your solution must use 3 or fewer of the MUXes to receive credit. Page 6 of 14

5. State Machine nalysis. Write the state table for the synchronous sequential circuit shown here. [8] Present State X=0 X=1 B C D Next State Page 7 of 14

6. State Machine Design. Draw a Moore-type state transition diagram (not the circuit) for the following problem. Say we have one input,, and one output, X. X should be high iff the last three values of "" were "100" or 010. Your answer needs to be neatly drawn, clearly indicate the initial state, and have no more than 10 states. [15] Page 8 of 14

7. Combinational Timing. In this circuit NOT gates have a delay of 50ps, while all other gates have a delay of 100ps. Starting at time 0, show how the output and intermediate signals react; include causality arrows. You need only fill in those times between 0ps and 450ps. You are to assume the input values have been held constant before time 0 for a long time. [8] W B X Y Z C Page 9 of 14

Page 10 of 14 8. Sequential Circuit Timing. Fill in the timing diagrams for each of the following circuits. ssume that the circuit delays are small relative to the timescale given and that all setup and hold times are met. If you can t determine a given value at a given time leave that part blank. [8] D C D C B W X D C B Y Z D C B W X B Y Z

9. Verilog. This problem spans 4 pages (including this one). You ve been asked to write a bit of Verilog code for use in the 270 lab. Your code is to read the slide switches 0-3 and output a number 0, 1, 2, or 3 on the HEX0 seven-segment display. The output should be of the highest number switch that is in the on position. For example, if switch 3 is on, the number 3 should be displayed on the HEX display regardless of the switch 2-0 settings. high level functional diagram follows, as does a figure showing how the HEX0 segments are assigned. Bit Pattern 1 Bit Pattern 2 Bit Pattern 3 Bit Pattern 4 11 10 01 00 7 Bit, 4x1 MUX HEX0 Display Slide SW0 Slide SW1 Slide SW2 Priority Encoder 2 Bit Code Slide SW3 For you reference, the priority encoder truth table follows: I3 I2 I1 I0 Y1 Y0 1 x x x 1 1 0 1 x x 1 0 0 0 1 x 0 1 0 0 0 1 0 0 Note: x means that the value can be either 0 or 1. I3 is the highest priority and I0 is the lowest. The following the Verilog code implements the switch priority encoding and display multiplexing. Complete the code by choosing the best answer. [20 points, -3 per wrong or blank answer, minimum 0] Notes: Recall that a complex multiplexer can be implemented as a combination of simpler multiplexers. For your convenience, the high level diagram is provided on the following pages. Page 11 of 14

module priority_encoder ( 1, Display); input [3:0]; //connect to slide switches 3-0 respectively output [6:0] Display; //connect to hex display H0[6:0] respectively wire [6:0] Display; wire [1:0] EP; //hex display bit patterns `define N1 'b1111001 //1 `define N2 'b0100100 //2 `define N3 'b 2 //3 `define N4 'b0011001 //4 //priority encode switch inputs: SW3 highest, SW0 lowest assign EP[0]= ~[3] & ~[2] & [1] [3]; assign EP[1]= 3 ; //select HEX bit patterns according to priority mux7bit_4x1 inst1( 4 ); endmodule Blank 1 a) SW[3:0] b) c) I[3:0] d) ll of the above would work Blank 2 a) 0000110 b) 1001111 c) 0110000 d) 0011000 Blank 3 a) ~[3] & [2] [3] b) ~[3] & [2] &~[1]&~0[1] [3] & ~[2] &~[1]&~0[1] c) [3] & ~[2] [2] ~[1] d) None of the above Blank 4 a) EP, `N1, `N2, `N3, `N4, Display b) select,, B, C, D, Y c), SW0, SW1, SW2, SW3, HEX0) d) None of the above Bit Pattern 1 Bit Pattern 2 Bit Pattern 3 Bit Pattern 4 11 10 01 00 7 Bit, 4x1 MUX HEX0 Display Slide SW0 Slide SW1 Slide SW2 Priority Encoder 2 Bit Code Slide SW3 Page 12 of 14

//7 bit 4 to 1 mux module 5 (select,, B, C, D, Y); input [1:0] select; input [6:0], B, C, D; output [6:0]Y; wire [6:0] Y, Y0, Y1; wire sel1, sel2, sel3; //decode mux select lines assign sel1 = 6 ; assign sel2 = ~select[0] & select[1]; assign sel3 = select[0] & select[1]; //make 4 to 1 mux with 3, 2 to 1 muxs mux7bit_2x1 inst1 ( 7 ); mux7bit_2x1 inst2 (sel2, Y0, C, Y1); mux7bit_2x1 inst3 ( 8 ); endmodule Blank 5 a) mux7bit_4x1 b) mux7bit_4x1 inst1 c) inst1 d) none of the above Blank 6 a) select[1] b) ~select[0] & ~select[1] c) select[0] & ~select[1] d) none of the above Blank 7 a) sel1,, B, Y1 b) sel1,, B, Y0 c) sel1, B,, Y0 d) none of the above Blank 8 a) sel3, Y1, B, Y b) sel3, Y1, C, Y c) sel3, Y1, D, Y d) none of the above Bit Pattern 1 Bit Pattern 2 Bit Pattern 3 Bit Pattern 4 11 10 01 00 7 Bit, 4x1 MUX HEX0 Display Slide SW0 Slide SW1 Slide SW2 Priority Encoder 2 Bit Code Slide SW3 Page 13 of 14

//7 bit 2 to 1 mux module mux7bit_2x1(select,, B, Y); input select; input [6:0], B; output [6:0]Y; wire [6:0]Y; 9 endmodule Blank 9 a) assign Y[0] = select & [0] B[0]; assign Y[1] = select & [1] B[1]; assign Y[2] = select & [2] B[2]; assign Y[3] = select & [3] B[3]; assign Y[4] = select & [4] B[4]; assign Y[5] = select & [5] B[5]; assign Y[6] = select & [6] B[6]; b) assign Y[0] = ~select & [0] select & B[0]; assign Y[1] = ~select & [1] select & B[1]; assign Y[2] = ~select & [2] select & B[2]; assign Y[3] = ~select & [3] select & B[3]; assign Y[4] = ~select & [4] select & B[4]; assign Y[5] = ~select & [5] select & B[5]; assign Y[6] = ~select & [6] select & B[6]; c) if (select) then assign Y = else assign Y = B d) ll of the above would work. Bit Pattern 1 Bit Pattern 2 Bit Pattern 3 Bit Pattern 4 11 10 01 00 7 Bit, 4x1 MUX HEX0 Display Slide SW0 Slide SW1 Slide SW2 Priority Encoder 2 Bit Code Slide SW3 Page 14 of 14