• 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. Can't retain the create->probe option across sch designs...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 1918
  • 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

Can't retain the create->probe option across sch designs in tabs

ssram
ssram over 6 years ago

I wrote the following code to open the selected instances in layout/schematic in a new tab.

But somehow this doesn't workout well since the create->probe doesn't work well in schematic across the tabs, also it gives the following ERROR. Could someone help me here to fix this?

*Error* _schIsUserEditable: argument #1 should be a string (type template = "t") - nil

;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

procedure(srOpenLayoutInTab()

techLibName = techGetTechFile(geGetEditCellView())~>libName
myCells = geGetSelSet()

if( myCells then

foreach( cells myCells
cellViewType = cells~>master~>cellViewType
when(
cellViewType == "maskLayout"
if( cells~>isAnyInst then
myLibName = cells~>libName
myCellName = cells~>cellName
myViewName = cells~>viewName
printf("\nOpening the design %A from lib %A in a new tab\n\n" myCellName myLibName)
window = hiOpenWindow(?session hiGetSessionWindow(hiGetCurrentWindow()) ?type "graphics" ?appType hiGetAppType(hiGetCurrentWindow()))
window->sessionWindow=hiGetSessionWindow(hiGetCurrentWindow())
geOpen(
?window window
?lib myLibName
?cell myCellName
?view myViewName
?viewType cellViewType
?mode "r"
)
);if
);when
);foreach

foreach( cells myCells
cellViewType = cells~>cellView~>cellViewType
when(
cellViewType == "schematic"
if( cells~>isAnyInst then
myLibName = cells~>libName
myCellName = cells~>cellName
;myViewName = cells~>viewName
printf("\nOpening the design %A from lib %A in a new tab\n\n" myCellName myLibName)
window = hiOpenWindow(?session hiGetSessionWindow(hiGetCurrentWindow()) ?type "graphics" ?appType hiGetAppType(hiGetCurrentWindow()))
window->sessionWindow=hiGetSessionWindow(hiGetCurrentWindow())
geOpen(
?window window
?lib myLibName
?cell myCellName
?view "schematic"
?viewType cellViewType
?mode "r"
)
);if
);when
);foreach

else
printf("\nNo instances are selected to open \n\n")
);if

);procedure

;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks

SSR

  • Cancel
Parents
  • henker
    henker over 6 years ago

    Your code actually just opens the selected instances in a new tab, it does not really do a descend. If you compare the resulting tabs, you will notice that eg. the title bar for a real descend is "<instance name>(<cell name>)" (while your's should only show "<cell name>") and that the navigator has the hierarchy of the original cell with the treeview set to the descended subcell, and with that also inheriting the probes.

    Unfortunately I cannot tell what exactly has to be done after the open command to achieve this, but there is a solution, which almost does what you want.

    CCSschDescendWithUserControls

    It basically calls the builtin descend but initializes the values of the descend window, thus it does not open. You just would need to write a loop that modifies the current selection to select the wished instances one by one and call the core part with the hiEnqueueCmd and schHiDescendRead. You would however need to decide how to handle bus instances. Also make sure to skip pcells (e.g. ... && !cells~>master~>superMaster).

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • henker
    henker over 6 years ago

    Your code actually just opens the selected instances in a new tab, it does not really do a descend. If you compare the resulting tabs, you will notice that eg. the title bar for a real descend is "<instance name>(<cell name>)" (while your's should only show "<cell name>") and that the navigator has the hierarchy of the original cell with the treeview set to the descended subcell, and with that also inheriting the probes.

    Unfortunately I cannot tell what exactly has to be done after the open command to achieve this, but there is a solution, which almost does what you want.

    CCSschDescendWithUserControls

    It basically calls the builtin descend but initializes the values of the descend window, thus it does not open. You just would need to write a loop that modifies the current selection to select the wished instances one by one and call the core part with the hiEnqueueCmd and schHiDescendRead. You would however need to decide how to handle bus instances. Also make sure to skip pcells (e.g. ... && !cells~>master~>superMaster).

    • 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