![]() |
|
|
|||||||
![]() |
VHDL - Problem with using Floating Point Package |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |