• 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 code to match string pattern

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 22015
  • 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 code to match string pattern

jdavis2
jdavis2 over 10 years ago

Hi there - I have code that checks every instance in the schematic and if the cellname matches some value, it deletes it.  Right now the code only works if I know the exact cell name.  Is there a way to match pattern in SKILL?  

Current form:

if (inst->cellName == "a9bcd")

then 

<delete the cell a9bcd>

I would like to do:

if (inst->cellName == "*bcd*")

then

<delete cells with words bcd in the name>

  • Cancel
  • dmay
    dmay over 10 years ago

    Try:

    if(rexMatchp("bcd" inst~>cellName)

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kb how
    kb how over 10 years ago
    mapcar( 'dbDeleteObject setof(x geGetEditCellView()~>instances rexMatchp("pattern" x))
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 10 years ago

    How, that is close, but you need to involve the cellName:

    mapcar( 'dbDeleteObject setof(x geGetEditCellView()~>instances rexMatchp("*bcd*" x~>cellName))

    Something like that ...
    Regards,
    Lawrence.

    • 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