thank first for you guys' answer. but actually I want to know when will IN_S==0 or IN_D==0 in the following calibre xrc extraction. Someone told me that it happened when it has dummy transistors, but how come IN_D =0? Is it for the dummy transistor? or is it happened for normal transistor? Thanks again!
DEVICE MP(P) pgate POLY PSD PSD WEL <PDIFF>
DMACRO MOSPROP DEVICELAYER PIN AUX1{
[Property W,L,AD,AS,PD,PS
W=PERIMETER_COINCIDE(DEVICELAYER,PIN)/2
L=AREA(DEVICELAYER)/W
IN_D=PERIMETER_INSIDE(D,AUX1)
IN_S=PERIMETER_INSIDE(S,AUX1)
IF(IN_S==0){
AD=AREA(D)*W/IN_D
PD=PERIMETER(D)*W/IN_D-W
AS=AD
PS=PD
}
ELSE
IF(IN_D==0){
AS=AREA(S)*W/IN_S
PS=PERIMETER(S)*W/IN_S-W
AD=AS
PD=PS
}
Else{
AD=AREA(D)*W/IN_D
PD=PERIMETER(D)*W/IN_D-W
AS=AREA(S)*W/IN_S
PS=PERIMETER(S)*W/IN_S-W
}
]
}