String manipulation

Discussion in 'Cadence' started by eric.d.fitzsimmons, Apr 10, 2009.

  1. All,

    I am in the process of making a skill program(snippet of code below)
    and realized I need to take the instance from schematic, such as I15
    (letter i15) and add |I15(pipe) in front of it. Below the variable
    EFinstance is used. How do take, in the example "I15" and add the
    pipe, "|I15"?

    Thank you in advance,
    Eric



    procedure(EFCreateNetForm()

    let((EFNetsBox EFTermsOrNet )

    cv=geGetEditCellView()
    EFNet_list=nil
    when(cv
    foreach( inst cv~>instances
    EFInstance=inst~>name
    EFCellname=inst~>master~>cellName
    foreach( instTerm inst~>instTerms
    Term=instTerm~>name
    Net=instTerm~>net~>name
    printf(EFInstance)
    printf(".")
    printf(EFCellname)
    printf(".")
    printf(Term)
    printf(" - ")
    printf(Net)
    printf("\n")
    EFNet_list=append(EFNet_list list(strcat(EFInstance "."
    EFCellname "." Term " - " Net )))
    );foreach
    );foreach
    );when
    t
    );let

    ;sort the output
    EFNet_list=sort(EFNet_list nil)
     
    eric.d.fitzsimmons, Apr 10, 2009
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.