SCTestTiny.mesa
Copyright Ó 1985, 1986, 1987 by Xerox Corporation. All rights reserved.
Last Edited by: Preas, September 5, 1985 10:39:21 am PDT
Jean-Marc Frailong October 14, 1987 6:15:00 pm PDT
Cong, August 23, 1987 5:45:21 pm PDT
Frank Bowers December 20, 1985 2:38:20 pm PST
Bryan Preas August 25, 1987 10:43:59 am PDT
To run the standard cell test package: SCTestTiny.cm
DIRECTORY
CD, CDIO, CDOps, Core, Rope, RTCoreUtil, RTTestUtil, SC, -- SCNewGlobalRoute, -- SCWidthUtil, SCPrivate, SCUtil;
SCTestTiny: CEDAR PROGRAM
IMPORTS CDIO, CDOps, RTCoreUtil, RTTestUtil, SC, -- SCNewGlobalRoute, -- SCWidthUtil, SCPrivate, SCUtil
SHARES SC = BEGIN
result: SC.Result;
libName: Rope.ROPE ←"SCLibCMOSB.dale";
hMaterial: Rope.ROPE ← "metal";
vMaterial: Rope.ROPE ← "metal2";
cellType: Core.CellType ← RTTestUtil.CreateCore[libName];
numRows: INT ← 1;
cdDesign: CD.Design ← CDOps.CreateDesign[CDIO.ReadDesign[libName].technology];
rules: SC.DesignRules ← SC.CreateDesignRules[cdDesign.technology.key, hMaterial, vMaterial, horizontal];
handle: SC.Handle ← SC.CreateHandle[cellType: cellType, flattenCellType: RTCoreUtil.defaultFlatten, libName: libName, designRules: rules, name: "SCTestTiny"];
SC.InitialPlace[handle, numRows];
SCUtil.WriteTWFiles[handle];
SCPrivate.SCRandomTest[handle, 10000, 0];
SC.SAPlaceImproveM[handle: handle, saParms: SC.SAGetParms[handle, SC.SAInitialPlace[handle], cellType]];
-- SCNewGlobalRoute.GlobalRouteAllNets[handle];
SC.GlobalRoute[handle];
-- SC.PosImprove[handle];
SCPrivate.NewPosImprove[handle, areaFom, 10];
SCWidthUtil.AllChanWidths[handle, wlFom];
-- SC.OrientImprove[handle];
result ← SC.DetailRoute[handle];
RTTestUtil.WriteLayout[result.object, handle.name, cdDesign];
SC.Destroy[handle];
END.