• 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 Design
  3. How to replace a part of a net name in Layout editor

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 125
  • Views 16889
  • 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 replace a part of a net name in Layout editor

RFStuff
RFStuff over 12 years ago

 Dear All,

I have some net names separated by "_" like : -out _TEST_in, TEST_in<1:0> etc. Basically I want to replace the word TEST in all nets having that word with the word CHECK. The other portion of the names should be kept intact. I tried in search/replace form of schematic composer , but I could not achive what I want.

Could anybody please tell how it can be done 

Kind Regards,

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    See this other post - that should explain how to do it (it's in the documentation too, of course).

    Regards,

    Andrew.

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

    I just noticed that it was you that asked the original question! I'm sure that's embarrassing for you...

    My original reply was just for the schematic editor (not layout editor), but that's all you're asking for here.

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 12 years ago

    Dear Andrew,

    Oh Sorry,,

    I mistakenly wrote schematic composer/editor in the post. Is it possible to change the Topic. This I wanted for layout editor.

    In that post you have mentioned in the schematic editor. I have asked the same for the layout editor. I thought it may be trivial.

    Latter I tried myself in the layout editor. I was able to find and replace the nets. But couldn't replace the pattern in the desired way.

    I tried for example:-

    to replace cde_TEST_efg<1:10> by using

    cde_TEST_efg<*> ----> cde_CHECK_efg<{1}> and then Apply

    It searched it out but it replaced all the nets of cde_TEST_efg<1:10>  as  cde_CHECK_efg<{1}>

     

     

    I have net patterns like

    abc_TEST_fde

    cde_TEST_efg<1:10>

    TEST_ wqq<0:8>

    I want  nets replace as:-

     abc_CHECK_fde

    cde_CHECK_efg<1:10>

    CHECK_ wqq<0:8>

     Kind Regards,

    is it posssible to chnage the edit the subject ?

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

    You can change the subject when you reply (as I just did).

    As far as I can tell, there's no support for using part of the found pattern in the replace string in the layout search and replace (it's not covered in the documentation, and the attempts I made using regular expression syntax didn't work either).

    But a simple bit of SKILL code can do this (I'm assuming it's the labels you want to change, given your previous post):

    procedure(CCFchangeLabelPattern(fromExpr toExpr @optional (cvId geGetEditCellView()))
      rexCompile(fromExpr)
      foreach(shape cvId~>shapes
        when(shape~>objType=="label" && rexExecute(shape~>theLabel)
          shape~>theLabel=rexSubstitute(toExpr) || shape~>theLabel
        )
      )
      t
    )

    Then use:

     CCFchangeLabelPattern("\\(.*\\)TEST\\(.*\\)" "\\1CHECK\\2")

    What the \\(...\\) parts are doing are recording that part of the regular expression for later substitution by the rexSubstitute - and then \\1 means the first bracketed part, and \\2 means the second bracketed part, etc.

    If you're talking about altering the actual net objects in the database (e.g. because you've been using layout XL), then that's a bit more complicated - but I think you may be asking about altering labels.

    Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 12 years ago

    Dear Andrew,

    Thanks a lot.
    I changed the subject.

    Yes I only want Label that is more than enough for me.

    Kind Regards,

     

     

     

    • 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