Can anyone please help in writing a code to create pcell.I would like to have these as the pcell parameters:3-4 rectangles(layers),width,length and type..Each rectangle should use different layer like layer1 ACTIVE,layer2 POLY etc...I want the layers to be created based on parameter "type".
Based on this parameter it should create these rectangles..eg: if type is case("Width")- it should create single layer like layer1.if case is "overlap" it should create 2 layers say layer1 and layer2.
Can anyone please help me out..
The case statement is a conditional which evaluates the test once and branches to the matching condition. If the condition is a list, the conditional can match any of elements of the list. Note that after executing the code in the branch, execution automatically jumps to the next statement after the case statement and does not evaluate any other branches in the case statement.
case( type( "myType1" ;; Do myType1 stuff here)
( "width" ; Do width stuff here )
( ("length" "area") ;; Do stuff for either length or area)
( t ; Optional block if no other branch is executed ;; Stuff for the non matching types error( "%s: Unknown type %s." getCallingFunction(0) type ))
) ;; end of case statement.