SCTestPW.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
Last Edited by: Preas, September 5, 1985 10:39:21 am PDT
Bryan Preas September 5, 1985 10:37:21 am PDT
Use the file SCTestPW.cm to test routing:
Install Sc
cdread SCTestPW
run SCTestPW
middle click P in the ChipNDale viewer
select the appropriate generator
DIRECTORY
CD,
CDIO,
CDOps,
Core,
PW,
Rope,
SC,
SCTestUtil;
SCTestPW: CEDAR PROGRAM
IMPORTS CDIO, CDOps, PW, Rope, SC, SCTestUtil
SHARES SC =
BEGIN
debug: BOOLEANFALSE;
TestSCTiny: PW.UserProc =
BEGIN
cellType: Core.CellType;
result: SC.Result;
cdDesign: CD.Design;
rules: SC.DesignRules;
handle: SC.Handle;
libName: Rope.ROPE ←"SCTestLib.dale";
hMaterial: Rope.ROPE ← "metal";
vMaterial: Rope.ROPE ← "poly";
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];
result ← SCTestUtil.DoLayout[cellType, cdDesign, libDesign, hMaterial, vMaterial];
rules ← SC.CreateDesignRules[cdDesign.technology.key, hMaterial, vMaterial, horizontal];
handle ← SC.CreateHandle[cellType, NIL, libDesign, rules, "SCTestPW"];
SC.InitialPlace[handle, 5];
SC.SAPlaceImprove[handle: handle, t0: SC.SAPlaceInit[handle], eqVarLimit: 0.04, fzVarLimit: 0.04, alpha: 0.97];
SC.GlobalRoute[handle];
SC.PosImprove[handle, 5];
SC.OrientImprove[handle, 5];
result ← SC.DetailRoute[handle];
SC.Destroy[handle];
RETURN[result.object];
END;
PW.Register[TestSCTiny, "TestSCTiny"];
END.