Assignment06Fall2010Solution

Assignment06Fall2010Solution - 525.412 Computer...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
525.412 Computer Architecture Assignment 6 Solutions 6.8 Perform the following 6-bit additions assuming the values are unsigned, 1’s complement, 2’s complement, and excess 31. In each instance report overFow if it occurs. a. 101 101 110 100 b. 011 110 101 011 c. 111 100 011 101 d. 101 010 110 111 e. 011 100 100 010 f. 110 101 110 010 g. 110 001 011 011 h. 101 101 110 111 Solution Unsigned We can use a binary adder to get the answer. Only values from 0 to 2 6 - 1 = 63 can ±t in the six bits available. A carry out of bit 5 indicates an overFow. a. 101 101 110 100 1 100 001 45 + 52 = 33 OverFow b. 011 110 101 011 1 001 001 30 + 43 = 9 OverFow c. 111 100 011 101 1 011 001 60 + 29 = 25 OverFow d. 101 010 110 111 1 100 001 42 + 55 = 33 OverFow e. 011 100 100 010 0 111 110 28 + 34 = 62 f. 110 101 110 010 1 100 111 53 + 50 = 39 OverFow g. 110 001 011 011 1 001 100 49 + 27 = 12 OverFow h. 101 101 110 111 1 100 100 45 + 55 = 36 OverFow 1’s complement We can use a binary adder to get the answer. If there is a
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/25/2010 for the course ECE 525.412 taught by Professor Charlesb.cameron during the Spring '10 term at Johns Hopkins.

Page1 / 3

Assignment06Fall2010Solution - 525.412 Computer...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online