ee352_hw2_sol

ee352_hw2_sol - EE 352 Homework 2 Spring '07 Redekopp Name:...

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

View Full Document Right Arrow Icon
EE 352 Homework 2 Spring ’0 7 ● Redekopp Name: ___________________________________________ Due: Thurs. Jan. 31 st in class Score: ________ Note: Attach all work to receive full credit Arithmetic Operations 1.) Perform the following addition and subtracti on problems assuming 2’s complement numbers. State whether overflow does or does not occur for each problem. Justify your answer for why overflow does or does not occur. (You can easily check your work by converting to decimal.) a.) 1010 0110 b.) 0111 1001 c.) 0110 1111 d.) 0010 0001 +1101 1011 +1010 1110 +1100 1100 +0111 1001 1 1000 0001 1 0010 0111 1 0011 1011 1001 1010 n+n=n c out =1,c in =1 No Overflow p+n=n c out =1,c in =1 No Overflow p+n=p c out =1,c in =1 No Overflow p+p=n c out =0,c in =1 Overflow e.) 1000 0010 f.) 1101 0100 g.) 0111 0100 h.) 0101 1001 -1010 1111 -0011 1110 -0101 1011 -1010 0101 || || || || 1000 0010 1101 0100 0111 0100 0101 1001 +0101 0000 +1100 0001 +1010 0100 +0101 1010 + 1 + 1 + 1 + 1 1101 0011 1 1001 0110
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.

Page1 / 3

ee352_hw2_sol - EE 352 Homework 2 Spring '07 Redekopp Name:...

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