fast mod (remainder) algorithm for V2?

B

Brannon King

Guest
I'm looking for a fast integer mod routine to be executed on a Virtex2-6000.
Let's say 256bit unsigned integer divided by a 64bit unsigned integer where
I only care about the remainder. Any ideas or directions? I don't care how
many resources it uses. Thanks.
 
In fact, I don't really care about the remainder other than it being
nonzero.

"Brannon King" <bking@starbridgesystems.com> wrote in message
news:btcqlb$722@dispatch.concentric.net...
I'm looking for a fast integer mod routine to be executed on a
Virtex2-6000.
Let's say 256bit unsigned integer divided by a 64bit unsigned integer
where
I only care about the remainder. Any ideas or directions? I don't care how
many resources it uses. Thanks.
 
Brannon King wrote:
I'm looking for a fast integer mod routine to be executed on a Virtex2-6000.
Let's say 256bit unsigned integer divided by a 64bit unsigned integer where
I only care about the remainder. Any ideas or directions? I don't care how
many resources it uses. Thanks.

Virtex2 has built-in multipliers, so you could
loop on multiplying a loop count by the small
number and comparing that to the big number.

-- Mike Treseler
 

Welcome to EDABoard.com

Sponsor

Back
Top