PROBLEM 4 (34 PTS) a) Perform the following additions and subtractions of the following unsigned integers....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
PROBLEM 4 (34 PTS) a) Perform the following additions and subtractions of the following unsigned integers. Use the fewest number of bits n to represent both operators. Indicate every carry (or borrow) from co to Cn (or bo to bn). For the addition, determine whether there is an overflow. For the subtraction, determine whether we need to keep borrowing from a higher bit. (8 pts) Example (n=8): 54+ 210 Overflow ✓221117 76 + 175 I=B C₂=1 i. ii. C₂=1 0 0 1 1 0 1 1 0 + 540x36= 210 0xD2 = 1 1 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0=¹ Co=0 77 - 194 Borrow out! 77= 0x4D = 194 0xC2 = ✓93 128 130 43 bg=1 by=0 87 - 62 ✓ -127 - 66 b₂=0 b) We need to perform the following operations, where numbers are represented in 2's complement (2C): (20 pts) ✓43 - 130 ✓156 +359 ✓ 126-91 For each case: ✓ Determine the minimum number of bits required to represent both summands. You might need to sign-extend one of the summands, since for proper summation, both summands must have the same number of bits. ✓ Perform the signed (2C) binary addition. The result must have the same number of bits as the summands. ✓ Determine whether there is overflow by: 0 1 0 0 1 1 0 1 - 1 1 0 0 0 0 1 0 1000 101 1 Using Cn Cn-1 (carries). Performing the operation in the decimal system and checking whether the result is within the allowed range for n bits, where n is the minimum number of bits for the summands. ✓ If we want to avoid overflow, what is the minimum number of bits required to represent both the summands and the result? c) Get the multiplication results of the following numbers that are represented in 2's complement arithmetic with 4 bits. (6 pts) ✓0101x0101, 1011x0111, 1010x1110. PROBLEM 4 (34 PTS) a) Perform the following additions and subtractions of the following unsigned integers. Use the fewest number of bits n to represent both operators. Indicate every carry (or borrow) from co to Cn (or bo to bn). For the addition, determine whether there is an overflow. For the subtraction, determine whether we need to keep borrowing from a higher bit. (8 pts) Example (n=8): 54+ 210 Overflow ✓221117 76 + 175 I=B C₂=1 i. ii. C₂=1 0 0 1 1 0 1 1 0 + 540x36= 210 0xD2 = 1 1 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0=¹ Co=0 77 - 194 Borrow out! 77= 0x4D = 194 0xC2 = ✓93 128 130 43 bg=1 by=0 87 - 62 ✓ -127 - 66 b₂=0 b) We need to perform the following operations, where numbers are represented in 2's complement (2C): (20 pts) ✓43 - 130 ✓156 +359 ✓ 126-91 For each case: ✓ Determine the minimum number of bits required to represent both summands. You might need to sign-extend one of the summands, since for proper summation, both summands must have the same number of bits. ✓ Perform the signed (2C) binary addition. The result must have the same number of bits as the summands. ✓ Determine whether there is overflow by: 0 1 0 0 1 1 0 1 - 1 1 0 0 0 0 1 0 1000 101 1 Using Cn Cn-1 (carries). Performing the operation in the decimal system and checking whether the result is within the allowed range for n bits, where n is the minimum number of bits for the summands. ✓ If we want to avoid overflow, what is the minimum number of bits required to represent both the summands and the result? c) Get the multiplication results of the following numbers that are represented in 2's complement arithmetic with 4 bits. (6 pts) ✓0101x0101, 1011x0111, 1010x1110.
Expert Answer:
Answer rating: 100% (QA)
the bit size is is always important with twos complement since you must be able to tell where the si... View the full answer
Related Book For
Fundamentals of Digital Logic and Microcontrollers
ISBN: 978-1118855799
6th edition
Authors: M. Rafiquzzaman
Posted Date:
Students also viewed these programming questions
-
1. Zara, who owns a sewing kit business, had an outstanding account receivable balance of $30,000 for one of her biggest customers in 20x8. In August of 20x9, the client filed for bankruptcy, after...
-
The article The Ames Salmonell/ Microsome Mutagenicity Assay: Issues of Inference and Validation [ Journal of American Statistical Association (1989) 84: 651 661] discusses the importance of...
-
The data in the table come from a General Social Survey. The top row is the number of children reported for the respondents. The respondents also reported their level of happiness; Very H means Very...
-
How many of these lines have a compiler error? A. 0 B. 1 C. 2 D. 3 E. 4 F. 5 20: var list List.of ('a', 'c', 'e'); 21: Char letter1 = list.get(0); 22: char letter2 = list.get(0); 23: int letter3 =...
-
Figure P31.20 shows a top view of a bar that can slide without friction. The resistor is 6.00 and a 2.50-T magnetic field is directed perpendicularly downward, into the paper. Let = 1.20 m. (a)...
-
A binary system of species 1 and 2 consists of vapor and liquid phases in equilibrium at temperature T for which In y1 = 1.8x22 In y2 = 1.821. P1sat = 1.24 bar P2sat = 0.89 bar. Assuming the...
-
The following actual statement of financial position was prepared for Aero Supplies Ltd as at 31 March 2025. At 31 March you are also provided with the following information. 1. Sales forecasts...
-
Jocassee Furniture Manufacturing, Inc., has a division in the United States that produces and sells furniture for discount furniture stores. One type of dining room set is made in the International...
-
3. A Channel section is connected to a 10mm gusset plate with 20mm- diameter bolts as shown in the figure. The connecting member is subjected to dead load and live load only. The pitch distance,...
-
Electro-Phi Inc. (the "Company") is a utility provider that sells electricity to the public. The Company produces the electricity using various forms of power generation, including the burning of...
-
For |z| = 2 prove the below identity by using triangle inequality.
-
a) LOCALA Inc. is considering whether to undertake a new project to mine for bauxite. To pursue the mining, LOCALA Inc. will need to spend US$ 3.0M for new mining equipment and US$ 430,000 for...
-
The following are Sharpe Ratios: T-Bills 0; Coll -.161; Market .329; USR .229; High Tech - .345. Which is the preferred investment and why? Economy Recession Prob. T-Bills HT 0.1 3.0% -29.5% 24.5%...
-
Commercial Liability: Case # 27 Statutory Liability: Workers' Compensation Facts: Sue Sampson, age 42, worked as a manager for a large department store that has multiple locations throughout the...
-
Ecosolutions income statement is presented below: Sales Contribution Margin Income Statement Per Unit Total $30 $24,000,000 Variable Costs Direct Materials Direct Labor 4 3,200,000 5 4,000,000...
-
Future value of an annuity Using the values below, answer the questions that follow. (Click on the icon here in order to copy the contents of the data table below into a spreadsheet.) Amount of...
-
George bought 4 submarine sandwiches for a birthday party. if each person will eat 2/3 of a sandwich, how many people can George feed? Miranda buys 6 pounds of nuts. If she puts 3/4 pound in each...
-
A copper sphere of 10-mm diameter, initially at a prescribed elevated temperature T;, is quenched in a saturated (1 atm) water bath. Using the lumped capacitance method, estimate the time for the...
-
Design the following nonbinary sequence counters using the type of flipflop specified. Assume the unused states as dont cares. Is the counter self-correcting? Justify your answer. (a) Counting...
-
What is the technology used to fabricate EPROMs and EEPROMs?
-
Given the following circuit: (a) Derive the Boolean expression for F(A, B, C, D). (b) Derive the truth table. (c) Determine the simplified expression for F(A, B, C, D) using a K-map. (d) Draw the...
-
Make an energy diagram for gas B in Figure 20.4. Figure 20.4 When gases of different temperatures are placed in thermal contact, energy is transferred thermally from the hotter to the cooler gas...
-
Suppose you were to play the two film clips shown in Figure 20.7 backward. Would the resulting processes be possible? Figure 20.7 Quasistatic versus non-quasistatic expansion of a cylin- der...
-
(a) What are the SI units of \(Q\) ? (b) For the process depicted in Figure 20.2a, make an energy diagram for each of these systems: (i) water, pot, and flame; (ii) pot and flame; (iii) pot. Figure...
Study smarter with the SolutionInn App