• 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. Place multiple instances in layout editor window with co...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 13613
  • 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

Place multiple instances in layout editor window with co-ordinates as specified in the text file and check if the layout is on grid.

ManuNarayan
ManuNarayan over 14 years ago

Hi all,

I am facing a problem in writing a code for following query .

Place multiple instances in layout editor window with co-ordinates as specified in the text file and check if the layout is on grid.

my text file would be (cell name) (x y) , please help in the regards,  
  • Cancel
Parents
  • Austin CAD Guy
    Austin CAD Guy over 14 years ago

     Quote: my text file would be (cell name) (x y) ,

    Your format needs to be very specific, the example you gave is unclear. Is there a space between the cellName and the parentheses? There cannot be a space in the cell name. Do you have control over the output format of the file?

    I have tried using fscanf but it is subject to the format. A better solution is to use lineread which is less sensitive to the format, it interprets the data as if it were SKILL. It will return a list of the parsed data. According to your format, it will be the following:

    list( list(myCell) list(3.3 5.2))

    Because the cell name is not surrounded by quotes, it is a symbol, use get_pname to turn it into a string:

    cell = get_pname(caar(curLine))

    The second element in the list is  the point for placement.

    Use dbCreateInst to do the placement. See the document for the format.

    As for checking for layout on grid, it depends on what you are trying to do. If it is for the placement points, I would process that before placing the instance. If you want to check the resulting hierarchical data, use a DRC checkeras it would be much faster.

    Ted

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Austin CAD Guy
    Austin CAD Guy over 14 years ago

     Quote: my text file would be (cell name) (x y) ,

    Your format needs to be very specific, the example you gave is unclear. Is there a space between the cellName and the parentheses? There cannot be a space in the cell name. Do you have control over the output format of the file?

    I have tried using fscanf but it is subject to the format. A better solution is to use lineread which is less sensitive to the format, it interprets the data as if it were SKILL. It will return a list of the parsed data. According to your format, it will be the following:

    list( list(myCell) list(3.3 5.2))

    Because the cell name is not surrounded by quotes, it is a symbol, use get_pname to turn it into a string:

    cell = get_pname(caar(curLine))

    The second element in the list is  the point for placement.

    Use dbCreateInst to do the placement. See the document for the format.

    As for checking for layout on grid, it depends on what you are trying to do. If it is for the placement points, I would process that before placing the instance. If you want to check the resulting hierarchical data, use a DRC checkeras it would be much faster.

    Ted

    • 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