Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Problem with using Floating Point Package

Thread Tools

Problem with using Floating Point Package
Posts: n/a

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 ?


Ravinder Chaudhry

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

entity value_test1 is

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

end entity;

architecture behv of value_test1 is

signal z : float32;

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

end behv;

-- A6DA0829

Reply With Quote

Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
error message while using floating point package kdas VHDL 0 04-18-2008 04:55 PM
Questions on implementing a floating point bignum package mike3 C++ 2 12-16-2007 09:34 PM
floating point problem... floating indeed :( teeshift Ruby 2 12-01-2006 01:16 AM
converting floating point to fixed point H aka N VHDL 15 03-02-2006 02:26 PM