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

Similar documents
Read this before starting!

Section 001. Read this before starting!

Read this before starting!

Read this before starting!

Read this before starting!

Total score: /100 points

Total score: /100 points

Why digital? Overview. Number Systems. Binary to Decimal conversion

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

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

ECE/Comp Sci 352 Digital System Fundamentals Quiz # 1 Solutions

Logic Gates and Boolean Algebra

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

University of Minnesota Department of Electrical and Computer Engineering

S C F F F T T F T T S C B F F F F F T F T F F T T T F F T F T T T F T T T

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

UNIVERSITI TENAGA NASIONAL. College of Information Technology

211: Computer Architecture Summer 2016

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

ENGR 303 Introduction to Logic Design Lecture 3. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

Students should be able to (a) produce a truth table from a given logic diagram

EE 110 Practice Problems for Exam 1: Solutions, Fall 2008

10/14/2009. Reading: Hambley Chapters

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

Theorem/Law/Axioms Over (.) Over (+)

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

Possible logic functions of two variables

MA EXAM 2 INSTRUCTIONS VERSION 01 March 9, Section # and recitation time

for Digital Systems Simplification of logic functions Tajana Simunic Rosing Sources: TSR, Katz, Boriello & Vahid

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Numbers and Arithmetic

Cs302 Quiz for MID TERM Exam Solved

MA162 EXAM III SPRING 2017 APRIL 11, 2017 TEST NUMBER 01 INSTRUCTIONS:

University of Florida EEL 3701 Fall 1996 Dr. Eric M. Schwartz

Part 5: Digital Circuits

ENEL Digital Circuits Final Examination

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

BOOLEAN ALGEBRA INVESTIGATIONS

Boole Algebra and Logic Series

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

ECE20B Final Exam, 200 Point Exam Closed Book, Closed Notes, Calculators Not Allowed June 12th, Name

SAMPLE EXAMINATION PAPER

STUDENT NAME: STUDENT SIGNATURE: STUDENT ID NUMBER: SECTION NUMBER RECITATION INSTRUCTOR:

CS1800 Discrete Structures Fall 2017 October, CS1800 Discrete Structures Midterm Version A

Chapter 1 CSCI

MA EXAM 1 INSTRUCTIONS VERSION 01 September 13, Section # and recitation time

Hakim Weatherspoon CS 3410 Computer Science Cornell University

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

MA EXAM 3 INSTRUCTIONS VERSION 01 April 14, Section # and recitation time

CPSC 121 Midterm 1 Tuesday, October 11th, 2011

Without fully opening the exam, check that you have pages 1 through 10.

CHAPTER 3 LOGIC GATES & BOOLEAN ALGEBRA

Digital Design 2. Logic Gates and Boolean Algebra

The University of Michigan Department of Electrical Engineering and Computer Science. EECS 270 Fall Practice Final Exam.

Physics 1252 Exam #3E (Make-Up)

CS1800 Discrete Structures Final Version A

HKUST. MATH1013 Calculus IB. Directions:

Spring 2018 Exam 2 MARK BOX HAND IN PART NAME: PIN: INSTRUCTIONS

SAMPLE ANSWERS MARKER COPY

Fundamentals of Digital Design

Philadelphia University Student Name: Student Number:

CHAPTER 2 BOOLEAN ALGEBRA

Digital Logic & Computer Design CS Professor Dan Moldovan Spring 2010

EE 109 Final Don t Make the Same Mistake

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Page Points Score Total: 100

Lecture 2 Review on Digital Logic (Part 1)

COSC3330 Computer Architecture Lecture 2. Combinational Logic

Math 2114 Common Final Exam May 13, 2015 Form A

Practice Final Exam Solutions

ESSEX COUNTY COLLEGE Mathematics and Physics Division PHY 101 College Physics I Course Outline

This form sometimes used in logic circuit, example:

ENGIN 112 Intro to Electrical and Computer Engineering

Lecture 3. Title goes here 1. level Networks. Boolean Algebra and Multi-level. level. level. level. level

EECS Variable Logic Functions

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

Lecture 1. Notes. Notes. Notes. Introduction. Introduction digital logic February Bern University of Applied Sciences

Physics 1252 Exam #2A

Physics 1212 Exam #2B

Logic Design Combinational Circuits. Digital Computer Design

Numbers and Arithmetic

CSCI 220: Computer Architecture-I Instructor: Pranava K. Jha. BCD Codes

Module 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops

MA EXAM 3 INSTRUCTIONS VERSION 01 April 17, Section # and recitation time

Definition 2. Conjunction of p and q

Chapter 7 Combinational Logic Networks

UNIT 5 KARNAUGH MAPS Spring 2011

Computer Science Final Examination Friday December 14 th 2001

Fall 2016 MATH*1160 Final Exam

ESSEX COUNTY COLLEGE Mathematics and Physics Division PHY 203 General Physics III Course Outline

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

CprE 281: Digital Logic

Combinational Logic. By : Ali Mustafa

Combinational Logic. Jee-Hwan Ryu. School of Mechanical Engineering Korea University of Technology and Education

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Department of Electrical Engineering and Computer Sciences University of California, Berkeley. Final Exam: Friday, August 10, 2012

MA EXAM 2 INSTRUCTIONS VERSION 01 March 10, Section # and recitation time

MC9211 Computer Organization

Transcription:

Points missed: Student's Name: Total score: /100 points East Tennessee State University Department of Computer and Information Sciences CSCI 2150 (Tarnoff) Computer Organization TEST 1 for Spring Semester, 2003 Section 001 Read this before starting! The total possible score for this test is 100 points. This test is closed book and closed notes You may use one sheet of scrap paper that you will turn in with your test. You may NOT use a calculator ll answers must have a box drawn around them. This is to aid the grader (who might not be me!) Failure to do so might result in no credit for answer. Example: 1 point will be deducted per answer for missing or incorrect units when required. No assumptions will be made for hexadecimal versus decimal, so you should always include the base in your answer. ( subscript is fine) If you perform work on the back of a page or on your scrap paper, indicate that you have done so in case the need arises for partial credit to be determined. Fine print cademic Misconduct: Section 5.7 "cademic Misconduct" of the East Tennessee State University Faculty Handbook, June 1, 2001: "cademic misconduct will be subject to disciplinary action. ny act of dishonesty in academic work constitutes academic misconduct. This includes plagiarism, the changing of falsifying of any academic documents or materials, cheating, and the giving or receiving of unauthorized aid in tests, examinations, or other assigned school work. Penalties for academic misconduct will vary with the seriousness of the offense and may include, but are not limited to: a grade of 'F' on the work in question, a grade of 'F' of the course, reprimand, probation, suspension, and expulsion. For a second academic offense the penalty is permanent expulsion."

asic Rules of oolean lgebra: 1. + 0 = 7. = 2. + 1 = 1 8. = 0 3. 0 = 0 9. = 4. 1 = 10. + = 5. + = 11. + = + DeMorgan's Theorem: 6. + = 1 12. ( + )( + C) = + C () = ( + ) ( + ) = ( ) Short-ish nswer (2 points each) 1) How many possible combinations of ones and zeros do 5 boolean variables have? a.) 4 b.) 8 c.) 16 d.) 32 e.) 48 f.) None of the above Each variable has two possible values, 0 or 1, and therefore, the number of possible combinations is 2x2x2x2x2 = 2 5 = 32. The answer is d. 2) Write the complete truth table for a 2-input NND gate using the table to the right. 0 0 1 0 1 1 1 0 1 1 1 0 3) What is the largest possible value that can be represented with a 6 bit unsigned binary number? a.) 32 b.) 31 c.) 127 d.) 64 e.) 63 f.) 255 g.) None of the above The largest possible value that can be represented with an n-bit unsigned binary number is 2 n -1. With n=6, the answer is 2 6-1 = 64-1 = 63. The answer is e. 4) What is the lowest possible value for a 10-bit binary number in 2 s complement representation? a.) 0 b.) -512 c.) -256 d.) -511 e.) -255 f.) -127 g.) None of the above The lowest possible value for an n-bit binary number in 2 s complement representation is the most negative. This value is (2 (n-1) ). Therefore, with n=10, the answer is 2 9 = -512 which is b. 5) What is the minimum number of bits needed to represent 256 10 in signed magnitude representation? a.) 6 b.) 7 c.) 8 d.) 9 e.) 10 f.) None of the above Signed magnitude representation looses a bit to the sign bit, which in the case of a positive number must be 0. Therefore, the largest positive value in an n-bit signed magnitude is the same as the largest value in an (n-1) bit unsigned binary value which would be 2 (n-1) -1. For n=8, 2 (8-1) -1 = 128-1 = 127 which is too small. For n=9, 2 (9-1) -1 = 256-1=255 which is also too small. For n=10, 2 (10-1) -1 = 512-1 = 511 which is big enough. Therefore, the answer is e.

6) True or False: The expression + ( C) + ( C) is in correct Sum-of-Products form. True. The only thing that would cause a problem here is if an inverse spanned more than one NDed term 7) n analogy was made in class between boolean algebra and mathematical algebra. Which boolean operation did not have an equivalent in mathematical algebra? (Don t consider OR.) The boolean inverse did not have an analogous mathematical expression. 8) True or False: The number 111010100000100001 is a valid CD number. Dividing the number into nibbles gives us: 0011 1010 1000 0010 0001. Note that two leading zeros needed to be added because the nibbles must be created from right to left. Since the nibble 1010 is not a valid CD number, the original number is not CD. The answer is False. 9) In the boolean expression below, circle the first operation to be performed. Do not simplify! + C(E + D) 10) How can you tell that an overflow in binary addition has occurred resulting in an incorrect sum? If the sign of both of the numbers being added match, and the result has a different sign, there s been an overflow. I.e., if the numbers being added are both positive and the result is negative or if the numbers being added are both negative and the result is positive, then there s been an overflow. 11) In order to determine whether 10010110 is a negative number, you must be told what representation the number is in (e.g., 2's complement) and what else? You must also know how many bits the number is being stored as. If it is more than 8 bits, then leading zeros would change it to a positive number. 12) Shifting all the bits of a binary value three positions to the left is equivalent to what mathematical operation. e as specific as you can. Multiplication by 8. Left shifts perform multiplication by powers of two while right shifts perform division. 13) What is the purpose behind the use of inary Coded Decimal (CD)? quick representation of numbers that are not used for mathematical purposes such as phone numbers or a student id.

14) True or False: The two circuits to the right are equivalent. DeMorgan s Theorem says that ( ) = ( + ) Invert both sides and we get ( ) = ( + ) Therefore the answer is True. Medium-ish nswer (5 points each) 15) Determine the Sum-of-Products expression for the truth table to the right. Do not simplify! First, note that my expression will use a ^ before a term to indicate an inverted value. This means that the second row (=0, =0, C=1) term is (^ ^ C). The fifth row s term (=1, =0, C=0) is ( ^ ^C). The sixth row s term (=1, =0, C=1) is ( ^ C). The eighth row s term (=1, =1, C=1) is ( C). Therefore, the S.O.P expression is: = (^ ^ C) + ( ^ ^C) + ( ^ C) + ( C) C 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1 16) Write the boolean expression exactly as it is represented by the circuit below. Do not simplify! = (^ ) + ^ 17) Draw the circuit exactly as it is represented by the oolean expression + C. C 18) Prove + =. e sure to add enough detail to show that you understand the proof. y truth table, notice that the last column equals the column for every row. + (or with 2 nd column) 0 0 0 0 + 0 = 0 0 1 0 0 + 0 = 0 1 0 0 1 + 0 = 1 1 1 1 1 + 1 = 1

19) Convert 110110010100110110 2 to hexadecimal. First, divide value into nibbles starting from the right side and adding leading zeros to beginning if needed. 0011 0110 0101 0011 0110. Next, convert each nibble to its hex value: 0011=3, 0110=6, 0101=5, 0011=3, and 0110=6. nswer: 36536 16 20) Complete the truth table below with the output from the Product-of-Sums equation shown. C (++C) (++C) (++C) 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 1 5 ms 21) What is the duty cycle of this periodic signal? Duty cycle = (5ms/10ms)x100% = 50% 10 ms 22) What is the frequency of the signal from problem 20? (Hint: 1 ms = 1 x 10-3 seconds) Do not bother to calculate the final decimal value. Just put the values into the proper equation. Frequency = 1/period = 1/(1x10-3 ) = 1x10 3 = 1 khz 23) Use DeMorgan's Theorem to distribute inverse to individual terms. Do not simplify! (6 points) + C + + C + = ( ) C = ( + ) C Longer nswers (Points vary per problem) 24) Fill in the blank cells of the table below with the correct numeric format. For cells representing binary values, only 8-bit values are allowed! If a value for a cell is invalid or cannot be represented in that format, write "". Use your scrap paper to do your work. (2 points per cell) Decimal 2's complement binary Signed magnitude binary Unsigned binary 83 01010011 01010011 01010011-48 11010000 10110000 (no negatives allowed) -66 10111110 11000010 (no negatives allowed)

25) Mark each equation as true or false depending on whether the right and left sides of the equal sign are equivalent. (3 points each) a.) ( + ) = nswer: TRUE + + + 0 + 0 pply distributive law pply associative law nything and-ed with itself is zero nything and-ed with zero is zero nything or-ed with zero is itself pply associative law b.) (( + ( )) = 1 nswer: FLSE ( ) ( ) ( ) ( ) pply DeMorgan s Theorem The inverse of an inverse is the original value 0 nything and-ed with its inverse is zero c.) ( + )( + ) = 1 nswer: FLSE ( + ) 1 nything or-ed with its inverse is one ( + ) nything and-ed with one is itself