dbFlattenInst and lot of warnings.

Discussion in 'Cadence' started by Marcel Preda, Nov 25, 2010.

  1. Marcel Preda

    Marcel Preda Guest

    Hi all,

    I have a pice of code which wants to flatten the entire hierarchy (I
    need some layers to have all the sapes on top)

    The code is like:
    ~~~~~~~~~~~~~~~~~~
    foreach( inst cv->instances
    when(inst->objType == "inst"
    dbFlattenInst(inst 32 t nil nil)
    )
    )

    foreach( mosaic cv->mosaicss
    when( mosaic->objType == "mosaic"
    dbFlattenInst(mosaic 32 t nil nil)
    )
    )
    ~~~~~~~~~~~~~~~~~~

    The code seems to be working well but I get hundreds of warnings like:

    \w *WARNING* cannot copy Text Display object by itself
    \w *WARNING* The given type 0 is not a valid fig type

    Any idea about how can I get ride of those warnings ?

    icfb version: 5.10.41.500.6.131

    Thank you,
    Marcel
     
    Marcel Preda, Nov 25, 2010
    #1
  2. Marcel Preda wrote, on 11/25/10 07:49:
    (Trying posting again - having some troubles with the news server I was using
    last week)

    Hi Marcel,

    I'm less sure about the "The given type 0 is not a valid fig type" messages, but
    the textDisplay messages are due to the fact that dbFlattenInst doesn't handle
    these - because it needs to associate the textDisplay with the new flattened
    object - and it can't do that.

    The only way I can think of to swallow the warnings is to surround your code with:

    let(((nullport outfile("/dev/null")))
    when(nullport
    let(((woport nullport))
    ; your code goes here
    )
    close(nullport)
    )
    )

    this will redirect all warnings to /dev/null.

    Regards,

    Andrew.
     
    Andrew Beckett, Nov 29, 2010
    #2
  3. Marcel Preda

    Marcel Preda Guest

    Thank you,

    I've use the trick, it works .


    BR,
    Marcel
     
    Marcel Preda, Nov 29, 2010
    #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.