CEG2136 F2008 Midterm Solutions
Two 6bit register contain two numbers X = 01010 and Y = 10101 (expressed in 2’s complement representation). Calculate the sum (S = X+Y) and the difference (D=XY) of these numbers using additions and 2’s complementation only. Since both S and D have to be represented with 6 bits, indicate if overflow occurs, and explain how a circuit can detect these situations. Convert in decimal and write each intermediate and final result, to check the correctness of your assertions.
Written for
- Institution
-
University Of Hawaii - Manoa
- Course
-
Financial Forecasting
Document information
- Uploaded on
- October 4, 2022
- Number of pages
- 12
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers