1 / 27

Shift-Add Multiplication: Hardware Multipliers and Dividers

Learn about the shift-add multiplication algorithm, hardware multipliers and dividers, and programmed division in digital systems.

hamburg
Download Presentation

Shift-Add Multiplication: Hardware Multipliers and Dividers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1

  2. 11.1 Shift-Add Multiplication Figure 11.1 Multiplication of 4-bit numbers in dot notation.

  3. Example shift-add multiplication: Works basically like you do "long-hand" multiplication except that you (1) add partial products together as you get them, and (2) shift running total to the right after it is recalculated. This eliminates need to add digits of the partial product to nothing. It also ensures same column of digits are always added. Digits shifted to the right of these columns are simply carried down.

  4. Recurrence equation describing above process add Shift right

  5. Shift-add example: 10100011 Figure 11.2 Step-by-step multiplication examples for 4-digit unsigned binary and decimal numbers.

  6. Signed-magnitude numbers can be multiplied by using the shift-add algorithm discussed above, and deriving the sign of the products as XOR of the two input sign bits. In the last multiplication step, we must subtract, rather than add, the partial product yk-1x. e.g., x  (1011)2’s-compl = -8x +2x+x = -5x Signed integer multiplication

  7. Example: Two’s-complement multiplication Figure 11.3 Step-by-step multiplication examples for 4-digit 2’s-complement numbers.

  8. 11.2 Hardware Multipliers Figure 11.4 Hardware multiplier based on the shift-add algorithm.

  9. Figure 11.5 Shifting incorporated in the connections to the partial product register rather than as a separate phase.

  10. Full-tree multiplier Array muplier HA: half adder, FA: full adder, MA: modified full adder Fast hardware multiplication

  11. Figure 11.6 Schematic diagrams for full-tree and partial-tree multipliers.

  12. Figure 11.7 Array multiplier for 4-bit unsigned operands.

  13. 8-bit array multiplier (unsiged)

  14. Figure 11.9 Division of an 8-bit number by a 4-bit number in dot notation.

  15. Recurrence equation describing above process shift subtract

  16. Unsigned operands, z: 2k-bit, x: k-bit 1 1 Figure 11.10 Step-by-step division examples for 8/4-digit unsigned binary integers and decimal fractional numbers.

  17. Unsigned operands, z: k-bit, x: k-bit Figure 11.11 Step-by-step division examples for 4/4-digit unsigned binary integers and fractional numbers.

  18. Dividing signed number: (1) Convert operands to into unsigned values, perform unsigned division (2) At then end, adjust signs for y (quotient) and s (remainder)

  19. 11.5 Hardware Dividers k cycle for 2k/k division Figure 11.12 Hardware divider based on the shift-subtract algorithm

  20. Figure 11.13 Shifting incorporated in the connections to the partial remainder register rather than as a separate phase.

  21. Figure 11.14 Array divider for 8/4-bit unsigned integers.

  22. Array Divider (unsigned)

  23. q = 0 co = majority ( r, d, ci ) ; s = r // identity q = 1 co = majority ( r, d, ci ) ; s = r XOR d XOR ci // subtraction Conditional Subtractor

  24. 11.6Programmed Division Figure 11.15 Register usage for programmed division superimposed on the block diagram for a hardware divider.

More Related