• 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. Skill to get path/ sheet resistance Between Two selected...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 15305
  • 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

Skill to get path/ sheet resistance Between Two selected Points

Guruprasad S
Guruprasad S over 10 years ago

Hi ,

Iam working on skill , To find path Resistance between two points in a selected path .

If any one knows the skill then please post the code .

  • Cancel
  • skillUser
    skillUser over 10 years ago

    Your title and subsequent question talk about three very different things:
    1) resistance of a path
    2) sheet resistance
    3) point to point resistance in a path

    The sheet resistance is a property of the material of the layer that the shapes are drawn on, possibly found in the technology file, or from the foundry.

    In essence you need to find the length of a path (or distance between two points along the path) and then you should be able to calculate its resistance.  Here is some sample code for a "path" object - you will need to modify this in order to use it with pathSeg objects:

    procedure(CCFgetPathLength(@optional (obj car(geGetSelSet())) )
      let((prevpt x y (length 0.0))
      ;; if no object is selected, and infix is turned on, then
      ;; use the current mouse location to select the object.
      ;; This is for use with a bindkey, i.e. it is set to run
      ;; this procedure when a key is pressed.
      unless(obj
        when(hiGetCIWindow()->infix
          geSelectPoint(nil enterPoint())
          obj = car(geGetSelSet())
        )
      )
      ;; when the selected object is a path object, iterate
      ;; over the list of points and sum the length. This
      ;; assumes orthogonal or 45 degree segments only.
      when(obj~>objType == "path"
        foreach(pt obj~>points
          ;; operate on pairs of points, if no previous point
          ;; then set it to be the same as the first and use
          ;; it in the next iteration.
          if(!prevpt then
            ;; initialise prevpt to be the first point
            prevpt=pt
          else
            ;; regardless of which direction the segment is
            ;; oriented, calculate the distance between the
            ;; two points (Pythagoras).
            x=car(pt) - car(prevpt)
            y=cadr(pt)-cadr(prevpt)
            length = length + sqrt(expt(x 2) + expt(y 2))
            prevpt=pt
          )
        );; foreach
        ;; print the summed length to the CIW, length will
        ;; have a value as it was initialised as 0.0
        printf("Path length: %5.2f\n" length)
        ;; return the length calculated
        length
      );; when selected object is a path
      );; let
    );; procedure CCFgetPathLength
    

    Hopefully this can help you to get started?

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Also, Virtuoso Electrical Aware Design (EAD) has a point to point resistance capability which is doing a proper resistance extraction; rather than reinventing the wheel (quite a difficult wheel to reinvent too), you might want to consider looking at this tool.

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Guruprasad S
    Guruprasad S over 10 years ago
    Thank You .. Its working fine for me :)
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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