/*********************************************
replace one cell
*********************************************/
procedure(ZtC2SCell(lib cell)
printf("^_^ Cell\"%s\" begins! \n" cell)
when(cv=dbOpenCellViewByType(lib cell "schematic" "" "a") ;open the cellview by "edit" mode
foreach(instID cv~>instances
deviceName=instID~>cellName
case(deviceName
("nch_18ud15_mac" Zt_nmos(instID))
("pch_18ud15_mac" Zt_pmos(instID))
) ;end case deviceName
);end foreach instID
schCheck(cv)
dbSave(cv)
dbClose(cv)
printf("^_^ Cell \"%s\" is finished! \n" cell)
);end when cv
);end procedure Zt2CScell
/*NMOS*/
procedure(Zt_nmos(instID)
/*get old parameters*/
let((w l m fingers newInstID cdf params property_param x cdfgData)
instID~>fw=instID~>width
instID~>l=instID~>length
/*callback and update*/
cdfgDate=cdfGetInstCDF(instID)
foreach(param cdfgData~>parameters
when(param~>callback evalstring(param~>callback))
);end foreach param
cdfUpdateInstParam(instID)
);end let
);end procedure Zt_nmos
procedure(Zt_pmos(instID)
/*get old parameters*/
let((w l m fingers newInstID cdf params property_param x cdfgData)
instID~>fw=instID~>width
instID~>l=instID~>length
/*callback and update*/
cdfgDate=cdfGetInstCDF(instID)
foreach(param cdfgData~>parameters
when(param~>callback evalstring(param~>callback))
);end foreach param
cdfUpdateInstParam(instID)
);end let
);end procedure Zt_pmos
/*********************************************
replace one cell
*********************************************/
procedure(ZtC2SCell(lib cell)
printf("^_^ Cell\"%s\" begins! \n" cell)
when(cv=dbOpenCellViewByType(lib cell "schematic" "" "a") ;open the cellview by "edit" mode
foreach(instID cv~>instances
deviceName=instID~>cellName
case(deviceName
("nch_18ud15_mac" Zt_nmos(instID))
("pch_18ud15_mac" Zt_pmos(instID))
) ;end case deviceName
);end foreach instID
schCheck(cv)
dbSave(cv)
dbClose(cv)
printf("^_^ Cell \"%s\" is finished! \n" ceggll)
);end when cv
);end procedure Zt2CScell
/*NMOS*/
procedure(Zt_nmos(instID)
/*get old parameters*/
let((w l m fingers newInstID cdf params property_param x cdfgData)
instID~>fw=instID~>width
instID~>l=instID~>length
/*callback and update*/
cdfgDate=cdfGetInstCDF(instID)
foreach(param cdfgData~>parameters
when(param~>callback evalstring(param~>callback))
);end foreach param
cdfUpdateInstParam(instID)
);end let
);end procedure Zt_nmos
procedure(Zt_pmos(instID)
/*get old parameters*/
let((w l m fingers newInstID cdf params property_param x cdfgData)
instID~>fw=instID~>width
instID~>l=instID~>length
/*callback and update*/
cdfgDate=cdfGetInstCDF(instID)
foreach(param cdfgData~>parameters
when(param~>callback evalstring(param~>callback))
);end foreach param
cdfUpdateInstParam(instID)
);end let
);end procedure Zt_pmos