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

Reply

VHDL - Problem with using Floating Point Package

 
Thread Tools Search this Thread
Old 10-30-2006, 02:24 PM   #1
Default Problem with using Floating Point Package



Hi all,
I am using float package of David Bishop.

I want to see value of -1.5129E-15 i.e. (-1.5129)*10^(-15).

I have written the program mentioned below.
Modelsim is returning error saying :
"Negative exponents not allowed with integers." at the line
z <= to_float((-1.5129)*10**(-15)) ;

What is the mistake I am making ?

Thanks

Ravinder Chaudhry


library IEEE,WORK;
use IEEE.STD_LOGIC_1164.all;
use IEEE.NUMERIC_STD.all;
use work.float_pkg.all;

entity value_test1 is
port(

a,b : in float(5 downto -10);
c : out float(5 downto -10)
);

end entity;

architecture behv of value_test1 is


signal z : float32;
begin

z <= to_float((-1.5129)*10**(-15)) ;


end behv;

-- A6DA0829



ravi81082@gmail.com
  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
DVD +R burning problem. Sseadoubleyou DVD Video 0 09-25-2005 12:52 AM
Re: storage problem SilverSurfer A+ Certification 6 06-09-2005 07:58 PM
matrix reloaded dialog problem? rolling DVD Video 1 02-18-2005 11:39 PM
Shutdown on http problem? lanceman A+ Certification 8 06-12-2004 01:39 AM
HD-DVD and DVD's future Phil Riker DVD Video 68 09-28-2003 09:32 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