• 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 save the current display layers using SKILL??

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 143
  • Views 16424
  • 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 save the current display layers using SKILL??

howardhaoracle
howardhaoracle over 12 years ago

Hi..

How can I save the current display layers I have in my layout by using SKILLcommand?? I looked at the SKILL vocabulary, I cant find

any command that would apply to this case??

Here is the steps I have to do manually  to save my display layers :

From the LSW window: Edit-->Save-->(select File button) then enter the name I want to save to...

 Thanks for your help

Howard

 

  • Cancel
  • kb how
    kb how over 12 years ago

    Hi Howard,

    Are you trying to save the display setting for LSW to a display.drf file? You can just use command  drDumpDrf to dump out the drf info to a file.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • howardhaoracle
    howardhaoracle over 12 years ago

    Hi How..

    Thanks for answering my question.. But it seems the SKILL command drDumpDrf doesnt do what I want.. 

    Here is what I want:

    example:  In a layout, I have M1, M2 and poly layers visible and I want to save that setting . I can do that manually by

    From the LSW window-->Edit-->Save--> ( I can save it to a file).. Now if I want to load up that setting, I can do: drLoadDrf("file"),

    it will load up my setting properly..

    The SKILL command drDumpDrf will save the setting to a file but when I try  drLoadDrf("file"), it doesnt load up my setting properly..

     Thanks for your help

    Howard

     

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

    Howard,

    drDumpDrf and drLoadDrf are nothing to do with what is visible or not - that's just saving the display resource information (packets, colors, line styles etc).

    Which version of the tools are you using?

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • howardhaoracle
    howardhaoracle over 12 years ago

    Hi Andrew;

    The OPUS version I am using is 6.1.5.. 

    Please show me on how to save the current layers setting by SKILL command.. Now, I only know how to save the setting

    manually by: 

    LSW->Edit->Save-> (save to a file) then load it up by: drLoadDrf("file").. Quite tedious..:(

     Thanks

    Howard

     

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

    OK, you must be using the old LSW (not the layer palette?). The function to save the LSW info is a private function.

    BTW, you should use load() not drLoadDrf() to load it...

    However, which aspects of what's in this file do you really want?  Maybe I can just write a cut-down version?

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • howardhaoracle
    howardhaoracle over 12 years ago

    Hi Andrew;

    You are right.. I am not using the layer pallette.. I like to have the separate LSW window..

    I just want save the current visible layers I have in the LSW then load it up again when I want ..

    Example: in a layout I have M1,M2, and poly... After a while, I want to have those layers again, I can go

    to the LSW and turn those layers on again.. But that's not efficient way..,, So if I can write to a file of those

    layers and then load it up whenever I want would be great..:)

     Thanks

    Howard

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 12 years ago

    Hi Howard,

    Have you tried the Layers Palette?  This can be undocked or unattached from the layout window (in IC616 we can have the Palettes synchronised between all layout windows, or one-unique-per-window Palette).  The reason I say this is that the Palette extends the LSW Layer Set capability quite considerably, and it sounds as if it is this Layer Set feature that you need - to save which layers you have in the Palette/LSW.  You can not only save which layers, but also whether they are visible or selectable too (again, IC616 further extends the features available, such as other objects, e.g. the ruler).

    Hopefully the features you need are already built into the tool.  Can you take a look and let us know if it meets your needs?

    Regards,

    Lawrence.

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

    Here's some code I threw together (not really tested thoroughly) to dump the info. See the comments:

    /* abDumpLayerAttributes.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Sep 10, 2013 
    Modified   
    By         
    
    Function to save information similar to the "save LSW info"
    menu in the LSW or Palette 
    
    Call:
    
    abDumpLayerAttributes("./dump.file")
    
    To load the resulting file, use:
    
    load("./dump.file")
    
    Note that there is probably an assumption that the layout window
    is open before doing this...
    
    Also, the object settings have not been thoroughly tested, so
    apologies if there are any typos in the object names.
    
    ***************************************************
    
    SCCS Info: @(#) abDumpLayerAttributes.il 09/10/13.13:10:43 1.1
    
    */
    
    /***************************************************************
    *                                                              *
    *             abDumpLayerAttributes(fileName [tf])             *
    *                                                              *
    *    Dump the object and layer attributes for a given tech     *
    * file (default is the one associated with the current window) *
    * into the specified file name. The resulting file is a SKILL  *
    *                  file which can be loaded.                   *
    *                                                              *
    ***************************************************************/
    
    procedure(abDumpLayerAttributes(fileName @optional 
        (tf techGetTechFile(geGetEditCellView())))
        let((port)
    	port=outfile(fileName)
    	unless(port
    	    error("Unable to write to file %L\n" fileName)
    	)
    	fprintf(port "let((tf)\n  tf=techGetTechFile(ddGetObj(%L))\n"
    	    tf~>libName)
    	;----------------------------------------------------------------
    	; not all of these objects make sense to be visible and/or
    	; selectable, but never mind...
    	;----------------------------------------------------------------
    	foreach(object
    	    '("inst" "pin" "via" "Groups" "P&R" "Snap" "Area" "Cluster" 
    	    "SoftBlock P&R" "SoftBlock Snap" "SoftBlock Pin" "Halo" 
    	    "Placement" "Routing" "Fill" "Slot" "Pin" "Feedthru" 
    	    "Screen" "track" "RoutingGrid" "PlacementGrid"
    	    "Shapes" "Circle/Ellipse" "Donut" "Label" "Path"
    	    "PathSeg" "Polygon" "Rectangle" "Other Shapes"
    	    "Fluid Guardring" "Mosaic"
    	    )
    	    fprintf(port "  leSetObjectVisible(%L %L)\n"
    		object leGetObjectVisible(object))
    	    fprintf(port "  leSetObjectSelectable(%L %L)\n"
    		object leGetObjectSelectable(object))
    	)
    	;----------------------------------------------------------------
    	; Now the layer attributes
    	;----------------------------------------------------------------
    	fprintf(port "  leSetLayerAttributes(tf\n")
    	foreach(lp tf~>lps
    	    fprintf(port "    list( '(%L %L) %L %L %L)\n"
    		lp~>name lp~>purpose lp~>valid lp~>selectable lp~>visible
    	    )
    	)
    	fprintf(port "  )\n")
    	fprintf(port "  leSetEntryLayer('%L tf)\n"
    	    leGetEntryLayer(tf)
    	)
    	fprintf(port ")\n")
    	close(port)
        )
    )
    
    
    

     

    • 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