F09_ECE230_Homework__2_Solutions

F09_ECE230_Homework__2_Solutions - 28 26=54 d 110011...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE230 Homework #2 (Due on 9/23/2009 before class) 1. (10 points) Convert the following unsigned binary integers into decimal: a. 11111 b. 1000000 c. 1001101101 d. 101111 e. 10101010 Answer: a. 11111=31 b. 1000000=64 c. 1001101101=621 d. 101111=47 e. 10101010=170 2. (10 points) Compute the sum of the following pairs of 6-bit unsigned integers: a. 000011+001100 b. 010100+101101 c. 011100+011010 d. 110011+001110 e. 001011+100111 Answer: a. 000011+001100=001111 3+5=12 b. 010100+101101=000001 20+45=65 c. 011100+011010=110110
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 28+26=54 d. 110011+001110=000001 51+14=65 overflow e. 001011+100111=110010 11+39=50 3. (10 points) The following decimal integers are to be stored in a 6-bit two’s complement format. Show how they are stored: a. +25 b. 0 c.-15 d.-45 e.-16 Answer: a. 011001 b. 000000 c. (i) 15=001111; (ii) For -16, complement each bit: 110000; (iii) Add 1: 110001 d. 45= 101101, therefore -45 is overflow. e. (i) 16=010000; (ii) For -16, complement each bit: 101111; (iii) Add 1: 110000....
View Full Document

This note was uploaded on 11/04/2009 for the course ECE 230 taught by Professor Ren during the Spring '08 term at Michigan State University.

Ask a homework question - tutors are online