Question

9. When we looked at multiplication of signed operands, we saw in the class slides an example of multiplication of a positive multiplicand and a positive multiplier, and a negative multiplicand and a positive multiplier. Perform the multiplication algorithm which we described, using left shifting of a copy ofthe multiplicand, and addition, to determine whether it gives the correct result for the following examples, using 4 bit operands and a 4 bit result, and show all steps in performance of the algorithm, and then answer the four accompanying questions after each problem a. Positive multiplicand and negative multiplier (3 -2) i. Should the result fit in 4 bits? ii. Is the correct result produced? iii. Is there overflow from any of the addition operations (you can simply say if there is overflow from any one or more of them)? v. If there is overflow from any of the addition operations, does this make sense? Why or why not? Negative multiplicand and negative multiplier (-3 *-2) i. Should the result fit in 4 bits? ii. Is the correct result produced? iii. Is there overflow from any of the addition operations (you can simply say if there is overflow from any one or more of them)? iv. If there is overflow from any of the addition operations, does this make sense? Why or whynot? Note: Do the intermediate additions one at a time; that is, every time there is a non-zero left-shifted copy of the multiplicand produced by examining the bits in the multiplier, add the left-shifted copy to the prior value of the result. Do not wait and try to add 3 or four left-shifted copies of the multiplicand in one addition operation.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

the rendt obtained İŞ 0110 G Sign bit İŞYeguired to hold the sig but not tosí90. Second addieion correct occure C BCS) operatASwer Regeabe wi noe pit in the bit iv No -foio.is no oveplos cccood Shift riahtp

Add a comment
Know the answer?
Add Answer to:
When we looked at multiplication of signed operands, we saw in the class slides an example...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4) This exercise will first present the modified algorithm for computing the product of two numbers...

    4) This exercise will first present the modified algorithm for computing the product of two numbers represented in twos complement with an illustrated example and then ask you to repeat for a different number pair The hardware and the flowchart for signed multiplication in twos complement representation of binary numbers will be slightly modified as follows. Use the version of the unsigned multiplication hardware which employs one double-sized register to hold the partial product and the multiplier a. When shifting...

  • Please solvve this... Detailed solution please Thank you!! 2. (20 points) Let's assume that we have...

    Please solvve this... Detailed solution please Thank you!! 2. (20 points) Let's assume that we have to multiply two 3-bit positive numbers or two 3-bit negative numbers. That is, the signs of the input numbers are guaranteed to be the same. Draw a logic diagram for the modified multiplier. You can use any kind of combinational blocks such as multiplexors, half-adders, etc. Try to minimize the number of gates/blocks. 3.115 points] Find the answer for the following calculations. Circle ifit...

  • A protocol is a set of rules that define some operation. For example, the Internet Protocol...

    A protocol is a set of rules that define some operation. For example, the Internet Protocol (IP) specifies how messages are routed throughout the internet. In this problem, you are asked to implement your 1st messaging protocol (MP1). MP1 is a binary protocol that is used to efficiently encode a set of arithmetic operations using a 4-byte data type (e.g., int). The specification of the protocol is as follow. Using a 4-byte (32-bit stream), MP1 messages encode the ‘+’, ‘-‘,...

  • PROBLEM STATEMENT The mini-calculator will use a small ALU to perform arithmetic operations on two 4-bit values which are set using switches. The ALU operations described below are implemented with a...

    PROBLEM STATEMENT The mini-calculator will use a small ALU to perform arithmetic operations on two 4-bit values which are set using switches. The ALU operations described below are implemented with an Adder/Subtractor component. A pushbutton input allows the current arithmetic result to be saved. An upgraded mini-calculator allows the saved value to be used in place of B as one of the operands. The small ALU that you will design will use the 4-bit adder myadder4 to do several possible...

  • Implement a Java method named addBinary() that takes two String arguments (each representing a binary value)...

    Implement a Java method named addBinary() that takes two String arguments (each representing a binary value) and returns a new String corresponding to the result of performing binary addition on those arguments. Before you begin, if one of the arguments is shorter than the other, call your pad() method from the previous step to extend it to the desired length. Note: ped() method is public static String pad(String input, int size) { if(input.length()>=size) { return input; } String a =...

  • EVALUATING GENERAL INFIX EXPRESSIONS INTRODUCTION The notation in which we usually write arithmetic expressions is called infix notation;...

    EVALUATING GENERAL INFIX EXPRESSIONS INTRODUCTION The notation in which we usually write arithmetic expressions is called infix notation; in it, operators are written between their operands: X + Y. Such expressions can be ambiguous; do we add or multiply first in the expression 5 + 3 * 2? Parentheses and rules of precedence and association clarify such ambiguities: multiplication and division take precedence over addition and subtraction, and operators associate from left to right. This project implements and exercises a stack-based algorithm that evaluates...

  • (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the...

    (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the left of the decimal point and 3 to the right. a.      What is the range of the expressible numbers?    b.      What is the precision?    c.       What is the error?    ______________________________________________________________________________   (3 pts) Convert this unsigned base 2 number, 1001 10112, to each base given below   (Note: the space in the binary string is purely for visual convenience) Show your work. Using...

  • #include <iostream> #include <climits> Using namespace std; Intmain() { Int I; Int j; Cout << “For...

    #include <iostream> #include <climits> Using namespace std; Intmain() { Int I; Int j; Cout << “For this compiler: “ << endl; Cout << “integers are: “ << sizeof(int) << “bytes” << endl; Cout << “largest integers is “ <<INT_MAX << endl; Cout << “smallest integers is “ <<INT_MIN << endl; Cout << “Input two integers values “ << endl; Cin >> i >> j; Cout << endl << “You entered the following values: “ << endl; Cout << “integer “...

  • Short Answer Question of the defense mechanisms that we looked at (rationalization, repression, denial, projection, reaction...

    Short Answer Question of the defense mechanisms that we looked at (rationalization, repression, denial, projection, reaction formation, displacement, and sublimation), which one do you see people doing the most? Please give reasons to support your view. Please be sure to write at least three sentences. (15 points) True / False Please fill in the blank (to the left of each question below) to show whether the following are true or false. Where answers are false, please be sure to correct...

  • Problem 1 Please do not use any type of software to solve this problem; perform all...

    Problem 1 Please do not use any type of software to solve this problem; perform all the calculations and draw the charts by hand. You can use your calculator only for simple operations like addition, multiplication, finding averages and standard deviations. The owner of an apartment complex with three-bedroom units is trying to determine what rent he should set for the summer months. He believes that the rent of an apartment in his complex determines if it will be occupied...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT