2-M1-soln

2-M1-soln - Midterm 1 Solutions ECE 25, Fall 2009 Tuesday...

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

View Full Document Right Arrow Icon
Midterm 1 Solutions ECE 25, Fall 2009 Tuesday October 27 Name: PID: Problem Points Score 1 15 2 10 3 10 4 10 Total 45 a) For each binary vector below, what does it represent as an Octal number and a Hexadecimal number? Binary Octal Hexadecimal 10110011 263 B3 01111100 174 7C 11111111 377 FF b) Given X and Y below that are 5-bit numbers in 2’s complement form, fill in the table of what S should be bit-vector form ( even if the result causes an overflow ). Indicate whether or not there is an overflow and what S is as a number (if S resu ltsinanoverflow ,thenjustputan”x” under the S column). (First two rows provide examples.) X Y S = X Y S as a x 4 x 3 x 2 x 1 x 0 y 4 y 3 y 2 y 1 y 0 s 4 s 3 s 2 s 1 s 0 Overflow? number 11101 00011 11010 no -6 00001 00111 11010 no -6 01000 10010 10110 yes x 10111 10111 00000 no 0 10111 01011 01100 yes x 01100 00101 00111 no 7 10101 10111 11110 no -2 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Given following logic equations, minimize the number of literals, e.g. by using common subexpres- sions, Boolean rules, etc. You can introduce new immediate equations for common sub-expressions if it helps to reduce the number of literals. Put a box around your final answer, and indicate the
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/09/2012 for the course CSE 140 taught by Professor Rosing during the Spring '06 term at UCSD.

Page1 / 4

2-M1-soln - Midterm 1 Solutions ECE 25, Fall 2009 Tuesday...

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

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