• 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. Drawing path using SKILL

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 144
  • Views 19185
  • 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

Drawing path using SKILL

wakeup12
wakeup12 over 11 years ago

Hello,

 I have modified a SKILL file to draw a path from one point to another. However, this function takes two arguments: starting and ending point.

 I was wondering if it is possible to write the corner points to make it really look like a path.

 Here is the code:

 pastebin.ubuntu.com/.../

 Currently, when we specify another location after the end point, we see a result like the right side of this image:

 

However, I would like to make it look like the one on the left using our function if possible.

 

Thank you for your response. 

 

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Your question is really confusing. OCEAN is for simulation and nothing to do with creating layout!

    Without knowing precisely how your contacts array is created, it's hard to advise how to convert it into a list, but you wouldn't be using '((x1 y1)). That's a quoted list which would mean that variables aren't evaluated.

    Maybe showing you an example would give you enough:

    defMathConstants('CCFmath)
    procedure(CCFdrawSillyPath(cv layer width periodLength pathAmplitude @optional (nPoints 100))
    let((x y points)
      for(i 0 nPoints
        x=i*float(periodLength)/nPoints
        y=pathAmplitude*sin(i*CCFmath.PI*2/nPoints)
        points=cons(list(x y) points)
      )
      dbCreatePath(cv layer points width)
    ))

    cv=dbOpenCellViewByType("myLib" "myCell" "layout" "maskLayout" "a")
    CCFdrawSillyPath(cv "Metal2" 1.0 100.0 20.0)
    dbSave(cv)
    dbClose(cv)

    An utterly silly example, but it should show you how to create a list of points (where each point is a list of an x and a y value), and then open a cellView, create some shapes, save and close it. No need to have any windows open when you do this.

    You could do this with "virtuoso -nograph" so no need to have any graphics either.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Your question is really confusing. OCEAN is for simulation and nothing to do with creating layout!

    Without knowing precisely how your contacts array is created, it's hard to advise how to convert it into a list, but you wouldn't be using '((x1 y1)). That's a quoted list which would mean that variables aren't evaluated.

    Maybe showing you an example would give you enough:

    defMathConstants('CCFmath)
    procedure(CCFdrawSillyPath(cv layer width periodLength pathAmplitude @optional (nPoints 100))
    let((x y points)
      for(i 0 nPoints
        x=i*float(periodLength)/nPoints
        y=pathAmplitude*sin(i*CCFmath.PI*2/nPoints)
        points=cons(list(x y) points)
      )
      dbCreatePath(cv layer points width)
    ))

    cv=dbOpenCellViewByType("myLib" "myCell" "layout" "maskLayout" "a")
    CCFdrawSillyPath(cv "Metal2" 1.0 100.0 20.0)
    dbSave(cv)
    dbClose(cv)

    An utterly silly example, but it should show you how to create a list of points (where each point is a list of an x and a y value), and then open a cellView, create some shapes, save and close it. No need to have any windows open when you do this.

    You could do this with "virtuoso -nograph" so no need to have any graphics either.

    Regards,

    Andrew.

    • 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