Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - multiplication prob

 
Thread Tools Search this Thread
Old 03-31-2005, 03:01 PM   #1
Default multiplication prob


hello
my project demands to do
(84 bit no * 42 bit no)
42 BIT NO * 42 BIT no)
comparing 126 bit nos..
ip core supports maximum 64 bit no * 64 bit no.
i dont understand how to go about it....any library that
can help me out ?


nisheeth


Nisheeth
  Reply With Quote
Old 03-31-2005, 03:19 PM   #2
Jonathan Bromley
 
Posts: n/a
Default Re: multiplication prob
On 31 Mar 2005 06:01:41 -0800, (Nisheeth) wrote:

> my project demands to do
> (84 bit no * 42 bit no)
> 42 BIT NO * 42 BIT no)
> comparing 126 bit nos..
> i dont understand how to go about it....


Imagine a constant F = 2^42. Then your 84-bit number
can be represented as (F*A)+B, where A is the upper 42
bits and B is the lower 42 bits. If the other 42-bit
number is C, then you want

result = ((F*A)+B) * C
= F*A*C + B*C

In other words:
- get B*C, an 84-bit result
- get A*C, an 84-bit result
- add the upper 42 bits of B*C to A*C to get the top 84
bits of result
- use the lower 42 bits of B*C as the bottom 42 bits of
result

It's just long multiplication, same as we learnt at school.

> ip core supports maximum 64 bit no * 64 bit no.


So - don't use the IP core. Hell, it's only a multiplier.
What about your synthesis tool? Try feeding the calculation
directly to it. The tool should infer a suitable collection
of multipliers and adders for you. For extra credit,
think about pipelining.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL, Verilog, SystemC, Perl, Tcl/Tk, Verification, Project Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, BH24 1AW, UK
Tel: +44 (0)1425 471223 mail:
Fax: +44 (0)1425 471573 Web: http://www.doulos.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


Jonathan Bromley
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Division by repeated multiplication VHDL stevebarly Software 0 05-21-2008 11:11 AM
ram to dvd prob bruce james DVD Video 0 11-12-2006 05:46 PM
pinnacle instant copy prob Jim E.. DVD Video 1 09-06-2005 05:01 AM
XP and graphics card prob. FredG A+ Certification 3 01-27-2004 01:47 AM
newbie prob Pompey© DVD Video 3 09-12-2003 03:16 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46