Home > Community > Forums > Custom IC SKILL > does dbFindAnyInstByName support wildcard or case-insensitive?

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: *

 does dbFindAnyInstByName support wildcard or case-insensitive? 

Last post Thu, Jul 18 2013 7:03 PM by Blues. 4 replies.
Started by Blues 18 Jul 2013 12:36 AM. Topic has 4 replies and 695 views
Page 1 of 1 (5 items)
Sort Posts:
  • Thu, Jul 18 2013 12:36 AM

    • Blues
    • Not Ranked
    • Joined on Tue, Feb 7 2012
    • Posts 7
    • Points 110
    does dbFindAnyInstByName support wildcard or case-insensitive? Reply

    Hi Guys,

    I got some error messages from 3-rd party tools like "xichip.xiip.ximid.m3", I wish to write a skill to descend into the last hier level and generate marker on the device m3, I plan to use the geSwitch to switch to the hier.

    But when I parse the error message, I found the instance name is not match with the schematic, in schematic, the instance name is like "Ichip", "IIp", "IMID", etc., how to handle this kind of instance name? as you know, the spice netlist is case-insensitive, so the simulation tools always treat anythings as lower-case.

    I also tried dbFindAnyInstByName, and found it is also case-sensitive, is there any skill function can read the instance name with case-insensitive? or even wildcard?

    Best Regards,

    Blues 

     

    Filed under:
    • Post Points: 50
  • Thu, Jul 18 2013 3:31 AM

    Re: does dbFindAnyInstByName support wildcard or case-insensitive? Reply

    Blues,

    No. You'd have to search along cvId~>instances yourself.

    Bear in mind that adding markers on the leaf cell may not make much sense if the problem does not occur on every occurence of that leaf cell...

    Regards,

    Andrew.

    • Post Points: 5
  • Thu, Jul 18 2013 7:29 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 393
    • Points 7,415
    Re: does dbFindAnyInstByName support wildcard or case-insensitive? Reply

    Blues,
    First you can strip off the "x" prefix:

        when(rexMatchp("^[Xx]" instName)
             instName=substring(instName 2) ;strip off first character (start at index 2)
        )

    Then you can map its case this way:

        foreach(inst cv~>instances
            when(instName == lowerCase(inst~>name)
                instName = inst~>name
                instId = inst
            )
        )

    Derek

    • Post Points: 5
  • Thu, Jul 18 2013 8:14 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,569
    • Points 15,600
    Re: does dbFindAnyInstByName support wildcard or case-insensitive? Reply

    Hi Blues,

    If you are using IC61x (IC615, IC616 or ICADV121) then you can use the pcre* functions, the pcreCompile() function accepts an option for caseless matching: PCRE_CASELESS (0x00000001) which you can use perhaps in a single call without needing to strip off the leading 'x'?

    Hope this helps.

    regards,

    Lawrence.

    • Post Points: 20
  • Thu, Jul 18 2013 7:03 PM

    • Blues
    • Not Ranked
    • Joined on Tue, Feb 7 2012
    • Posts 7
    • Points 110
    Re: does dbFindAnyInstByName support wildcard or case-insensitive? Reply

    Thank you all for the quick reply.

    Looks like to search along the instances in cell view is the only solution, I have though it before, but I just afraid of the efficiency when the schematic is huge.

    Regards,

    Blues

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by Blues at 18 Jul 2013 12:36 AM. Topic has 4 replies.