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

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

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

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

CS101 Lecture 04: Binary Arithmetic

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

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

Number Systems. Both numbers are positive

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

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

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

Floating Point Arithmetic

UNIVERSITY OF WISCONSIN MADISON

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

Numeric Encodings Prof. James L. Frankel Harvard University

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

Chapter Three. Digital Components

COMP2611: Computer Organization. Data Representation

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

CHW 261: Logic Design

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

MACHINE LEVEL REPRESENTATION OF DATA

Lecture 2: Number Systems

CMPSCI 145 MIDTERM #2 Solution Key SPRING 2018 April 13, 2018 Professor William T. Verts

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

CHAPTER V NUMBER SYSTEMS AND ARITHMETIC

Inf2C - Computer Systems Lecture 2 Data Representation

9/3/2015. Data Representation II. 2.4 Signed Integer Representation. 2.4 Signed Integer Representation

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

Binary Values. CSE 410 Lecture 02

ECE232: Hardware Organization and Design

Introduction to Computer Science. Homework 1

Arab Open University. Computer Organization and Architecture - T103

Digital Arithmetic. Digital Arithmetic: Operations and Circuits Dr. Farahmand

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

Chapter 4. Combinational Logic

Time: 8:30-10:00 pm (Arrive at 8:15 pm) Location What to bring:

Introduction to Computers and Programming. Numeric Values

ECE 30 Introduction to Computer Engineering

Chapter Three. Arithmetic

Chapter 3: Arithmetic for Computers

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

UNIT 7A Data Representation: Numbers and Text. Digital Data

Digital Fundamentals

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

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


1. Mark the correct statement(s)

15213 Recitation 2: Floating Point

that system. weighted value associated with it. numbers. a number. the absence of a signal. MECH 1500 Quiz 2 Review Name: Class: Date:

Binary. Hexadecimal BINARY CODED DECIMAL

10.1. Unit 10. Signed Representation Systems Binary Arithmetic

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.

Binary Representations and Arithmetic

Chapter 2. Data Representation in Computer Systems

Description Hex M E V smallest value > largest denormalized negative infinity number with hex representation 3BB0 ---

Experimental Methods I

Time (self-scheduled): Location Schedule Your Exam: What to bring:

Signed umbers. Sign/Magnitude otation

Computer Organisation CS303

Chapter 4. Operations on Data

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

Chapter 2 Bits, Data Types, and Operations

Read this before starting!

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

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-278: Digital Logic Design Fall Notes - Unit 4. hundreds.

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 4. hundreds.

Number System. Introduction. Decimal Numbers

Binary Adders: Half Adders and Full Adders

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Real Numbers finite subset real numbers floating point numbers Scientific Notation fixed point numbers

CS & IT Conversions. Magnitude 10,000 1,

A Level Computing. Contents. For the Exam:

ENEL 353: Digital Circuits Midterm Examination

Solutions - Homework 2 (Due date: October 4 5:30 pm) Presentation and clarity are very important! Show your procedure!

Binary Addition & Subtraction. Unsigned and Sign & Magnitude numbers

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

Decoders Wilfrid Laurier University

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

Under the Hood: Data Representation. Computer Science 104 Lecture 2

EECS 270 Midterm Exam

Unit 2: Data Storage CS 101, Fall 2018

The ALU consists of combinational logic. Processes all data in the CPU. ALL von Neuman machines have an ALU loop.

Digital Logic. The Binary System is a way of writing numbers using only the digits 0 and 1. This is the method used by the (digital) computer.

Data Representation 1

Number Systems. Decimal numbers. Binary numbers. Chapter 1 <1> 8's column. 1000's column. 2's column. 4's column

Chapter 2 Bits, Data Types, and Operations

COMP Overview of Tutorial #2

Objectives. Connecting with Computer Science 2

Read this before starting!

Introduction to Computer Science-103. Midterm

M1 Computers and Data

Integers and Floating Point

BINARY SYSTEM. Binary system is used in digital systems because it is:

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

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University.

CPS 104 Computer Organization and Programming Lecture-2 : Data representations,

Microcomputers. Outline. Number Systems and Digital Logic Review

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

CS61c Midterm Review (fa06) Number representation and Floating points From your friendly reader

EE292: Fundamentals of ECE

Transcription:

Problem 1 (4 parts, 21 points) Encoders and Pass Gates Part A (8 points) Suppose the circuit below has the following input priority: I 1 > I 3 > I 0 > I 2. 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 0 0 0 0 X X 0 X 0 1 1 0 0 X X 1 X 1 0 1 0 1 0 0 1 1 0 1 X 0 X 1 1 1 O 1 = I 1 (I 0 +I 3 ) Part B (3 points) Consider a priority encoder with the following behavior: In 2 In 1 In 0 Valid Out 1 Out 0 0 0 0 0 x x 0 0 1 1 0 0 0 1 0 1 0 1 0 1 1 1 0 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 0 1 0 1 1 1 1 1 0 1 List the inputs (In 0, In 1, and In 2 ) in decreasing priority. In 1 > In 0 > In 2 highest priority 2nd highest priority lowest priority Part C (6 points) Implement a 2-input XOR gate with pass gates and inverters only. (Hint: remember that a 2-input XOR is a selective inverter.) Part D (4 points) Does your implementation of an XOR in Part C require fewer transistors than the gate's standard switch-level implementation? Circle one: Yes Support your answer by giving the transistor count for each: # transistors in Part C implementation: 8 # transistors in switch-level XOR implementation: 12 1

Problem 2 (3 parts, 24 points) Part A (10 points) Convert the following notations: binary notation decimal notation 0101 1101.1 93.5 110100.01 52.25 110 0110.101 102.625 hexadecimal notation octal notation 0x12B.54 453.25 0xB357.6C 131527.33 Number Systems Part B (8 points) For the 26 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 (26 bits). (0 bits) 2 26 = 64M 1 signed fixed-point (19 bits). (7 bits) 2 18 = 256K 1/128 signed integer (26 bits). (0 bits) 2 25 = 32M 1 signed fixed-point (23 bits). (3 bits) 2 22 = 4M 1/8 Part C (6 points) A 20 bit floating point representation has a 12 bit mantissa field, a 7 bit exponent field, and one sign bit. What is the largest value that can be represented (closest to infinity)? 2 63 What is the smallest value that can be represented (closest to zero)? 2-64 How many decimal significant figures are supported? 3 2

Problem 3 (3 parts, 30 points) Computation 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. 100101 + 101011 10101 + 101100 110111-011001 11100-10100 result 010000 000001 011110 01000 unsigned error? signed error? Yes Yes No No Yes No Yes No Part B (8 points) For each bit string below, what is the decimal number it represents if it uses a 5-bit unsigned representation and if it uses a 5-bit two's complement representation? Bit string Decimal (if unsigned representation) Decimal (if 2's complement signed representation) 01101 13 +13 11110 30-2 1111.1 15.5-0.5 011.11 3.75 +3.75 Part C (10 points) Consider the circuit below. Complete the truth table by filling in the empty boxes. (Note that there may be multiple possible inputs that can result in a given output; you need to show only one.) Finally, state what condition this circuit tests on the two input words A and B (which are each 3-bit words: A 2 A 1 A 0 and B 2 B 1 B 0 ). A 2 A 1 A 0 B 2 B 1 B 0 Out 1 1 0 1 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 0 1 0 0 1 1 1 0 (any B except 100) This circuit's Out signal is high if A equals B. 3

Problem 4 (4 parts, 25 points) Decoding Suppose you are implementing a seven segment display as shown below. Input decimal numbers are represented as unsigned binary numbers DCBA (e.g., 0101 = 5, which is displayed by lighting segments a, c, d, f, and g). In this problem, unlike the Homework 2 problem, assume that for input decimal numbers greater than 9, the 7-segment display is blank (no segments are lit up). Part A (4 points) Complete the BCD to 7-segment decoder truth table below by filling in the Decoder Output column for a. Binary Inputs Decoder Outputs 7-Segment Display Outputs D C B A a b c d e f g 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 1 0 1 1 0 0 0 0 1 0 0 1 0 1 1 0 1 1 0 1 2 0 0 1 1 1 1 1 1 0 0 1 3 0 1 0 0 0 1 1 0 0 1 1 4 0 1 0 1 1 0 1 1 0 1 1 5 0 1 1 0 1 0 1 1 1 1 1 6 0 1 1 1 1 1 1 0 0 0 0 7 1 0 0 0 1 1 1 1 1 1 1 8 1 0 0 1 1 1 1 1 0 1 1 9 1 0 1 x 0 0 0 0 0 0 0 no segments turned on 1 1 x x 0 0 0 0 0 0 0 no segments turned on Part B (6 points) Write the standard sum of products form of Decoder Output e. e = A B C D+ A B C D+ A B C D+ A B C D Part C (6 points) For which decimal numbers is the following expression true? Assume each decimal number is represented as an unsigned binary number DCBA. W =D+ B C Decimal numbers: 0, 1, 2,, 9 4

Part D (9 points) Implement Decoder Output e using a single 4-to-16 decoder (with an enable) and a single OR gate. The OR gate may have any number of inputs that you need. Label all input and output signals on the decoder. Assume you are given the inputs A, B, C, D, and the input W =D+ B C (which is provided by another circuit that you do not need to implement). 5