Home > Community > Forums > Custom IC SKILL > how to save the current display layers using SKILL??

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 how to save the current display layers using SKILL?? 

Last post Tue, Sep 10 2013 5:18 AM by Andrew Beckett. 8 replies.
Started by howardhaoracle 06 Sep 2013 06:48 PM. Topic has 8 replies and 1594 views
Page 1 of 1 (9 items)
Sort Posts:
  • Fri, Sep 6 2013 6:48 PM

    how to save the current display layers using SKILL?? Reply

    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

     

    • Post Points: 20
  • Sun, Sep 8 2013 6:38 PM

    • kb how
    • Top 100 Contributor
    • Joined on Thu, May 5 2011
    • Melaka, Melaka
    • Posts 76
    • Points 1,030
    Re: how to save the current display layers using SKILL?? Reply

    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.

    -How-
    • Post Points: 20
  • Sun, Sep 8 2013 7:55 PM

    Re: how to save the current display layers using SKILL?? Reply

    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

     

    • Post Points: 20
  • Mon, Sep 9 2013 1:42 AM

    Re: how to save the current display layers using SKILL?? Reply

    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.

    • Post Points: 20
  • Mon, Sep 9 2013 10:21 AM

    Re: how to save the current display layers using SKILL?? Reply

    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

     

    • Post Points: 20
  • Mon, Sep 9 2013 10:49 AM

    Re: how to save the current display layers using SKILL?? Reply

    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.

    • Post Points: 20
  • Mon, Sep 9 2013 3:00 PM

    Re: how to save the current display layers using SKILL?? Reply

    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

     

     

    • Post Points: 20
  • Mon, Sep 9 2013 3:51 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: how to save the current display layers using SKILL?? Reply

    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.

    • Post Points: 20
  • Tue, Sep 10 2013 5:18 AM

    Re: how to save the current display layers using SKILL?? Reply

    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)
        )
    )
    
    
    

     

    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by howardhaoracle at 06 Sep 2013 06:48 PM. Topic has 8 replies.