V
vtcad
Guest
I'm attempting to learn how to build a pcell using skill, I've put
together the following code, but need some ideas on how to add drain/
source contacts and make the device multiple fingers. Any examples of
code would be greatly appreciated.
pcDefinePCell(
list(ddGetObj("roland_pcells") "mpbl" "layout")
(
(width float 1.4)
(length float 0.6)
)
pact = rodCreateRect(
?name "pact"
?cvId pcCellView
?layer "pact"
?bBox list(0:0 length+4:width)
);end rod
pgate = rodCreateRect(
?name "pgate"
?cvId pcCellView
?layer "pgate"
?bBox list(2:-.6 2+length:width+.6)
);end rod
rodAssignHandleToParameter(
?parameter "width"
?rodObj pact
?handleName list("upperCenter")
?displayName "width"
?stretchDir "y"
?stretchType "relative"
?moveOrigin t
) ; end rodAssignHandleToParameter
rodAssignHandleToParameter(
?parameter "length"
?rodObj pgate
?handleName list("lowerRight")
?displayName "length"
?stretchDir "x"
?stretchType "relative"
?moveOrigin t
) ; end rodAssignHandleToParameter
t
)
together the following code, but need some ideas on how to add drain/
source contacts and make the device multiple fingers. Any examples of
code would be greatly appreciated.
pcDefinePCell(
list(ddGetObj("roland_pcells") "mpbl" "layout")
(
(width float 1.4)
(length float 0.6)
)
pact = rodCreateRect(
?name "pact"
?cvId pcCellView
?layer "pact"
?bBox list(0:0 length+4:width)
);end rod
pgate = rodCreateRect(
?name "pgate"
?cvId pcCellView
?layer "pgate"
?bBox list(2:-.6 2+length:width+.6)
);end rod
rodAssignHandleToParameter(
?parameter "width"
?rodObj pact
?handleName list("upperCenter")
?displayName "width"
?stretchDir "y"
?stretchType "relative"
?moveOrigin t
) ; end rodAssignHandleToParameter
rodAssignHandleToParameter(
?parameter "length"
?rodObj pgate
?handleName list("lowerRight")
?displayName "length"
?stretchDir "x"
?stretchType "relative"
?moveOrigin t
) ; end rodAssignHandleToParameter
t
)