Question: Calculate the time necessary to perform a multiply using the approach given in Figures 3.3 and 3.4 if an integer is 8 bits wide and

Calculate the time necessary to perform a multiply using the approach given in Figures 3.3 and 3.4 if an integer is 8 bits wide and each step of the operation takes 4 time units. Assume that in step 1a an addition is always performed€”either the multiplicand will be added, or a zero will be. Also assume that the registers have already been initialized (you are just counting how long it takes to do the multiplication loop itself). If this is being done in hardware, the shift s of the multiplicand and multiplier can be done simultaneously. If this is being done in soft ware, they will have to be done one after the other. Solve for each case.

Figure 3.3

Multiplicand Shift left 64 bits Multiplier Shift right 64-bit ALU 32 bits Product Control test Write 64 bits

Figure 3.4

Start 1. Test Multipliero Multipliero = 1 Multipliero = 0 1a. Add multiplicand to product and place the result in Produc

Multiplicand Shift left 64 bits Multiplier Shift right 64-bit ALU 32 bits Product Control test Write 64 bits Start 1. Test Multipliero Multipliero = 1 Multipliero = 0 1a. Add multiplicand to product and place the result in Product register 2. Shift the Multiplicand register left 1 bit 3. Shift the Multiplier register right 1 bit No: < 32 repetitions 32nd repetition? Yes: 32 repetitions Done

Step by Step Solution

3.33 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

For hardware it takes 1 cycle to do the add 1 cycle to do the shift and 1 cycle to decide if we ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Organization Design Questions!