• 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 13611
  • 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
  • ManuNarayan
    ManuNarayan over 14 years ago
    Hi All ,

    Can anyone help me in this regards , I am serching for 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

    Thanking you,

    Regards,

    Arjun
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • ManuNarayan
    ManuNarayan over 14 years ago
    Below is my code, if any changes the code inform me .procedure(Inst_place()myport=infile("/h/arjus4/scripts/skill/inst_place.text")let((master cellname data x y )while(gets(Line myport)data= parseString(Line " ()")cellname = nth(0 data)x = nth(1 data)  y = nth(2 data)a = techGetMfgGridResolution(techGetTechFile(deGetEditCellView()))if( mod(y a)== 0 && mod(x a)== 0printf("The Insatance are in Grid ")elseprintf("The Insatance are Not in Grid "))printf("The Given Cell is %s " cellname);printf("The Coordinate value is(%s %s)" x y);master = dbOpenCellViewByType("tsmcN90rf" cellname "layout")dbCreateInst(deGetEditCellView( ) master "" list(atof(x) atof(y)) "R0")))close(myport));

     
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Hard to read that given that the code has got squished onto a single line (perhaps you were using Chrome, which seems to have problems on this site). Maybe you can re-post from a different browser?

    One thing I noticed is that you seem to have used ; at the end of various lines (that's not necessary - in fact ";" means the start of a comment in SKILL). Won't affect the running of the code though.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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