Home > Community > Forums > Custom IC Design > How to replace a part of a net name in Layout editor

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to replace a part of a net name in Layout editor 

Last post Mon, Apr 1 2013 3:03 AM by RFStuff. 5 replies.
Started by RFStuff 30 Mar 2013 07:05 AM. Topic has 5 replies and 1070 views
Page 1 of 1 (6 items)
Sort Posts:
  • Sat, Mar 30 2013 7:05 AM

    • RFStuff
    • Top 25 Contributor
    • Joined on Tue, Feb 5 2013
    • Posts 260
    • Points 4,580
    How to replace a part of a net name in Layout editor Reply

     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,

    • Post Points: 20
  • Mon, Apr 1 2013 12:41 AM

    Re: How to replace a part of a net name in Schematic editor Reply

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

    Regards,

    Andrew.

    • Post Points: 5
  • Mon, Apr 1 2013 12:50 AM

    Re: How to replace a part of a net name in Schematic editor Reply

    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.

    • Post Points: 20
  • Mon, Apr 1 2013 1:19 AM

    • RFStuff
    • Top 25 Contributor
    • Joined on Tue, Feb 5 2013
    • Posts 260
    • Points 4,580
    Re: How to replace a part of a net name in Layout editor Reply

    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 ?

    • Post Points: 20
  • Mon, Apr 1 2013 2:44 AM

    Re: How to replace a part of a label name in Layout editor Reply

    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.

     

    • Post Points: 20
  • Mon, Apr 1 2013 3:03 AM

    • RFStuff
    • Top 25 Contributor
    • Joined on Tue, Feb 5 2013
    • Posts 260
    • Points 4,580
    Re: How to replace a part of a label name in Layout editor Reply

    Dear Andrew,

    Thanks a lot.
    I changed the subject.

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

    Kind Regards,

     

     

     

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by RFStuff at 30 Mar 2013 07:05 AM. Topic has 5 replies.