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

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

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

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

ECE2020 Final Exam Summer 2014 GTL July 30, 2014

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates. Invitation to Computer Science, C++ Version, Third Edition

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.

Question Total Possible Test Score Total 100

Chapter 4. Combinational Logic

Numeric Encodings Prof. James L. Frankel Harvard University

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Floating Point Arithmetic

UNIVERSITY OF WISCONSIN MADISON

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

CS101 Lecture 04: Binary Arithmetic

Number Systems. Both numbers are positive

Birkbeck (University of London) Department of Computer Science and Information Systems. Introduction to Computer Systems (BUCI008H4)

CHW 261: Logic Design

The LC3's micro-coded controller ("useq") is nothing more than a finite-state machine (FSM). It has these inputs:

ECE232: Hardware Organization and Design

Chapter 3: Arithmetic for Computers

Microcomputers. Outline. Number Systems and Digital Logic Review

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

D I G I T A L C I R C U I T S E E

Digital Logic Design Exercises. Assignment 1

ENEL Digital Circuits Midterm Examination

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

Binary Adders: Half Adders and Full Adders

CSCI 402: Computer Architectures. Arithmetic for Computers (3) Fengguang Song Department of Computer & Information Science IUPUI.

CHAPTER V NUMBER SYSTEMS AND ARITHMETIC

Number Systems Standard positional representation of numbers: An unsigned number with whole and fraction portions is represented as:

Department of Electrical and Computer Engineering The University of Texas at Austin

CMPSCI 145 MIDTERM #2 SPRING 2017 April 7, 2017 Professor William T. Verts NAME PROBLEM SCORE POINTS GRAND TOTAL 100

CMPSCI 145 MIDTERM #1 Solution Key. SPRING 2017 March 3, 2017 Professor William T. Verts

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

Birkbeck (University of London) Department of Computer Science and Information Systems. Introduction to Computer Systems (BUCI008H4)

NAME: 1a. (10 pts.) Describe the characteristics of numbers for which this floating-point data type is well-suited. Give an example.

Digital Fundamentals

Computer Sc. & IT. Digital Logic. Computer Sciencee & Information Technology. 20 Rank under AIR 100. Postal Correspondence

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

Computer Organisation CS303

Experimental Methods I

10.1. Unit 10. Signed Representation Systems Binary Arithmetic

COMP2611: Computer Organization. Data Representation

Signed umbers. Sign/Magnitude otation

Introduction to Computer Science-103. Midterm

CS 202: Introduction to Computation Fall 2010: Exam #1

ECE 30 Introduction to Computer Engineering

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

Binary Addition. Add the binary numbers and and show the equivalent decimal addition.

CS/COE 0447 Example Problems for Exam 2 Spring 2011

EE 109L Review. Name: Solutions

Introduction to Computers and Programming. Numeric Values

Number Systems. Binary Numbers. Appendix. Decimal notation represents numbers as powers of 10, for example

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

Basic Arithmetic (adding and subtracting)

CE161-4-AU UNIVERSITY OF ESSEX. Undergraduate Examinations 2014 DIGITAL SYSTEMS ARCHITECTURE. Time allowed: TWO hours

Divide: Paper & Pencil

CS1800 Discrete Structures Final Version A

MACHINE LEVEL REPRESENTATION OF DATA

Chapter Three. Arithmetic

1. NUMBER SYSTEMS USED IN COMPUTING: THE BINARY NUMBER SYSTEM

11/22/1999 7pm - 9pm. Name: Login Name: Preceptor Name: Precept Number:

ECE 341 Midterm Exam

Course Schedule. CS 221 Computer Architecture. Week 3: Plan. I. Hexadecimals and Character Representations. Hexadecimal Representation

Floating-point Arithmetic. where you sum up the integer to the left of the decimal point and the fraction to the right.

Operations On Data CHAPTER 4. (Solutions to Odd-Numbered Problems) Review Questions

Chapter 10 Binary Arithmetics

Logic, Words, and Integers

EE 109L Final Review

Read this before starting!

Arab Open University. Computer Organization and Architecture - T103

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

8/27/2016. ECE 120: Introduction to Computing. Graphical Illustration of Modular Arithmetic. Representations Must be Unambiguous

Chapter Three. Digital Components

Chapter 2 Bits, Data Types, and Operations

IT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1

Basic Definition INTEGER DATA. Unsigned Binary and Binary-Coded Decimal. BCD: Binary-Coded Decimal

1. Which of the following Boolean operations produces the output 1 for the fewest number of input patterns?

Lecture 10: Floating Point, Digital Design

Inf2C - Computer Systems Lecture 2 Data Representation

Lecture 6: Signed Numbers & Arithmetic Circuits. BCD (Binary Coded Decimal) Points Addressed in this Lecture

ECE331: Hardware Organization and Design

Software and Hardware

Learning Log Title: CHAPTER 3: ARITHMETIC PROPERTIES. Date: Lesson: Chapter 3: Arithmetic Properties

1. Mark the correct statement(s)

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

END-TERM EXAMINATION

CS 101: Computer Programming and Utilization

Chapter 03: Computer Arithmetic. Lesson 09: Arithmetic using floating point numbers

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

Computer Organization and Levels of Abstraction

Chapter 2 Bits, Data Types, and Operations

Number Systems and Computer Arithmetic

CDS130 Mid-term exam: Sample

COMPUTER ARCHITECTURE AND ORGANIZATION. Operation Add Magnitudes Subtract Magnitudes (+A) + ( B) + (A B) (B A) + (A B)

Advanced Computer Architecture-CS501

Number System. Introduction. Decimal Numbers

Chapter 2 Bits, Data Types, and Operations

Binary Values. CSE 410 Lecture 02

EE292: Fundamentals of ECE

Transcription:

Instructions: This is a closed book, closed note exam. Calculators are not permitted. If you have a question, raise your hand and I will come to you. Please work the exam in pencil and do not separate the pages of the exam. For maximum credit, show your work. Good Luck! Your Name (please print) 1 2 3 4 total 22 24 28 26 100 1

Problem 1 (4 parts, 22 points) Part A (6 points) Implement a 2 to 4 decoder with basic gates. I 0 O 0 Building Blocks I 1 O 1 EN O 2 O 3 Part B (8 points) Suppose the circuit below has the following input priority: I 0 > I 2 > I 3 > I 1. Complete the truth table by filling in the input values that would produce the given outputs and derive a simplified expression for O 1. I 3 I 2 I 1 I 0 V O 1 O 0 I0 I1 I2 I3 O0 O1 0 X X 1 0 0 1 0 1 1 1 0 1 1 1 O 1 = Part C (4 points) Which basic gate, having inputs X and Y, does the following circuit implement? Hint: Complete the truth table at the right. X Y Out 0 0 0 1 1 0 1 1 This implements a. Part D (4 points) If the mux in Part C is implemented with pass gates and inverters, does the implementation of the basic gate in Part C require fewer transistors than the gate's standard switch-level implementation? Circle one: Yes / No Support your answer by giving the transistor count for each: # transistors in MUX implementation: # transistors in switch-level implementation: 2

Problem 2 (3 parts, 24 points) Number Systems Part A (10 points) Convert the following notations: binary notation 1100 0101. 1 1001.011 hexadecimal notation D5.A decimal notation 21.625 octal notation 754.26 Part B (8 points) For the 12 bit representations below, determine the most positive value and the step size (difference between sequential values). Express all answers in decimal notation. Fractions (e.g., 3/16ths) may be used. Signed representations are two s complement. representation most positive value step size unsigned integer (12 bits). (0 bits) signed fixed-point (7 bits). (5 bits) signed integer (12 bits). (0 bits) signed fixed-point (9 bits). (3 bits) Part C (6 points) A 16 bit floating point representation has a 10 bit mantissa field, a 5 bit exponent field, and one sign bit. What is the largest value that can be represented (closest to infinity)? What is the smallest value that can be represented (closest to zero)? How many decimal significant figures are supported? 2 2 3

Problem 3 (3 parts, 28 points) Adding & Subtracting Part A (12 points) For each problem below, compute the operations using the rules of arithmetic, and indicate whether an overflow occurs assuming all numbers are expressed using a six bit unsigned and six bit two s complement representations. result unsigned error? signed error? 101010 + 11000 11011 + 1010 111000-110110 101000-1011 Part B (6 points) The adder below adds two four bit numbers A and B and produces a four bit result S. Add extra digital logic to support subtraction as well as addition. Label inputs X 3, X 2, X 1, X 0, Y 3, Y 2, Y 1, Y 0, ADD / SUB and outputs Z 3, Z 2, Z 1, Z 0. Part C (6 points) Write two Boolean expressions indicating signed two s complement addition and subtraction overflow using any of the signals labeled in part B that are necessary. These expressions should be true when overflow occurs. addition overflow = subtraction overflow = Part D (4 points) Write two Boolean expressions indicating unsigned addition and subtraction overflow using any of the signals labeled in part B that are necessary. These expressions should be true when overflow occurs. addition overflow = subtraction overflow = 4

Problem 4 (4 parts, 26 points) Registers and Latches Part A (8 points) Implement a transparent latch using only NOR gates, AND gates, and inverters. Label the inputs In and En, and output Out. Do not attempt to employ mixed logic notation. Also complete the truth table. In A 0 A 1 En Out Part B (7 points) Assume the following signals are applied to a transparent latch. Draw the output signal Out. Assume Out is initially zero. Part C (4 points) Consider a register with a selectable write enable (WE) and read enable (RE), implemented as shown below. Describe its behavior by completing the output values. Recall that the CLK signal indicates a full Φ 1 Φ 2 cycle; so the output should be the value at the end of a cycle (with the given inputs). Also indicate when a write and/or a read is being performed. IN WE RE CLK OUT W? R? A 0 0 A 1 0 A 0 1 A 1 1 Part D (7 points) Assume the following signals are applied to a register with write enable. Draw the output signal Out. Draw a vertical line where In is sampled. Assume Out is initially zero. 5