CPE129_hw14_soln

CPE129_hw14_soln - binary numbers in 2’s Complement(RC...

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

View Full Document Right Arrow Icon
CPE 129 Homework 14 Solutions W. Pilkington 1. Determine the 2’s complement of each of the following binary numbers (find the opposite-signed number); and then express the value of the result in decimal (base 10). a. ( 1 0 1 0 1 ) 2 RC b. ( 0 1 0 1 1 ) 2 RC c. ( 1 0 1 0 0 1 ) 2 RC d. ( 0 0 1 1 1 0) 2 RC e. ( 1 1 0 0 1 1 0 1 ) 2 RC a) (10101) 2RC => 1+ (01010 ) 2DRC = (01011) 2RC = (+ 11) 10 b) (01011) 2RC => 1+ (10100) 2DRC = (10101) 2RC = (- 11) 10 c) (101001) 2RC => 1+ (010110) 2DRC = (010111) 2RC = (+ 23) 10 d) (001110) 2RC => 1+ (110001) 2DRC = (110010) 2RC = (- 14) 10 e) (1101101) 2RC => 1+ (00110010) 2DRC = (00110011) 2RC = (+ 51) 10
Background image of page 1

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

View Full DocumentRight Arrow Icon
CPE 129 Homework 14 Solutions W. Pilkington 2. Complete the following arithmetic addition operations using signed
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: binary numbers in 2’s Complement (RC) form. a. 6 + (-3) b. 95 + 27 c. 101 + (-46) Using 2's Complement (RC) a) +6 (0000 0110) 2 => (0000 0110) 2RC -3-(0000 0011) 2 => 1+ (1111 1100) 2DRC => (1111 1101) 2RC + 3 1 (0000 0011) 2RC b) +95 (0101 1111) 2 => (0101 1111) 2RC +27 (0001 1011) 2 => (0001 1011) 2RC +122 (0111 1010) 2RC c) +101 (0110 0101) 2 => (0110 0101) 2RC - 46-(0010 1110) 2 => 1+ (1101 0001) 2DRC => (1101 0010) 2RC + 5 5 1 (0011 0111) 2RC (NOTE: No solution will be posted for Parts 3 & 4 of this Assignment, as you will be implementing and testing your designs in CPE 169 Experiment #7)...
View Full Document

This note was uploaded on 03/15/2009 for the course CPE 129 taught by Professor Mealy during the Spring '07 term at Cal Poly.

Page1 / 2

CPE129_hw14_soln - binary numbers in 2’s Complement(RC...

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