• 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. How to create shielded path?

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 144
  • Views 16610
  • 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

How to create shielded path?

Manu81
Manu81 over 16 years ago

Hi,

 I have written the following code for creating a shielded path. The below mentioned code is having a fix set of coordinates: i.e.  "pts". How to add the functionality that a user can draw shield where ever he feels like:

;; Create a shielded path
procedure( shield()
errset(
(let (cv layer purpose list_draw_layer tech width1 tfId)
cv= geGetEditCellView()
layer = car(leGetEntryLayer()) ;displays layer on LSW is taken
purpose = cadr(leGetEntryLayer()); displays drawing or pin on the selected lsw
list_draw_layer =list(layer purpose)
tech = techGetTechFile(geGetWindowCellView()); rule deck file id is stored in tech
width1 = techGetSpacingRule(tech "minWidth" layer) ; the minimum width is stored in width1
rodCreatePath(
?name "shield"
?layer list( layer purpose )
?pts list(2:-15 2:-5 15:-5 15:-15)   If this is not fixed, the user can draw shield anywhere. What changes are needed?
?width .8
?justification "center"
?cvId cv
?offsetSubPath
list(
list(
?layer list( layer purpose )
?justification "left"
?sep 1
?width .4
) ;end of offset sublist1
list(
?layer list( layer purpose )
?justification "right"
?sep 1
?width .4
) ;end of offset sublist2
) ;end of offset list of lists
) ;end of rodCreatePath
) ; end of let
t
) ; end of errset
) ; end of procedure

  • Cancel
Parents
  • Manu81
    Manu81 over 16 years ago

    Hi,

    I got the code modified by skill genious :)

    ;; Create a shielded path
    procedure( Shield(win done pts)
      errset(
       (let (cv layer purpose list_draw_layer tech width1 tfId)

          unless( done printf("Finished!") )

          cv = geGetEditCellView()
          layer = car(leGetEntryLayer()) ;displays layer on LSW is taken
          purpose = cadr(leGetEntryLayer()); displays drawing or pin on the selected lsw
          list_draw_layer =list(layer purpose)
          tech = techGetTechFile(geGetWindowCellView())
             ; rule deck file id is stored in tech
          width1 = techGetSpacingRule(tech "minWidth" layer)
             ; the minimum width is stored in width1

          rodCreatePath(

             ?layer list( layer purpose )

             ?pts foreach(   mapcar point pts
                    geWindowToEditPoint(hiGetCurrentWindow() point)   )

             ?width .8
             ?justification "center"
             ?cvId cv
             ?offsetSubPath
             list(
    list(
                  ?layer list( layer purpose )
                  ?justification "left"
                  ?sep 1
                  ?width .4
               ) ;end of offset sublist1
               list(
                  ?layer list( layer purpose )
                  ?justification "right"
                  ?sep 1
                  ?width .4
               ) ;end of offset sublist2
             ) ;end of offset list of lists
          ) ;end of rodCreatePath
       ) ; end of let
      t
      ) ; end of errset
    ) ; end of procedure

    Now, if i want the user to specify the width and the spacing through form, how can I pass the value to sep and width over here? Can you please help.

    Regards,

    Manu

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Manu81
    Manu81 over 16 years ago

    Hi,

    I got the code modified by skill genious :)

    ;; Create a shielded path
    procedure( Shield(win done pts)
      errset(
       (let (cv layer purpose list_draw_layer tech width1 tfId)

          unless( done printf("Finished!") )

          cv = geGetEditCellView()
          layer = car(leGetEntryLayer()) ;displays layer on LSW is taken
          purpose = cadr(leGetEntryLayer()); displays drawing or pin on the selected lsw
          list_draw_layer =list(layer purpose)
          tech = techGetTechFile(geGetWindowCellView())
             ; rule deck file id is stored in tech
          width1 = techGetSpacingRule(tech "minWidth" layer)
             ; the minimum width is stored in width1

          rodCreatePath(

             ?layer list( layer purpose )

             ?pts foreach(   mapcar point pts
                    geWindowToEditPoint(hiGetCurrentWindow() point)   )

             ?width .8
             ?justification "center"
             ?cvId cv
             ?offsetSubPath
             list(
    list(
                  ?layer list( layer purpose )
                  ?justification "left"
                  ?sep 1
                  ?width .4
               ) ;end of offset sublist1
               list(
                  ?layer list( layer purpose )
                  ?justification "right"
                  ?sep 1
                  ?width .4
               ) ;end of offset sublist2
             ) ;end of offset list of lists
          ) ;end of rodCreatePath
       ) ; end of let
      t
      ) ; end of errset
    ) ; end of procedure

    Now, if i want the user to specify the width and the spacing through form, how can I pass the value to sep and width over here? Can you please help.

    Regards,

    Manu

    • 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