• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. How to flatten mosaic?

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 15336
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to flatten mosaic?

archive
archive over 19 years ago

I'd like flatten all instances including mosaic in current cellview(layout).

I have used skill code such like follows.

A = hiGetCurrentWindow()->cellView
B = A->instances
foreach(C B dbFlattenInst(C 32 t nil nil))

*Error* dbFlattenInst: invalid instId or mosaicId - db:64685232

If I delete mosaic(db:64685232), everything is ok.
How to solve this problem?
I strong guess that "dbFlattenInst" can not flatten mosaic.


Originally posted in cdnusers.org by BAEK
  • Cancel
Parents
  • archive
    archive over 19 years ago

    Baek,

    For the mosaic instance to be flattened, one needs to pass the mosaicId instead of the instanceID to the leFlattenInst command.
     
    Something like the following (from sourcelink solution 11186852) will work:
    -------------------------
    procedure( CCSleFlattenInst(libName cellName )

      let( (cv topInstList )

          if( ddGetObj( libName cellName "layout" ) then

          cv = dbOpenCellViewByType( libName cellName "layout" "maskLayout" "a")

          ;open the layout in non graphical mode

        )

        topInstList = cv~>instances 

        ;get a list of all instances in the cellview


    foreach(inst topInstList

         if(inst~>mosaic  then

          leFlattenInst( inst~>mosaic 31 t nil nil ) 

        ;flatten the mosaic instance

           );if

    leFlattenInst( inst 31 t nil nil )

    ;if it is not a  mosaic flatten with this code

       );foreach

         ;dbSave(cv)   ;optional save command
           ;dbClose(cv)  ;optional close command

          );let

    );procedure


    Originally posted in cdnusers.org by lindam
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • archive
    archive over 19 years ago

    Baek,

    For the mosaic instance to be flattened, one needs to pass the mosaicId instead of the instanceID to the leFlattenInst command.
     
    Something like the following (from sourcelink solution 11186852) will work:
    -------------------------
    procedure( CCSleFlattenInst(libName cellName )

      let( (cv topInstList )

          if( ddGetObj( libName cellName "layout" ) then

          cv = dbOpenCellViewByType( libName cellName "layout" "maskLayout" "a")

          ;open the layout in non graphical mode

        )

        topInstList = cv~>instances 

        ;get a list of all instances in the cellview


    foreach(inst topInstList

         if(inst~>mosaic  then

          leFlattenInst( inst~>mosaic 31 t nil nil ) 

        ;flatten the mosaic instance

           );if

    leFlattenInst( inst 31 t nil nil )

    ;if it is not a  mosaic flatten with this code

       );foreach

         ;dbSave(cv)   ;optional save command
           ;dbClose(cv)  ;optional close command

          );let

    );procedure


    Originally posted in cdnusers.org by lindam
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information