Home > Community > Forums > Custom IC SKILL > callback when descending in layout hierarchy

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

 callback when descending in layout hierarchy 

Last post Mon, Mar 18 2013 7:30 AM by hihi. 2 replies.
Started by hihi 13 Mar 2013 02:28 AM. Topic has 2 replies and 583 views
Page 1 of 1 (3 items)
Sort Posts:
  • Wed, Mar 13 2013 2:28 AM

    • hihi
    • Not Ranked
    • Joined on Sat, Jan 8 2011
    • Posts 2
    • Points 25
    callback when descending in layout hierarchy Reply

     Hi,

    I opened a layout from library manager and now I want to run a "callback" when I descend in the hierarchy and return to the top level. I found some information about "adding a preObjAccess Trigger  to ddGetObj" but I'm not sure whether this is the right way to solve my issue.

    When I register this trigger with the code

     

    ddRegTrigger( "PreObjAccess" 'testfunc)

    procedure( testfunc(theLibName theCellName theViewName theFileName theContextId theMode)

     printf("%L %L %L %L %L %L" theLibName theCellName theViewName theFileName theContextId theMode)

    );proc 

    and I descend in the layout hierarchy this function prints a lot of lines looking like:

    "testLib" "testCellView" "layout" nil nil nil

     "testLib" "testCellView" nil nil nil "r"

    "testLib" "testCellView" "symbol" nil nil "r"

    .........

    Because of these outputs I'm not sure how to deal with this trigger. Perhaps it is not the right way to handle my needs.

     

    Regards René

    • Post Points: 20
  • Wed, Mar 13 2013 4:25 PM

    Re: callback when descending in layout hierarchy Reply

    You should use deRegUserTriggers to do this - the args DPL passed into the triggers gives an action to say whether you were pushed, popped etc.

    Regards,

    Andrew.

    • Post Points: 20
  • Mon, Mar 18 2013 7:30 AM

    • hihi
    • Not Ranked
    • Joined on Sat, Jan 8 2011
    • Posts 2
    • Points 25
    Re: callback when descending in layout hierarchy Reply

     Hi Andrew,

    thanks a lot for your hint. I have implemented my function using this trigger and it works fine.

    Regards,

    René

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by hihi at 13 Mar 2013 02:28 AM. Topic has 2 replies.