accuracy of $bitstoreal and $realtobits

S

SB

Guest
Hi there

Is there anyway to increase the accuracy of the $bitstoreal and
$realtobits function?

I am finding that 64 bits is not sufficient for what I need.

Cheers
SB
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SB wrote:
Hi there

Is there anyway to increase the accuracy of the $bitstoreal and
$realtobits function?

I am finding that 64 bits is not sufficient for what I need.
These use the accuracy of the underlying floating point represen-
tation (C double) for the system you are using. It is tied to the
implementation of "real" that your Verilog compiler is using, so
it makes no sense to change the "accuracy" of $bitstoreal--it is
already perfect accuracy, given the implementation of "real" on
your compiler.

- --
Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHSi1HrPt1Sc2b3ikRAjwcAJ4uH9GGypH1G9mNMrUun0Gd6JnW+QCeKtwu
MY1BXcpG9FnJmV3hXKMLA6c=
=No4p
-----END PGP SIGNATURE-----
 

Welcome to EDABoard.com

Sponsor

Back
Top