using leSearchHierarchy with brackets

Discussion in 'Cadence' started by vlsidesign, Dec 16, 2006.

  1. vlsidesign

    vlsidesign Guest

    I know that from the menu (Virtuoso pulldown) I can search for brackets
    by backslashing them, ie. bit\[0\], but how might I did it in a skill
    routine. Here is a snippet of my code so far:

    while( gets(nextLine inPort )
    fscanf( instring(nextLine) "%s %s" a b)
    if ( (pinName == a)
    then keyText = b
    );if
    );while

    foundLabel = leSearchHierarchy(
    cv
    cv~>bBox
    1
    "label"
    list(
    list("text" "==" keyText)
    );list
    );leSearch

    So when it has the bracket, like bit[0], it will not find it, but I am
    not sure how to change the code to somehow search for that. Any help is
    greatly appreciated. Thank you.
     
    vlsidesign, Dec 16, 2006
    #1
  2. vlsidesign

    vlsidesign Guest

    After some sleep, I just realized the obvious. Just search and get ALL
    the labels, and then just use something like a 'foreach' and iterate
    through them, searching for the pin I need.
     
    vlsidesign, Dec 17, 2006
    #2
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.