Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SKILL CODE sample on how to hide and show specific layers???

Status
Not open for further replies.

fixrouter4400

Full Member level 4
Joined
Feb 6, 2007
Messages
193
Helped
29
Reputation
58
Reaction score
6
Trophy points
1,298
Activity points
2,371
skill code examples

Hi People!

I just want to ask if someone out there know or have some sample codes on how to show(Visible) or hide layers(Not Visible) in VXL(LSW). I know the AV,NV etc button and the right click mouse thing...but what I'm looking at is the sample codes that can get me started and use it in my tech process...I really hate selecting and deselecting layers in LSW.

For instance I want to show only metal layers in one click (bind keys in the middle button and select layers you want to on and off)...or metals and vias on all layers are off...or metal1, metal2 and via1 on all layers off.

Would you be so kind to show me how to do it.

Cheers,

fixrouter4400
 

skill coding

you could do like this

leSetAllLayerValid( t )
leSetEntryLayer( '("metal1" "drawing") )
leSetAllLayerVisible( nil )
foreach( laylsw list(
`("metal1" "drawing")
`("metal2" "drawing")
`("via1" "drawing")
)
leSetLayerVisible( laylsw t )
leSetLayerSelectable( laylsw t )
) ;


did not test it, hope it will work

you should place it in a procedure and then in a file that you can loadusing the commad:
load("filename.il")
Something like:

procedure( SetMetalsVisible()

;put here the code above
); end procedure
 

geopen() skill

Hi yashiro,

Thanks for the reply...but can you just verify this...Is this what you mean?
Once the code is written, then i need to save it e.g filename.il and load it in icfb is that right?

Cheers,

procedure( SetMetalsVisible()

leSetAllLayerValid( t )
leSetEntryLayer( '("metal1" "drawing") )
leSetAllLayerVisible( nil )
foreach( laylsw list(
`("metal1" "drawing")
`("metal2" "drawing")
`("via1" "drawing")
)
leSetLayerVisible( laylsw t )
leSetLayerSelectable( laylsw t )
) ;
); end procedure

yashiro said:
you could do like this

leSetAllLayerValid( t )
leSetEntryLayer( '("metal1" "drawing") )
leSetAllLayerVisible( nil )
foreach( laylsw list(
`("metal1" "drawing")
`("metal2" "drawing")
`("via1" "drawing")
)
leSetLayerVisible( laylsw t )
leSetLayerSelectable( laylsw t )
) ;


did not test it, hope it will work

you should place it in a procedure and then in a file that you can loadusing the commad:
load("filename.il")
Something like:

procedure( SetMetalsVisible()

;put here the code above
); end procedure
 

layout skill layer

you are right
after you edited the code in a file that you named filename.il you type this in icfb:

load( "<path>/filename.il")

and then

SetMetalsVisible()

and it should work

I will make some time to check it and wright to you soon


I did test it and its working.

Have a nice day :)
 

various skill code procedures

hi yashiro if you could do a test file and i'll test and make it customized in the tech process i'm doing. ..that would be nice of you.
 

lesetlayervisible

I do not understand you exactly but here you can find the file I used for testing
if in your LSW you have metal1 instead of met1 you should make the replacement
the same for met2 and via
 

only display used layer cadence skill

yashiro said:
I do not understand you exactly but here you can find the file I used for testing
if in your LSW you have metal1 instead of met1 you should make the replacement
the same for met2 and via

Hi yashiro,

I have started learning skill. Would you please suggest me how do i start and what kind of basic procedures should i start writing? Please help.
 

skill example code

Hi onlymusic16,
I am also a beginer in skill, but I can recomand you reading sklanguser.pdf.
I think you can find this file if you make a search on edaboard
 

sample code for hiding layers within layers

thanks a lot

I want know how to open a jpeg img in cadence windwos use SKILL?

thanks again
 

hide show layers examples

HELLO YASHIRO,


I HAD EXECUTED THE ATTACHED SKILL FILE IN MY ICW.

FOR THE FIRST COMMAND load("meatlvisible.il").

I GOT THE ANSWER AS t WHICH INDICATES IT IS FINE.

THEN I USED THE COMMAND SetMetalsVisible()
FOR WHICH I GOT AN ERROR
*Error* leSetAllLayerValid: Cannot get current techFile in the LSW

WHAT SHOULD I DO. PLEASE REPLY ME IMMEDIATELY AS POSSIBLE REALLY ITS A GOOD PROGRAM.

AND ONE MORE THING CAN U GIVE ME SOME MORE WORKING AND INTERESTING SKILL PROGRAMS.PLAESE....


WAITING FOR UR REPLY

U CAN EMAIL TO ME sridhar540@rediffmail.com
 

skill layer names command

sridhar540 said:
HELLO YASHIRO,


I HAD EXECUTED THE ATTACHED SKILL FILE IN MY ICW.

FOR THE FIRST COMMAND load("meatlvisible.il").

I GOT THE ANSWER AS t WHICH INDICATES IT IS FINE.

THEN I USED THE COMMAND SetMetalsVisible()
FOR WHICH I GOT AN ERROR
*Error* leSetAllLayerValid: Cannot get current techFile in the LSW

WHAT SHOULD I DO. PLEASE REPLY ME IMMEDIATELY AS POSSIBLE REALLY ITS A GOOD PROGRAM.

AND ONE MORE THING CAN U GIVE ME SOME MORE WORKING AND INTERESTING SKILL PROGRAMS.PLAESE....


WAITING FOR UR REPLY

U CAN EMAIL TO ME sridhar540(at)rediffmail.com

Hi Sridhar,

You have to make sure that in the script you need to put the correct layer name. e.g. in the script there is "metal1" (M1) look at your LSW and put the corresponding layer name.
 

examples of show hide layer

Hi ,

for speed up the layout designing you can use skill coding.

You can approach the following way.

define a function and inside that write your skill script.

call this function using bindkeys.

So through the kyboard u can execute the script.

This is wat we use to do .

For getting skill reference you can search in EDA board itself, and you can get

information from cadence documentation also.


Hope that This will help you.
For any more thing let me know.

Regards,

Analayout.
 

loading skill code

Hi analayout - thanks for the info...but if you could be more specific and if possible...can share some sample skill script that would be much appreciated

cheers

analayout said:
Hi ,

for speed up the layout designing you can use skill coding.

You can approach the following way.

define a function and inside that write your skill script.

call this function using bindkeys.

So through the kyboard u can execute the script.

This is wat we use to do .

For getting skill reference you can search in EDA board itself, and you can get

information from cadence documentation also.


Hope that This will help you.
For any more thing let me know.

Regards,

Analayout.
 

cadence skill lsw layer select

Hi,

procedure(M1_visible() leSetAllLayerVisible(nil) leSetLayerVisible(list ("M1

drawing") t))

the above function will display only M1. the function name is M1_visible().

So to call this function from the layout window we can assign bindkey.

as follows.

hiSetBindKey("layout" "ctrl<key>1 "M1_visible()")


Now in the layout window if we type ctrl + 1 it will call M1_visible() function.
So that only M1 will be visible.




I think this will help you..



Regards,

Analayout.
 

skill coding examples

Hai all,
when I am writing the skill code
hiSetBindKey("Layout" "Ctrl<Key>1" "leSetEntryLayer(0) leSetLayerVisible(0 t) hiRedraw()")
i am getting error like
*Error* eval: undefined function - SetBindKey
can any one help me in this.
First how to start learning the skill ,
because the skill commands are used in different ways say, "geopen" is to open the window but i cant find this command in the user manual so I am little confused kindly help me in clearing that.
Rgds
Kumaran.s
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top