• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification Shared Code
  3. Support floating point in e

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 39
  • Views 16251
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Support floating point in e

archive
archive over 19 years ago


This package include basic floating point support for e.  It consists of an e wrapper for c floating point library that needs to be compiled into Specman order to be used.  A makefile is provided to accomplish that.  This is useful for people who want to do operations with real numbers in e.


Originally posted in cdnusers.org by stellfox@cadence.com
vrst_snfp.zip
  • Cancel
Parents
  • archive
    archive over 17 years ago

    However in Specman 6.1 there is support for floating point numbers (new data type real). The release is scheduled for mid-April, but if you are interested you can try out the beta release. For details, please get directly in touch with me (hannes@cadence.com)



    I'm running 6.1.1, the manuals don't support [b]real [/b] but I tested it and it works!

    <'
    extend sys{

    foo : int;
    keep foo == 10101;
    bar : int;
    keep bar == 99;

    !foobar : real;

    run() is also {
    outf("foo %d/bar %d = %f\n", foo, bar, foo/bar);
    foobar = foo/bar;
    outf("foo %d/bar %d = %f\n", foo, bar, foobar);
    };
    };

    '>


    Running the test ...
    foo 10101/bar 99 = 102.000000
    foo 10101/bar 99 = 102.030303


    Originally posted in cdnusers.org by earthur
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • archive
    archive over 17 years ago

    However in Specman 6.1 there is support for floating point numbers (new data type real). The release is scheduled for mid-April, but if you are interested you can try out the beta release. For details, please get directly in touch with me (hannes@cadence.com)



    I'm running 6.1.1, the manuals don't support [b]real [/b] but I tested it and it works!

    <'
    extend sys{

    foo : int;
    keep foo == 10101;
    bar : int;
    keep bar == 99;

    !foobar : real;

    run() is also {
    outf("foo %d/bar %d = %f\n", foo, bar, foo/bar);
    foobar = foo/bar;
    outf("foo %d/bar %d = %f\n", foo, bar, foobar);
    };
    };

    '>


    Running the test ...
    foo 10101/bar 99 = 102.000000
    foo 10101/bar 99 = 102.030303


    Originally posted in cdnusers.org by earthur
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information