DIRECTORY CD, CDCells, CDIO, CDOps, Convert, DABasics, Rope, Route, RoutePrivate; RouteTest1: CEDAR PROGRAM IMPORTS CD, CDCells, CDIO, CDOps, Convert, Rope, Route = BEGIN EnumerateChannelNets: Route.EnumerateChannelNetsProc ~ { nets: LIST OF NetDef _ NARROW[channelData]; UNTIL nets = NIL DO net: NetDef _ nets.first; eachNet[net.name, EnumerateChannelPins, net.exitLeftOrBottom, net.exitRightOrTop, net.mayExit, net.trunkSize, NIL, net.netData]; nets _ nets.rest; ENDLOOP}; EnumerateChannelPins: Route.EnumerateChannelPinsProc ~ { pins: LIST OF Route.Pin _ NARROW[netData]; UNTIL pins = NIL DO pin: Route.Pin _ pins.first; bottomOrLeft: BOOL _ pin.side = bottom; eachPin[bottomOrLeft, pin.min, pin.max, pin.depth, pin.layer]; pins _ pins.rest; ENDLOOP}; BrokenNet: Route.BrokenNetProc ~ { newLabel _ Rope.Cat[sourceNet, "-", Convert.RopeFromInt[regionNumber], "/", Convert.RopeFromInt[numberOfRegions]]}; NetDef: TYPE = REF NetDefRec; NetDefRec: TYPE = RECORD [ name: Rope.ROPE, exitLeftOrBottom, exitRightOrTop: BOOL _ FALSE, mayExit: BOOL _ TRUE, trunkSize: CD.Number _ 0, netData: LIST OF Route.Pin _ NIL]; technology: CD.Technology _ CD.FetchTechnology[$cmosB]; metal: CD.Layer _ CD.FetchLayer[technology, $met]; metal2: CD.Layer _ CD.FetchLayer[technology, $met2]; rules: Route.DesignRulesParameters _ Route.DefaultDesignRulesParameters[technology, metal, metal2, horizontal]; a1: Route.Pin _ NEW[Route.PinRec _ [40, 44, 0, metal2, bottom]]; a2: Route.Pin _ NEW[Route.PinRec _ [120, 124, 0, metal2, top]]; a3: Route.Pin _ NEW[Route.PinRec _ [200, 204, 0, metal2, top]]; a: NetDef _ NEW[NetDefRec _ ["a", TRUE, FALSE, FALSE, 0, LIST[a1, a2, a3]]]; b1: Route.Pin _ NEW[Route.PinRec _ [120, 124, 0, metal2, bottom]]; b2: Route.Pin _ NEW[Route.PinRec _ [40, 44, 0, metal2, top]]; b: NetDef _ NEW[NetDefRec _ ["b", FALSE, FALSE, TRUE, 0, LIST[b1, b2]]]; nets: LIST OF NetDef _ LIST[a, b]; object: CD.Object _ Route.Channel[EnumerateChannelNets, 0, 250, rules, "RouteTest1", BrokenNet, NIL, nets].object; design: CD.Design _ CDOps.CreateDesign[technology]; [ ] _ CDCells.IncludeOb[design: design, ob: object]; [ ] _ CDIO.WriteDesign[design, "RouteTest1"]; END. ’RouteTest1.mesa Copyright Σ 1985, 1987 by Xerox Corporation. All rights reserved. Last Edited by: Preas, July 17, 1987 6:57:53 pm PDT Christian Le Cocq December 2, 1987 12:47:46 pm PST PROC [channelData: REF, eachNet: EachChannelNetProc]; PROC [channelData, netData: REF, eachPin: EachChannelPinProc]; [channelData, netData: REF, sourceNet: Label, regionNumber, numberOfRegions: NAT] RETURNS [newLabel: Label] ΚΈ˜Jšœ™JšœB™Bšœ0Οk™3Icode™2—J™š œ˜ Jšœ œ6˜G—J˜šΠln œœ˜J˜Jšœœ œ˜6Jšœ˜J˜—šΟnœ$˜8Jšœœ™5Jšœœœ œ˜+šœœ˜Jšœ˜Kšœnœ˜€Kšœ˜Kšœ˜ K˜——šŸœ$˜8Jšœ>™>Jšœœœ œ ˜*šœœ˜Jšœ˜Kšœœ˜'Kšœ>˜>Kšœ˜Kšœ˜ K˜——šŸ œ˜"Kšœk™kKšœs˜sK˜—Jšœœœ ˜šœ œœ˜Jšœ œ˜Jšœ"œœ˜/Jšœ œœ˜Jšœ œ ˜Jšœ œœ œ˜"—J˜Jšœ œœ˜7Jšœœ œ˜2Jšœœ œ˜4Jšœo˜oJšœœ-˜@Jšœœ,˜?Jšœœ,˜?Jš œ œœœœœ˜LJšœœ/˜BJšœœ*˜=Jš œ œœœœœ ˜HJšœ"˜"JšœœKŸ œ˜rJšœœ)˜3Jšœ4˜4J˜šœœ$˜/J˜—Jšœ˜J˜J˜—…—‚ ά