AnsweredAssumed Answered

how to add metal layer

Question asked by mfaisalazri@gmail.com on Jul 23, 2020
Latest reply on Jul 27, 2020 by mfaisalazri@gmail.com

Hi I write this script but its wrong some where please advice?

 

///////////////////////////////////
// LAYER DERIVATIONS AND OPERATIONS
///////////////////////////////////

//-----------------------------
// Define Metal resistor
//-----------------------------

M1RES = ME1 AND PIXELMK
ME1 = MET1 NOT M1RES

M6RES = ME6 AND WSYMBOL
ME6 = MET6 NOT M6RES

 

//////////////////////////
// Resistor Devices
//////////////////////////
//-------------------------

 

//-------------------------------------
// Metal resistor
//-------------------------------------


IFDEF XRC_or_CCI
DEVICE R(res M1) M1RES ME1(POS) ME1(NEG)
[
PROPERTY W,L,RES
W = PERIMETER_COINCIDE(ME1RES, ME1) / 2
L = AREA(ME1RES) / W
Rs = 408*W/(W-0.32e-6)
RES = Rs*L/W
]

#ELSE
DEVICE R(res m1) M1RES ME1(POS) WEL(NEG)
[
PROPERTY W,L,R
W = PERIMETER_COINCIDE(ME1RES, ME1) / 2
L = AREA(ME1RES) / W
Rs = 408*W/(W-0.32e-6)
R = Rs*L/W
]
TRACE PROPERTY R(res M1) R R resR_Tol
//TRACE PROPERTY R(res M1) L L 3
//TRACE PROPERTY R(res M1) W W 3
#ENDIF

I believe my if else condition is wrong anyone please advice. 

Outcomes