• 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 18 years ago


    I'm getting segmentation faults when I try to use this package on a 64 bit platform (64 bit SUSE linux on x86-64). Have you observed this? It's pretty easy to create the seg fault case, here's some example code:

    <'
    import vrst_snfp;
    extend sys {
    run() is also {
    var fpfn : snfp_floating_point_function_s = new;
    fpfn.op1.set("0.0");
    fpfn.op2.set("0.1");
    fpfn.its_type= FADD;
    fpfn.do_fp();
    outf("%s",fpfn.res.to_str());
    };
    };
    '>

    The seg fault occurs on the outf, when Specman attempts to access the .res field of fpfn. Any help would be much appreciated!


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


    I'm getting segmentation faults when I try to use this package on a 64 bit platform (64 bit SUSE linux on x86-64). Have you observed this? It's pretty easy to create the seg fault case, here's some example code:

    <'
    import vrst_snfp;
    extend sys {
    run() is also {
    var fpfn : snfp_floating_point_function_s = new;
    fpfn.op1.set("0.0");
    fpfn.op2.set("0.1");
    fpfn.its_type= FADD;
    fpfn.do_fp();
    outf("%s",fpfn.res.to_str());
    };
    };
    '>

    The seg fault occurs on the outf, when Specman attempts to access the .res field of fpfn. Any help would be much appreciated!


    Originally posted in cdnusers.org by astortz
    • 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