mode in dd trigger 'preObjAccess'?

Discussion in 'Cadence' started by Fergus_S, Apr 19, 2006.

  1. Fergus_S

    Fergus_S Guest

    If I define and register a procedure for the dd preObjAccess trigger:

    procedure(myPreObjAccess(lib cell view file contextId mode )
    printf("lib:%L cell:%L view:%L file:%L contextId:%L mode:%L\n"
    lib cell view file contextId mode )
    ); procedure myPreObjAccess
    ddRegTrigger( "preObjAccess" 'myPreObjAccess )

    and open an existing cellview for edit:

    cvId = dbOpenCellViewByType("myLib" "myCell" "layout" "" "a")

    I expect myPreObjAccess to be called with mode "a", but it prints:

    lib:"myLib" cell:"myCell" view:"layout" file:"layout.cdb"
    contextId:nil mode:"r"

    So my question is - why is preObjAccess being called with mode "r" and
    not "a"?
    Can I change that behaviour?

    Thanks,

    fergus
     
    Fergus_S, Apr 19, 2006
    #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.