SCTestECC:
CEDAR
PROGRAM
IMPORTS CDIO, CDOps, Rope, SC, SCTestUtil
SHARES SC =
BEGIN
cellType: Core.CellType;
result: SC.Result;
cdDesign: CD.Design;
rules: SC.DesignRules;
handle: SC.Handle;
libName: Rope.ROPE ←"PLTCELLTest.dale";
hMaterial: Rope.ROPE ← "metal";
vMaterial: Rope.ROPE ← "metal2";
libDesign: CD.Design ← CDIO.ReadDesign[libName];
cellType ← SCTestUtil.CreateCore[];
IF libDesign =
NIL
THEN
SC.Signal[callingError, Rope.Cat["Unable to load library: ", libName]];
cdDesign ← CDOps.CreateDesign[libDesign.technology];
rules ← SC.CreateDesignRules[cdDesign.technology.key, hMaterial, vMaterial, horizontal];
handle ← SC.CreateHandle[cellType, cdDesign, libDesign, rules, "SCTestECC"];
SC.InitialPlace[handle, 0];
SC.PlaceImprove[handle: handle, t0: 60000, eqVarLimit: 0.0075, fzVarLimit: 0.03, alpha: 0.985, eqTabSize: 500];
SC.GlobalRoute[handle];
SC.PosImprove[handle, 1];
SC.OrientImprove[handle, 1];
result ← SC.DetailRoute[handle];
SCTestUtil.WriteLayout[result, cdDesign];
END.