Thanks Austin I created a simple pcell and its working fine.
But still finding it difficult to use "case" function in a pcell code encapsulation(ie both procedure and pcDefinePCell).As i mentioned earlier inside the case statement i wnt to pass "type" as my argument.So when i vary the "type" say "width" (in the pcell) my case statement should be able to develop 1 layer. When "type" is "space" case statement should fetch me two layers such that they get separated by another parameter like "spacing" and when type is "enclose" case statement should fetch 2 layers with layers being enclosed by another parameter "overlap".
So my formal arguments section should have 2 layers,separate width(w1,w2-for each layers),separate lengths(l1,l2),type,overlap,spacing and a comment option which specifies type we carried out.
So formal argument section should luk something like,
(
(layer1 "POLY")
(l1 0.5)
(w1 0.75)
(layer2 "ACTIVE")
(l2 0.6)
(w2 0.9)
(type "width")
(comment "width check")
(spacing 0.75)
(overlap 0.5)
);end of parameters
How can i do these?
Can anyone just give me an example and help me out.
Thnks,
Messi