Suppose A = D6 and B = 7C (both in hexadecimal). Show the step by step result multiplying A and B, using the multiplier hardware shown in Fig. 1. Assume A and B are 8-bit unsigned numbers, stored in hexadecimal format. b) What is the RISC-V instruction that gives the lower 32 bits of the above multiplication of signed integers? Name one register where you will be placing the result and fill in all 32 bit
a) Suppose A = D6 and B = 7C (both in hexadecimal). Show the step by step result multiplying
A and B, using the multiplier hardware shown in Fig. 1. Assume A and B are 8-bit unsigned numbers,
stored in hexadecimal format.
b) What is the RISC-V instruction that gives the lower 32 bits of the above multiplication
of signed integers? Name one register where you will be placing the result and fill in all 32 bit
positions for this instruction (write it both in assembly and in machine language).
c) Suppose for an 8-bit number, each step of operation (either addition or shift) takes 2ns. Please
calculate the time necessary to perform a multiply using the approach given in Fig. 1. Assume the
registers have been initialized. In hardware, please note that the shifts of the multiplicand and multiplier
can be done simultaneously.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images