CreateWholeChip:
PROC
RETURNS [cellType: CellType] = {
iL: CellInstances ← LIST [Instance[innerCt]];
iL ← PadFrame.AddPad[iL, "Top1", $In, 2, ["toChip", "top1"]];
iL ← PadFrame.AddPad[iL, "Top2", $In, 6, ["toChip", "top2"]];
iL ← PadFrame.AddPad[iL, "Top3", $In, 11, ["toChip", "top3"]];
iL ← PadFrame.AddPad[iL, "Xx", $In, 15, ["toChip", "xx"]];
iL ← PadFrame.AddPad[iL, "Yy", $In, 16, ["toChip", "yy"]];
iL ← PadFrame.AddPad[iL, NIL, $Logo, 17];
cellType ← Cell[name: "WholeChip",
public: Wires["Top1", "Top2", "Top3", "Xx", "Yy", "PadVdd", "PadGnd", "Vdd", "Gnd"],
onlyInternal: Wires["top1", "top2", "top3", "xx", "yy"],
instances: iL];
PWCore.SetLayout[cellType, $PadFrame, PadFrame.padFrameParamsProp, NEW[PadFrame.PadFrameParametersRec ← [nbPadsX: 5, nbPadsY: 4, horizLayer: "met", vertLayer: "met2"]]];
};