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!

Read this before starting!

Section 001. Read this before starting!

Read this before starting!

Read this before starting!

Read this before starting!

Read this before starting!

Read this before starting!

Read this before starting!

East Tennessee State University Department of Computer and Information Sciences CSCI 4717 Computer Architecture TEST 3 for Fall Semester, 2006

Read this before starting!

East Tennessee State University Department of Computer and Information Sciences CSCI 4717 Computer Architecture TEST 3 for Fall Semester, 2005

Read this before starting!

Section 001. Read this before starting!

Read this before starting!

East Tennessee State University Department of Computer and Information Sciences CSCI 4717 Computer Architecture TEST 2 for Fall Semester, 2007

Section 001. Read this before starting!

Section 002. Read this before starting!

If a b or a c, then a bc If a b and b c, then a c Every positive integer n > 1 can be written uniquely as n = p 1 k1 p 2 k2 p 3 k3 p 4 k4 p s

East Tennessee State University Department of Computer and Information Sciences CSCI 1710/Section 001 Web Design I TEST 1 for Fall Semester, 2000

Section 001 & 002. Read this before starting!

Read this before starting!

Read this before starting!

Read this before starting!

Read this before starting!

At this point in our study of digital circuits, we have two methods for representing combinational logic: schematics and truth tables.

Digital Fundamentals

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

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

Digital Logic Design (3)

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

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

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 270 Midterm Exam

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

ENEL 353: Digital Circuits Midterm Examination

ENEL Digital Circuits Midterm Examination

MODULE 5 - COMBINATIONAL LOGIC

Summary. Boolean Addition

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

Lecture 7 Logic Simplification

Binary Values. CSE 410 Lecture 02

CDS130 Mid-term exam: Sample

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

Student Name: University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science

1. Mark the correct statement(s)

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

Last Name Student Number. Last Name Student Number

Question Total Possible Test Score Total 100

Lecture 2: Number Systems

EE292: Fundamentals of ECE

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions


CS & IT Conversions. Magnitude 10,000 1,

DKT 122/3 DIGITAL SYSTEM 1

Semester Transition Point. EE 109 Unit 11 Binary Arithmetic. Binary Arithmetic ARITHMETIC

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

EE 109 Unit 6 Binary Arithmetic

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

Functional Block: Decoders

LECTURE 4. Logic Design

7/25/2016. Example: Addition of Unsigned Bit Patterns. ECE 120: Introduction to Computing. Adding Two Non-Negative Patterns Can Overflow

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

Logic Design: Part 2

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

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

Learning Objectives: Topic Karnaugh Maps. At the end of this topic you will be able to;

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

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

CS/COE 0447 Example Problems for Exam 2 Spring 2011

CO Computer Architecture and Programming Languages CAPL. Lecture 9

Chapter 2. Boolean Expressions:

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

Philadelphia University Student Name: Student Number:

CS303 LOGIC DESIGN FINAL EXAM

Experiment 3: Logic Simplification

Good Evening! Welcome!

Binary Adders: Half Adders and Full Adders

DIGITAL ARITHMETIC: OPERATIONS AND CIRCUITS

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

Spring 2010 CPE231 Digital Logic Section 1 Quiz 1-A. Convert the following numbers from the given base to the other three bases listed in the table:

IT 201 Digital System Design Module II Notes

Digital Circuits ECS 371

Binary. Hexadecimal BINARY CODED DECIMAL

Number System. Introduction. Decimal Numbers

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

MACHINE LEVEL REPRESENTATION OF DATA

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

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

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

Groups of two-state devices are used to represent data in a computer. In general, we say the states are either: high/low, on/off, 1/0,...

Experiment 4 Boolean Functions Implementation

Logic Design (Part 2) Combinational Logic Circuits (Chapter 3)

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

Written exam for IE1204/5 Digital Design Thursday 29/

Boolean Analysis of Logic Circuits

QUESTION BANK FOR TEST

Microcomputers. Outline. Number Systems and Digital Logic Review

Basic Arithmetic (adding and subtracting)

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 Fall 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. If you perform work on the back of a page in this test, 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: DeMorgan's Theorem: 1. + 0 = 7. = 2. + 1 = 1 8. = 0 3. 0 = 0 9. = 4. 1 = 10. + = 5. + = 11. + = + 6. + = 1 12. ( + )( + C) = + C () = ( + ) ( + ) = ( ) Short-ish nswer (2 points each) 1.) How many combinations of 1's and 0's can a 5-bit number (i.e., 5 binary variables) have? a.) 15 b.) 16 c.) 31 d.) 32 e.) 63 f.) None of the above # of combinations = 2 5 = 32, therefore, the answer is d. 2.) True or False: The expression ( C) + ( C) + ( C) is in correct Sum-of-Products form. Since an inversion sign crosses both and of the last product, this is an invalid S.O.P. Therefore the answer is False. 3.) Circle the function that would first be performed in the following expression. ( + C (D+E) + F) 4.) True or False: The number 1010111100101100011 is a valid CD number. Dividing the number into nibbles gives us: 0101 0111 1001 0110 0011. Note that one leading zero needed to be added because the nibbles must be created from right to left. If you ll look at a table of CD values, you ll see that every value is valid. Not that this is part of the answer, but the converted number is 57963. The answer is True. 5.) True or False: The 8-bit number 10010101 2 represents the same decimal value in unsigned binary as it does in 2's complement. False, the number is a positive number in unsigned binary and a negative number in 2 s comp. 6.) What is the minimum number of bits needed to represent 64 10 in signed magnitude representation? a.) 5 b.) 6 c.) 7 d.) 8 e.) 9 f.) None of the above The largest number that can be represented with n-bits in signed magnitude representation is 2 (n-1) -1. For n=5, this is 2 4-1 = 15. For n=6, this is 2 5-1=31. For n=7, this is 2 6-1=63. For n=8, this is 2 7-1=127. Therefore, at least 8 bits are needed, and the answer is d. 7.) Which of the following is the lowest possible value for a 9-bit 2's complement binary number? 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 2 s complementary number is (2 (n-1) ). For n=9, this is -2 8 = -256. Therefore, the answer is c.

8.) Write the complete truth table for a 2-input NND gate. X 0 0 1 0 1 1 1 0 1 1 1 0 9.) For the truth table to the right, would a Product-of-Sums or a Sum-of-Products expression have fewer terms? Product-of-Sums uses the rows with zeros to create the expression, and therefore, a P.O.S. equation would have 5 terms. Sum-of-Products uses the rows with ones to create the expression, and therefore, an S.O.P. equation would have 3 terms. The answer is S.O.P. C X 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 10.) True or False: The two circuits below are equal. C C False. DeMorgan s Theorem says that an S.O.P. circuit is equivalent to the same circuit with both the ND gates and the single OR gate replaced with NND gates. In the circuit above, only the OR gate has been replaced with a NND gate and therefore the two circuits are not equivalent. 11.) True or False: n overflow has occurred in the 2 s complement addition shown to the right. 10011011 +01110000 00001011 False. n overflow cannot occur if the sign bits of the two numbers being added are different. Medium-ish nswer (5 points each) 12.) Write the boolean expression exactly as it is represented by the circuit below. Do not simplify! ( ) + X 13.) Draw the circuit exactly as it is represented by the oolean expression ( + ) C. X C

14.) Convert 1010111101111000101 2 to hexadecimal. To begin with, create the table of conversion for binary to decimal, hex, or CD. (We ll use it again later.) inary Decimal Hex CD 0000 0 0 0 0001 1 1 1 0010 2 2 2 0011 3 3 3 0100 4 4 4 0101 5 5 5 0110 6 6 6 0111 7 7 7 1000 8 8 8 1001 9 9 9 1010 10 1011 11 1100 12 C 1101 13 D Invalid 1110 14 E 1111 15 F Next, starting from the right side, divide the number into nibbles. Note that a leading zero had to be added. It is identified by the red 0. 0101 0111 1011 1100 0101 Next, using the table we created above, simply convert each of the nibbles to its value from the Hex column. The final hex value is therefore 57C5 16. Nibble Hex 0101 5 0111 7 1011 1100 C 0101 5

15.) Convert the decimal number 96404 to CD. Using the table we created for problem 14, simply convert each of the decimal digits to its binary nibble. Decimal CD 9 1001 6 0110 4 0100 0 0000 4 0100 String them together for the final answer: 1001 0110 0100 0000 0100 CD. 16.) If an 8-bit binary number is used to represent an analog value in the range from 32 to 212, what is the accuracy of the system, i.e., if the number is incremented by one, how much change in the analog range is represented? Max Min 212 32 180 ccuracy = ----------- = ---------- = ----- = 0.706 units/step 2 n -1 2 8-1 255 Note that the final answer could have been left as 180/255. 17.) If an 8-bit binary number is used to represent an analog value in the range from 0 to 100, what does the binary value 01100100 2 represent? First, determine the accuracy. Max Min 100 0 100 ccuracy = ----------- = ---------- = ----- 2 n -1 2 8-1 255 Next figure out how far 01100100 2 is into the range, i.e., convert it to decimal. 01100100 2 = 64 + 32 + 4 = 100 Lastly, multiple the decimal value by the accuracy and then add it to the low value of the range to determine the analog value 01100100 2 represents. nalog value = (accuracy * measurement) + Minimum value 100 10,000 = ----- * 100 + 0 = -------- 255 255

18.) pply DeMorgan's Theorem to distribute the inverse to the individual terms of the following equation. Do not simplify. D C ( + ) = D + C + + ( + ) = D + C + + 19.) If a periodic binary signal has a period of 20 ms, how long must the logic 1 pulse portion of the signal be for the signal to have a duty cycle of 25%? high pulse duration Duty Cycle = --------------------- * 100% period Solving for the high pulse duration gives us: Duty Cycle 25% high pulse duration = ------------- * period = ------ * 20 ms 100% 100% high pulse duration = 0.25 * 20 ms = 5 ms Longer nswers (Points vary per problem) 20.) Determine the Sum-of-Products expression for this truth table. (6 points) First, isolate the rows with 1 s. The rows with ones are: C X 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 0 =0, =0, and C=0 which is the same as =1, =1, and C=1 =0, =1, and C=0 which is the same as =1, =1, and C=1 =0, =1, and C=1 which is the same as =1, =1, and C=1 =1, =0, and C=1 which is the same as =1, =1, and C=1 This each one of the rows then converts to an ND expression with each element that was equal to a 0 inverted so that the final output of the ND is a 1 when that unique pattern occurs. OR all of the NDed expressions together and we get: X = ( C) + ( C) + ( C) + ( C)

21.) Complete the truth table below with the output from the Product-of-Sums equation shown. (6 points) X=(++C) (++C) (++C) C X 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 Place zeros in the rows corresponding to 1 0 1 1 each OR such that the inverted inputs are 1 1 0 0 set to 1 and the non-inverted inputs are set 1 1 1 0 to 0. Fill in the rest of the table with 1 s. 22.) 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 "X". Use your scrap paper to do your work. (2 points per cell) Decimal 2's complement binary Signed magnitude binary Unsigned binary -108 10010100 11101100 X 48 00110000 00110000 00110000 195 X X 11000011 23.) 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.) ( + C)( + D) = + C D nswer: TRUE From rule 12, we know that ( + )( + C) = + C. Substitute for, C for, and D for C and we get ( + C)( + D) = + C D. Therefore, it s true. b.) ( ) + = 1 nswer: TRUE ( ) + = + + DeMorgan s Theorem + + = + 1 Rule 6 + 1 = 1 Rule 2 c.) C + C + C + C = nswer: TRUE C + C + C + C = ( C + C + C + C) ( C + C + C + C) = ( (C + C) + (C + C)) ( (C + C) + (C + C)) = ( 1 + 1) = ( + ) = 1 =