Analysis of Multiplication Algorithms and Boolean Function Optimization

Examines efficiency of multiplication algorithms and Boolean logic.

Benjamin Clark
Contributor
4.2
34
7 months ago
Preview (3 of 8 Pages)
100%
Purchase to unlock

Page 1

Analysis of Multiplication Algorithms and Boolean Function Optimization - Page 1 preview image

Loading page ...

Analysis of Multiplication Algorithms and Boolean Function OptimizationQ3.14)Here in this algorithm let us assume that shifting and addition are two measure time consuming processso conditional statements can be ignored.FOR HARDWARE:As it is given that addition will always take place and for hardware shifting of both multiplier andmultiplicand is possible in one step hence there are only two measure steps.So there are two measure steps and as each step consume 4 unit of time so there will be 8 unit of timeconsumed for every iteration. So irrespective to size of integer the algorithm will going to repeat itself32 time so total time consumed for multiplication is 8*32 which is 256 unit of time.4*(step 1a and shift step)*32 unit of time. Note: if we consider both conditional checking as timeconsuming step then total stem will be 4 and hence the time consumed will be more.If we assume that the number is 8 bit long hence we have to loop the calculation only 8 time and thentime consumed will b 8*8 which is 64 unit.For Software :Addition is always going to take place and for software shifting of multiplicand and multiplier are twodifferent steps and hence total measure time consuming steps are 3(addition + shift of multiplier + shiftof multiplicand) .As one step consume 4 unit of time in one iteration three step will consume 3*4 unit of time .Irrespective to size of integer algorithm will repeat itself for 32 time. Hence total time consumed will be4*(addition step+ shift of multiplier +shift of multiplicand)*32 which is equal to 384 unit of time.If conditional statement checking is assumed to be time consuming then there will be 5 steps forsoftware and hence the time will increase.If we assume that the number is 8 bit long hence we have to loop the calculation only 8 time and thentime consumed will b 12*8 which is 96 unit of time.Q 3.15)Inapproach there are 32 adders stacked vertically,Rather than use a single 32-bitadder 32 times, thishardware “unrolls the loop” to use 32 adders. Each adder produces a 32-bitsum and a carry out. Theleastsignificant bit is a bit of the product, and the carry out and the upper 31 bitsof the sum are passedalong tothe next adder.

Page 2

Page 3

Preview Mode

This document has 8 pages. Sign in to access the full document!

Study Now!

XY-Copilot AI
Unlimited Access
Secure Payment
Instant Access
24/7 Support
Document Chat

Document Details

Related Documents

View all