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

Reply

VHDL - Can real number be synthesized

 
Thread Tools Search this Thread
Old 04-22-2005, 05:26 AM   #1
Default Can real number be synthesized


Hi,

The textbook says the real number in the vhdl code can not be
synthesized. Is it correct? The example in the textbook is:

signal x: REAL := 2.5;
Begin
x <= x/3.0;

It says that the Lieteral 'of type REAL' is not supported for
synthesis. If this is true, how to implement real number operations in
vhdl?

Kuan


Kuan Zhou
  Reply With Quote
Old 04-22-2005, 10:08 AM   #2
Mohammed A khader
 
Posts: n/a
Default Re: Can real number be synthesized
Hi Kuan,

At present tools cannot synthesize real numbers . Normally real
numbers are represented in fixed point format for synthesis.
Fixed point numbers are again represented as std_logic_vector with a
decimal point in between. User is reponsible to know where is the
decimal point and arithmetic operations done on it

There are fixed point packages availabe which does this work for you
but I have not used it yet ..

http://www.eda.org/vhdl-200x/vhdl-20...ges/files.html

Kuan I would suggest you to learn the basics of digital arithmetic
before you implement in hardware.



Mohammed A khader
  Reply With Quote
Old 04-23-2005, 03:20 AM   #3
Phil Tomson
 
Posts: n/a
Default Re: Can real number be synthesized
In article < .com>,
Mohammed A khader <> wrote:
>Hi Kuan,
>
> At present tools cannot synthesize real numbers . Normally real
>numbers are represented in fixed point format for synthesis.
> Fixed point numbers are again represented as std_logic_vector with a
>decimal point in between. User is reponsible to know where is the
>decimal point and arithmetic operations done on it
>
> There are fixed point packages availabe which does this work for you
>but I have not used it yet ..
>
> http://www.eda.org/vhdl-200x/vhdl-20...ges/files.html
>


The fixed_pkg listed on that web page will work fine in simulation and
with many synthesis tools, but be warned: it will not work with Xilinx's
XST synth tools due to a bug in XST (it's not able to handle negative
indices in ranges).

Phil


Phil Tomson
  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
The basic standard of real Excel-like reporting tool freezea Software 0 08-04-2009 03:40 PM
Synthetic VS Real World Benchmarks Admin Front Page News 0 07-14-2008 09:03 PM
This is incredible! jc_ice DVD Video 1 08-13-2006 10:47 AM
Re: 38,000 U.S. KILLED & WOUNDED IN IRAQ & dvd's JA DVD Video 0 03-06-2005 01:16 AM
New Releases: Troy, Ultimate Matrix & status changes: Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 1 08-31-2004 01:02 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