• 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. Custom IC SKILL
  3. Re: Slotted Metal paths - updated form for v5.1.41

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 902
  • 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

Re: Slotted Metal paths - updated form for v5.1.41

ztzg
ztzg over 12 years ago
Hi Jaleco, The short answer is that you cannot use the == or != operators to compare floating point numbers. Try something like: abs(a - b) writes: > Does anyone know how to compare a float value to zero?I have completed > an updated slotted metal form script with user-defined values for slot > dimensions but am having some trouble testing path widths to be on > grid because a test to see of they are on grid randomly fails a float > test comparison to zero and snaps path widths > unnecessarily. -- http://crosstwine.com tel: +49 89 2189 2939 cell: +49 174 3489 428 “Strong Opinions, Weakly Held” — Bob Johansen
  • Cancel
Parents
  • jaleco
    jaleco over 12 years ago

    Thanks D,

    I think I corrected the source of the compare problem, and I am using the abs() function for the comparison.

    The script seems to be working well, though I would like to hear if anyone that finds this useful also finds a bug.

    Surely that will never happen.  :  )

    I have kept most of Lawrence's original CCSslotmetal.il intact within the script and it has plenty of commentary added for the additional input and algorithms....and it is about 1200 lines of code now, so I am attaching it as a Word (RTF) file.

    At least...I think I am...I have never attached a file to one of these posts before...it shows on the options form, but not the preview.

    If the attachment does not show up and anyone would like to use it, please tell me how to correctly attach a file(!).

    This is a continuation of the thread at:

    /forums/T/24069.aspx

    - JLC

     

    SlottedMetal.il
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • jaleco
    jaleco over 12 years ago

    Thanks D,

    I think I corrected the source of the compare problem, and I am using the abs() function for the comparison.

    The script seems to be working well, though I would like to hear if anyone that finds this useful also finds a bug.

    Surely that will never happen.  :  )

    I have kept most of Lawrence's original CCSslotmetal.il intact within the script and it has plenty of commentary added for the additional input and algorithms....and it is about 1200 lines of code now, so I am attaching it as a Word (RTF) file.

    At least...I think I am...I have never attached a file to one of these posts before...it shows on the options form, but not the preview.

    If the attachment does not show up and anyone would like to use it, please tell me how to correctly attach a file(!).

    This is a continuation of the thread at:

    /forums/T/24069.aspx

    - JLC

     

    SlottedMetal.il
    • 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