Library callback...

Discussion in 'Cadence' started by Giuseppe, Feb 2, 2005.

  1. Giuseppe

    Giuseppe Guest

    Hello,
    I have another weird question for you! Do you know if is it possible
    to launch a skill function every time I use a particular library? I
    tried the libInit.il file but this launchs the skill procedure only
    one time. Is there another solution to the problem?

    Thanks,

    Giuseppe
     
    Giuseppe, Feb 2, 2005
    #1
  2. Giuseppe,

    You can use ddRegTrigger for this, with the "PreObjAccess" trigger.

    procedure(MYobjTrigger(lib cell view file context mode)
    when(lib
    printf("Accessed something from library %L\n" lib)
    )
    t
    )

    ddRegTrigger("PreObjAccess" 'MYobjTrigger 1)

    Note, there is no such thing as "using" a library - the above would be
    triggered any time you access anything from that library. You'd need to be
    very careful that you don't impact performance.

    What in particular do you need this for?

    Regards,

    Andrew.
     
    Andrew Beckett, Feb 2, 2005
    #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.