rodCreateHandle - how to prevent warnings?

Discussion in 'Cadence' started by Sylvio Triebel, Jul 14, 2006.

  1. Hi,
    I'm extensively using rodCreateHandle in my layout generators...
    (icfb sub-version 5.10.41.500.2.23)

    It works fine except that I get a lot of warnings which slow down the whole framework:
    *WARNING* dbOpenBag: Failed to open prop. bag for 'cdsDefTechLib' in 'r' mode, file not found

    This is only for ?type "point" handles, ?type "float" works without warning....

    The layout generator generates the layout in a library which is attached to a valid techLib.

    Is there something special to look at?
    From where could rodCreateHandle get the string "cdsDefTechLib"?

    Both,
    techGetTechFile(rodId~>cvId)~>libName
    techGetTechFile(rodId~>cvId)~>fileName
    will return expected values...

    Thanks for any feedback,
    Sylvio


    P.S.: my current workaround:

    oldwoport = poport
    devNull = outfile("/dev/null")
    woport = devNull ;suppress all warnings

    create handles .....


    close(devNull)
    woport = oldwoport


    Perhaps there is also a better way to inactivate outputs...
     
    Sylvio Triebel, Jul 14, 2006
    #1
  2. I don't see why rodCreateHandle should be accessing any property bags. You don't
    show the code that is causing this - it might reveal something.

    Perhaps the warning isn't coming from the place in the code that you think it
    is? Remember that warnings are deferred until the next warning, or until
    getWarn() is called, to get you an opportunity to swallow warnings using
    getWarn().

    Andrew.
     
    Andrew Beckett, Aug 16, 2006
    #2
  3. Hi,
    thanks for the late answer...

    The target library has always a prop.xx file (the property techLibName...)
    ....only the cdsDefTechLib has no prop.xx file.

    By the way, it seems now difficult to reproduce the error.
    At the moment I can't see the warnings if I disable the woport re-direction.
    Perhaps it is related with the structure of the techfile??
    We get frequently new versions. The icfb version is still the same.

    I'm only sure that the warning was related with rodCreateHandle.
    But I don't have time to investigate more time on this issue.

    Regards,
    Sylvio

    PS: here some code... but I don't think that it will reveal something.

    I located the occurence of the warning with "printf debugging".
    To use the same stream buffer I used fprintf(woport "mark 1\n") ...

    fprintf(woport "mark 1\n")
    rodId = rodGetObj("" currentCellView)

    rodCreateHandle( ?rodObj rodId ?type "float"
    ?name strcat(glayer->name "_width")
    ?value x1-x0 )
    rodCreateHandle( ?rodObj rodId ?type "float"
    ?name strcat(glayer->name "_height")
    ?value y1-y0 )

    ;;the following lines create the warnings
    fprintf(woport "mark 2\n")
    rodCreateHandle( ?rodObj rodId ?type "point"
    ?name strcat(glayer->name "_lowerLeft")
    ?value x0:y0 )
    rodCreateHandle( ?rodObj rodId ?type "point"
    ?name strcat(glayer->name "_lowerRight")
    ?value x1:y0 )
    rodCreateHandle( ?rodObj rodId ?type "point"
    ?name strcat(glayer->name "_upperLeft")
    ?value x0:y1 )
    rodCreateHandle( ?rodObj rodId ?type "point"
    ?name strcat(glayer->name "_upperRight")
    ?value x1:y1 )

    fprintf(woport "mark 3\n")

    =>
    mark 1
    mark 2
    *WARNING* dbOpenBag: Failed to open prop. bag for 'cdsDefTechLib' in 'r' mode, file not found
    *WARNING* dbOpenBag: Failed to open prop. bag for 'cdsDefTechLib' in 'r' mode, file not found
    *WARNING* dbOpenBag: Failed to open prop. bag for 'cdsDefTechLib' in 'r' mode, file not found
    *WARNING* dbOpenBag: Failed to open prop. bag for 'cdsDefTechLib' in 'r' mode, file not found
    mark 3
     
    Sylvio Triebel, Aug 22, 2006
    #3
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.