• 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 16425
  • 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
Parents
  • 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
Reply
  • 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
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