Home > Community > Forums > Custom IC SKILL > Re: Slotted Metal paths - updated form for v5.1.41

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

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

Last post Fri, Nov 16 2012 2:04 PM by jaleco. 1 replies.
Started by ztzg 16 Nov 2012 02:00 AM. Topic has 1 replies and 615 views
Page 1 of 1 (2 items)
Sort Posts:
  • Fri, Nov 16 2012 2:00 AM

    • ztzg
    • Not Ranked
    • Joined on Fri, Dec 31 2010
    • München, Bavaria
    • Posts 15
    • Points 225
    Re: Slotted Metal paths - updated form for v5.1.41 Reply
    Hi Jaleco,

    The short answer is that you cannot use the == or != operators to
    compare floating point numbers. Try something like:

    abs(a - b)

    instead.

    The next problem, of course, lies in determining a good value for ε in
    your application; thick books have been written about that subject.

    Using something smaller than 1/DBUPerUU should do the trick in your
    case.

    Cheers, -D

    jaleco 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
    http://www.crosstwine.com tel: +49 89 2189 2939 cell: +49 174 3489 428
    • Post Points: 20
  • Fri, Nov 16 2012 2:04 PM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Albuquerque, NM
    • Posts 72
    • Points 1,050
    Re: Slotted Metal paths - updated form for v5.1.41 Reply

    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:

    http://www.cadence.com/community/forums/T/24069.aspx

    - JLC

     

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by ztzg at 16 Nov 2012 02:00 AM. Topic has 1 replies.