squaring numbers

Joined
Feb 17, 2008
Messages
19
Reaction score
0
Does anybody know if there are any tricks to simply the process of multiplication if all I'm doing is squaring numbers (multiplying them by themselves)?
 
Joined
Feb 17, 2008
Messages
19
Reaction score
0
I know all the ways to build standard multipliers. I was asking if there were any tricks to square numbers to reduce hardware at synthesis.
 
Joined
Mar 10, 2008
Messages
348
Reaction score
0
Well - I believe the build in multipliers of a FPGA will be the most efficient way to square numbers.

Alternative could be lookuptable (ROM based)

How many bits are you planning to work with?
 
Joined
Mar 10, 2008
Messages
348
Reaction score
0
Ok - this conversation takes its time ;-)
Will you design for speed or for area.

"my" sequentiel adder designed for area and will provide you with the squarre after 55 clockcycles.

A combinatorial 55x55 multiplier will be HUGE and properly not an option.

This leads us back to your question - will there be a "smart" way to do the process x*x ......

x*x = y
(x+1)*(x+1) = y + 2*x +1 .... This fact could be usefull but you will still have to use 55 clockcycles ...

I will sleep on this
 
Joined
Feb 17, 2008
Messages
19
Reaction score
0
Speed is most important in this design. I'm probably off my rocker thinking this can be done in few clocks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top