• 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 use geSwitch command

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 14096
  • 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 use geSwitch command

egxoner
egxoner over 13 years ago
hi i am new for the skill codes and trying to use geSwitch command. here is the usage of the command

geSwitch(
w_windowId
t_accessMode
d_instId
x_iteration
x_row
x_col
)

and here is what they mean

[B]w_windowId[/B] :Database ID of the window. --> i use getCurrentWindow( ) to get it.
[B]t_accessMode[/B] :Access mode. --> r (read) or a (append)
[B]d_instId[/B] :Database ID of the instance to switch into. --> [B] I dont know how to get it. This is my main question. [/B]
[B]x_iteration[/B]: Offset in the array of the instance. --> i know how to use it. used for arrayed instances.
[B]x_col and x_row[/B] :Column and row of the arrayed instance. --> i didnt understand what does it mean. if we define arrayed instances with x_iteration why do we need it? whats the diffrence?

as i said my main question is how to get [B] " d_instId " [/B] ???

regards
egx
  • Cancel
Parents
  • dmay
    dmay over 13 years ago

    There are several ways to get the instance id. I'm assuming since you are writing Skill code to do use the geSwitch command you are starting from a cellview or a selected set.

    1. To get a list of all the instance ids in the current cellview:
    instIds = geGetEditCellView()~>instances
    You would then then need to process this list to get the instance you want.

    2. To get the instance that is currently selected (assuming there is only one item selected):
    instId = car(selectedSet())
    You might want to confirm that instId~>objType == "inst"

    3. instId = dbFindAnyInstByName(geGetEditCellView() "myInstName")

    As for the row and column, you can set these to 0 when working on a regular instance (objType == "inst" as opposed to "mosaic").

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • dmay
    dmay over 13 years ago

    There are several ways to get the instance id. I'm assuming since you are writing Skill code to do use the geSwitch command you are starting from a cellview or a selected set.

    1. To get a list of all the instance ids in the current cellview:
    instIds = geGetEditCellView()~>instances
    You would then then need to process this list to get the instance you want.

    2. To get the instance that is currently selected (assuming there is only one item selected):
    instId = car(selectedSet())
    You might want to confirm that instId~>objType == "inst"

    3. instId = dbFindAnyInstByName(geGetEditCellView() "myInstName")

    As for the row and column, you can set these to 0 when working on a regular instance (objType == "inst" as opposed to "mosaic").

    Derek

    • 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