A digital IC placement and routing engine written in Rust, built from scratch. It reads LEF/DEF and Bookshelf, places cells by electrostatic spreading, legalizes and refines the placement, routes every net globally and then on the design's tracks, and checks the result against the technology's design rules with a checker modelled on OpenROAD's.
Status: PARE has placed and routed nine Nangate45 designs, from gcd (563 nets) to bp_quad, a BlackParrot quad-core chip of 1.55 million cells and 1.52 million nets, with zero design rule violations, judged both by its own checker and by OpenROAD's check_drc with a fix for one of its bugs applied (see below). Routing the same placements, OpenROAD's own router uses 3 to 5% less wire and PARE is 4 to 7 times faster (see PARE versus OpenROAD). From the same floorplans, PARE's whole flow, with timing-driven placement, clock tree synthesis that builds OpenROAD's trees exactly, setup and hold repair, and repair again on the parasitics of the global routes, ends within 0.02 ns of OpenROAD-flow-scripts' worst slack on aes, ibex and jpeg and ahead of it on ariane133, with propagated clocks, in about a third of the time (see Whole flows). No ISPD 2015 design is clean yet.
Each design is placed from its floorplan and then routed by pare run <design>, except gcd, whose placement is part of the input. aes, ibex and jpeg are synthesized and floorplanned by OpenROAD-flow-scripts 26Q2, as its Nangate45 flow does them, at 32%, 50% and 81% utilization; swerv, netcard and leon3mp come from OpenROAD's placer tests, at 10%, 60% and 59%. ariane133, with 132 fakeram45 SRAM macros, and bp_quad, with 220 on a 3.6 × 3.6 mm die, are synthesized and floorplanned by OpenROAD-flow-scripts 26Q2 too, at 32% and 22%. The five synthesized designs run with the netlist repair and timing work of the Netlist repair and timing section, so their cell counts include the buffers it adds and leave out the ones it removes. Nets counts the signal nets with two or more pins, the ones there are to route; wirelength is the length of all their routed wires along the centreline. Routed DEFs are checked by OpenROAD 26Q2 check_drc.
| Design | Cells | Nets | Wirelength | Vias | PARE violations | OpenROAD check_drc |
Time | Peak memory |
|---|---|---|---|---|---|---|---|---|
| gcd | 676 | 563 | 7.4 mm | 3,841 | 0 | 0 | 0.7 s | 0.4 GiB |
| aes | 16,505 | 16,273 | 256 mm | 170,809 | 0 | 0 | 39 s | 2.1 GiB |
| ibex | 17,185 | 18,353 | 303 mm | 181,860 | 0 | 0 | 42 s | 2.3 GiB |
| jpeg | 66,214 | 73,096 | 569 mm | 537,690 | 0 | 0 | 2 min 6 s | 4.2 GiB |
| swerv | 135,119 | 130,357 | 4,966 mm | 1,507,695 | 0 | 0 | 3 min 57 s | 5.0 GiB |
| ariane133 | 179,806 | 180,581 | 6,410 mm | 2,031,503 | 0 | 0 | 11 min 29 s | 6.7 GiB |
| netcard | 274,700 | 290,334 | 9,735 mm | 3,593,431 | 0 | 0 | 43 min 3 s | 9.2 GiB |
| leon3mp | 312,529 | 406,912 | 8,412 mm | 4,249,778 | 0 | 0 | 18 min 21 s | 9.4 GiB |
| bp_quad | 1,545,147 | 1,516,772 | 51,024 mm | 15,099,430 | 0 | 0 | 3 h 26 min 6 s | 29.8 GiB |
Measured on an Intel Core i7-14700K (28 threads) with 64 GB of memory at commit 587f812. The five synthesized designs go through netlist repair, timing-driven placement, clock trees and repair on the global routes. Time and memory cover the whole run, netlist repair and placement included.
OpenROAD's check_drc has a bug that reports spacing violations between two vias of one net where its wire fills the gap (#11697). The counts above come from OpenROAD with the proposed fix (#11698) applied, which nix develop .#eda builds. On the routings of commit dc60d69, unpatched OpenROAD reported 0 on gcd, aes, ibex and jpeg, 4 on swerv, 1 on ariane133, 3 on netcard, 1 on leon3mp and 4 on bp_quad, all spacing markers within one net like those; docs/openroad-check-drc-tiling.md has the evidence.
bp_quad: 220 SRAM macros on a 3.6 × 3.6 mm die, routed.
![]() |
![]() |
| aes | ibex |
![]() |
![]() |
| jpeg | leon3mp |
At 32% utilization, aes's cells pack to a target density of 0.47 and gather into islands, as they do in OpenROAD's own placement of the same floorplan. Below, 10 × 10 µm of routed aes on metal1 to metal4, drawn at its true geometry by pare view:
The fairest test of a router is another router on the same placement. scripts/compare.py routes each design's PARE placement twice: with PARE, and with OpenROAD 26Q2's global and detailed router set up as OpenROAD-flow-scripts sets them up for Nangate45, with its layer adjustments, routing layers, iteration counts and thread count, but without the repairs its flow runs between the two, which would change the netlist. Each result is checked by OpenROAD's check_drc and by PARE's checker, then timed by OpenROAD's timer with parasitics extracted from the routed wires, against the flow's clock constraint for the design. The netlists are the floorplanned ones straight out of synthesis, with no buffering, resizing or clock tree, so both routings miss their clocks by a wide margin; the slacks compare two routings of one netlist, not the designs.
| Design | Router | Wirelength | Vias | PARE violations | OpenROAD check_drc |
WNS | TNS | Time | Peak memory |
|---|---|---|---|---|---|---|---|---|---|
| aes | PARE | 227.2 mm | 150,724 | 0 | 0 | -2.19 ns | -395.7 ns | 17 s | 1.9 GiB |
| aes | OpenROAD | 216.7 mm | 115,220 | 0 | 0 | -2.46 ns | -311.8 ns | 1 min 57 s | 2.5 GiB |
| ibex | PARE | 374.9 mm | 188,822 | 0 | 0 | -0.82 ns | -679.1 ns | 14 s | 2.1 GiB |
| ibex | OpenROAD | 358.6 mm | 136,148 | 0 | 0 | -0.73 ns | -565.6 ns | 1 min 17 s | 2.8 GiB |
| jpeg | PARE | 1,036.4 mm | 578,571 | 0 | 0 | -1.24 ns | -691.9 ns | 50 s | 3.9 GiB |
| jpeg | OpenROAD | 980.5 mm | 389,779 | 0 | 0 | -1.15 ns | -620.7 ns | 3 min 31 s | 4.4 GiB |
| ariane133 | PARE | 7,504.2 mm | 2,109,089 | 0 | 0 | -1.20 ns | -2,593.2 ns | 10 min 2 s | 6.4 GiB |
| ariane133 | OpenROAD | 7,271.7 mm | 1,422,559 | 0 | 0 | -1.24 ns | -2,760.2 ns | 48 min 13 s | 11.8 GiB |
PARE at commit 06cc695, ibex at 6370079, on the machine above; time and memory are the router's alone. WNS and TNS are the worst and total negative slack of the paths the clock constrains, with ideal clocks.
Both routers leave every design clean by both checkers. OpenROAD uses 3 to 5% less wire and 24 to 33% fewer vias; PARE is 4 to 7 times faster and uses less memory. On the clocked paths neither is ahead throughout: PARE's worst slack is the better one on aes and ariane133 and OpenROAD's on ibex and jpeg, by 3 to 11%, and OpenROAD's total negative slack is the lower one on three of the four. Most of the via gap is wrong-way wiring: per design, OpenROAD routes 19,170 to 244,603 segments against their layer's direction, where PARE routes none and pays two vias for each jog instead.
On ibex and ariane133 the worst path of both routings is not a clocked path but the reset: rst_ni is an input port that drives 1,664 and 20,618 flops directly, because nothing has buffered it, and its recovery checks fail by the wire delay of that one net. That net is where the two routers differ most. PARE routes ariane133's in 109,501 µm and 64,970 vias against OpenROAD's 94,684 µm and 49,015 vias, both almost entirely on metal2 and metal3, and the Elmore delay to its farthest flop is 703 ns against 512 ns (scripts/net_report.py); on ibex, 9.6 ns against 7.0 ns. The timer does not report so large a net consistently, 118 ns through PARE's route of it and no delay at all through OpenROAD's, so the table leaves the recovery checks out; compare.py reports every path group.
scripts/compare.py --flow starts both tools from the same floorplan. PARE runs as pare run does: it removes the buffers synthesis inserted, buffers the ports, places timing-driven, repairs slews and loads, legalizes, builds the clock trees, repairs the setup and hold paths, routes globally, repairs slews, loads, setup and hold again on the global routes' parasitics and routes in detail. OpenROAD-flow-scripts runs its own stages as its Makefile orders them: the same buffer removal and port buffering, I/O pin placement after a first global placement, timing- and routability-driven placement, repair_design, legalization, clock tree synthesis with repair_timing, global routing with repair_design and repair_timing on its parasitics and antenna repair, and detailed routing. Both results are timed by OpenSTA with parasitics extracted from the routed wires and the clocks propagated through each flow's clock trees; slew and capacitance violations are its counts on the same parasitics.
| Design | Tool | Cells | Wirelength | Vias | PARE violations | OpenROAD check_drc |
Slew / cap violations | WNS | TNS | Time | Peak memory |
|---|---|---|---|---|---|---|---|---|---|---|---|
| aes | PARE | 16,505 | 255.9 mm | 170,809 | 0 | 0 | 0 / 0 | -0.01 ns | -0.0 ns | 39 s | 2.1 GiB |
| aes | OpenROAD | 15,960 | 242.5 mm | 125,873 | 0 | 0 | 0 / 0 | -0.01 ns | 0.0 ns | 1 min 54 s | 2.6 GiB |
| ibex | PARE | 17,185 | 302.7 mm | 181,860 | 0 | 0 | 0 / 2 | -0.04 ns | -0.5 ns | 42 s | 2.3 GiB |
| ibex | OpenROAD | 17,290 | 276.9 mm | 130,664 | 0 | 0 | 0 / 0 | -0.02 ns | 0.0 ns | 2 min 15 s | 2.8 GiB |
| jpeg | PARE | 66,214 | 569.4 mm | 537,690 | 0 | 0 | 0 / 0 | -0.15 ns | -62.0 ns | 2 min 6 s | 4.2 GiB |
| jpeg | OpenROAD | 66,257 | 565.3 mm | 385,250 | 0 | 0 | 0 / 0 | -0.13 ns | -53.1 ns | 7 min 34 s | 3.7 GiB |
| ariane133 | PARE | 179,806 | 6,409.9 mm | 2,031,503 | 0 | 0 | 72 / 25 | -0.21 ns | -205.5 ns | 11 min 29 s | 6.7 GiB |
| ariane133 | OpenROAD | 180,740 | 6,748.8 mm | 1,398,910 | 0 | 0 | 72 / 6 | -0.35 ns | -563.1 ns | 34 min 53 s | 10.4 GiB |
PARE at commit 587f812. OpenROAD-flow-scripts' time is its stages from the floorplan to the routed design added up, and its memory the largest of theirs, as its own logs report them.
Both tools prepare the netlist alike: each strips 0, 1,458, 3,062 and 17,491 synthesis buffers from aes, ibex, jpeg and ariane133 and adds 387, 249, 45 and 436 port buffers, the same counts to the cell. PARE's clock trees reach 562, 1,939, 4,383 and 20,750 sinks through 107, 313, 702 and 3,393 clock buffers with 89, 212, 554 and 2,593 dummy loads; on ariane133 nine repeaters go on long clock nets, and on ibex two delay buffers balance the trees under the clock. Setup repair then takes aes from 5 failing endpoints to none, ibex from 32 to 2, jpeg from 712 to 702 and ariane133 from 3,160 to 2,776, and hold repair fixes all of the 16, 37, 82 and 42 endpoints the clock skew left failing hold, with 16, 1, 42 and 2 buffers. On the parasitics of the global routes, design repair finds nothing to do on aes and jpeg, one capacitance violation on ibex and 8 slew and 84 capacitance violations on ariane133; setup repair takes the failing endpoints from 39 to 2 on aes, from 417 to 2 on ibex, from 722 to 719 on jpeg and from 3,198 to 2,653 on ariane133, and hold repair adds 143, 0, 5 and 0 buffers after it. PARE's routed wire is 6%, 9% and 1% longer than the flow's on aes, ibex and jpeg and 5% shorter on ariane133, with 36 to 45% more vias from the wrong-way jogs OpenROAD's router allows itself; its runs take 2.9 to 3.6 times less wall time than the flow's stages, and less memory on three of the four designs.
On the routed designs PARE's worst slack is -0.01, -0.04, -0.15 and -0.21 ns against the flow's -0.01, -0.02, -0.13 and -0.35 ns, and its total negative slack -0.0, -0.5, -62.0 and -205.5 ns against 0.0, 0.0, -53.1 and -563.1 ns: within 0.02 ns of the flow on aes, ibex and jpeg and ahead of it on ariane133. Before global placement grew its density weight by gpl's rule and estimated congestion over the points gpl takes for each pin, and before setup repair's last gasp stopped where OpenROAD's does, at commit bfd66bf, the worst slacks were -0.01, -0.03, -0.15 and -0.34 ns, the totals -0.1, -0.2, -58.0 and -218.6 ns and the wire 255.3, 300.0, 606.0 and 6,557.3 mm. Before pins were entered from the side their nets leave, at commits 1d0606e and ca1aa3c, the worst slacks were -0.01, -0.03, -0.16 and -0.25 ns, the totals 0.0, -0.2, -58.7 and -274.8 ns and the wire 258.4, 304.9, 619.6 and 6,612.6 mm. Before the global placement and I/O pin work of the Placement section, at commit 56b7ebd, the worst slacks were -0.02, -0.04, -0.19 and -0.26 ns, the totals -0.1, -2.9, -79.0 and -270.4 ns and the wire 274.7, 318.4, 660.2 and 6,399.3 mm, with ariane133 placed at a density of 0.40 rather than the 0.30 the flow gives it. With OpenDP's legalization but PARE's own detailed placement, at commit da7a637, the worst slacks were -0.01, -0.06, -0.16 and -0.28 ns, the totals 0.0, -1.6, -67.9 and -333.4 ns and the wire 268.1, 315.5, 655.8 and 6,372.7 mm; with Abacus legalization, at commit 2457308, the worst slacks were -0.03, -0.05, -0.15 and -0.29 ns, the totals -0.1, -0.5, -62.9 and -369.2 ns and jpeg's wire 609.3 mm. Known issues breaks down the wire PARE still adds over the flow. Before the repair on global routes, at commit 136de1c, the worst slacks were -0.03, -0.10, -0.24 and -0.31 ns and the totals -0.4, -17.5, -106.7 and -408.8 ns; with ideal clocks and no tree, at commit 3c12a9f, the worst slacks were -0.03, -0.08, -0.22 and -0.27 ns. The capacitance violations left on PARE's side are drivers clean on the global routes' estimate that detailed routing then changed, and the 72 slew violations on ariane133 are in the flow's result too.
Before any of the netlist work, at commit 06cc695, the same flows gave:
| Design | Tool | Cells | Wirelength | Vias | PARE violations | OpenROAD check_drc |
WNS | TNS | Time | Peak memory |
|---|---|---|---|---|---|---|---|---|---|---|
| aes | PARE | 13,108 | 227.2 mm | 150,724 | 0 | 0 | -2.19 ns | -395.7 ns | 34 s | 1.9 GiB |
| aes | OpenROAD | 15,960 | 242.5 mm | 125,873 | 0 | 0 | 0.00 ns | 0.0 ns | 1 min 54 s | 2.6 GiB |
| ibex | PARE | 16,876 | 374.9 mm | 188,822 | 0 | 0 | -0.82 ns | -679.1 ns | 36 s | 2.1 GiB |
| ibex | OpenROAD | 17,290 | 276.9 mm | 130,664 | 0 | 0 | 0.00 ns | 0.0 ns | 2 min 15 s | 2.8 GiB |
| jpeg | PARE | 62,139 | 1,036.4 mm | 578,571 | 0 | 0 | -1.24 ns | -691.9 ns | 2 min | 4.2 GiB |
| jpeg | OpenROAD | 66,257 | 565.3 mm | 385,250 | 0 | 0 | -0.12 ns | -45.8 ns | 7 min 34 s | 3.7 GiB |
| ariane133 | PARE | 175,699 | 7,504.2 mm | 2,109,089 | 0 | 0 | -1.20 ns | -2,593.2 ns | 12 min 8 s | 6.4 GiB |
| ariane133 | OpenROAD | 180,740 | 6,748.8 mm | 1,398,910 | 0 | 0 | -0.37 ns | -668.1 ns | 34 min 53 s | 10.4 GiB |
PARE at commit 06cc695, ibex at 6370079. OpenROAD-flow-scripts' time is its stages from the floorplan to the routed design added up, and its memory the largest of theirs, as its own logs report them; with propagated clocks, its own final report gives WNS of -0.01, -0.02, -0.13 and -0.66 ns.
The flow stripped 0, 1,458, 3,062 and 17,491 synthesis buffers from aes, ibex, jpeg and ariane133 before placing, and added 2,852, 1,872, 7,180 and 22,532 cells over its stages where the placement called for them. Where synthesis had buffered heavily, the netlist it places is far shorter to begin with: OpenROAD's own global placement of jpeg's netlist as synthesized, without I/O pins, has 735.6k µm of half-perimeter wirelength and PARE's 742.7k, on ibex 247.4k and 246.5k, while the flow's placement after stripping has 425.6k on jpeg and 209.2k on ibex. On aes, where nothing was stripped, PARE's run ends with 6% less wire than the flow's result and 20% more vias; on jpeg the flow's result has 45% less wire. Over the four designs the flow's result has 16 to 34% fewer vias, and PARE is 2.9 to 3.8 times faster and, on three of the four, uses less memory. What PARE lacked then was the netlist work, not the geometry: buffering, resizing and a clock tree.
flowchart TD
INPUT["LEF / DEF or Bookshelf input<br/>layers · vias · rules · sites · macros · rows · tracks · nets"]
NL["Netlist preparation (with a Liberty library)<br/>remove the buffers synthesis left · buffer the ports"]
IO["Place unplaced I/O pins on the die boundary<br/>matched to slots by wirelength after a first placement"]
subgraph PL["Placement"]
GP["Global placement<br/>electrostatic density · Nesterov's method<br/>congestion-driven cell inflation"]
RD["Design repair<br/>slews from estimated parasitics · resize drivers · insert repeaters"]
LEG["Legalization (OpenDP)<br/>diamond search · rip-up and replace · fence regions"]
DP["Detailed placement (OpenDP)<br/>set matching · swaps · reordering · mirroring"]
CTS["Clock tree synthesis (TritonCTS)<br/>sink clustering · H-tree · dummy loads · latency balancing"]
TR["Timing repair<br/>setup · hold · on propagated clocks"]
end
subgraph RT["Routing"]
PA["Pin access<br/>via stacks onto each pin"]
GR["Global routing (CUGR)<br/>Steiner trees · 3D pattern routing<br/>rip-up and reroute by maze, planned over the whole chip"]
GRR["Repair on global routes<br/>parasitics along the routes · design and timing repair<br/>legalization · incremental rerouting"]
TA["Track assignment"]
DR["Detailed routing (TritonRoute)<br/>region by region · negotiated repair<br/>judged by the design rule checker"]
end
CHK["Checks<br/>placement legality · opens · design rules"]
OUT["Placed and routed DEF"]
INPUT --> NL --> IO --> GP --> RD --> LEG --> DP --> CTS --> TR --> PA --> GR --> GRR --> TA --> DR --> CHK --> OUT
Global placement follows ePlace and RePlAce. Cells are electric charges: the field of their density, found by solving Poisson's equation with FFTs, spreads them apart while a smooth weighted-average wirelength, smoothed over four bins as OpenROAD's gpl smooths it, pulls connected cells together. Cells with more than two signal pins are first scaled by their pin density, as gpl scales them, so that pin-heavy cells get room. Filler cells take up the whitespace, so a design that uses a small part of its die packs to the target density instead of scattering. Placement blockages keep cells out, soft ones included, as they do in gpl, and the OpenROAD-flow-scripts designs place at the density the flow gives them. Nesterov's method minimizes the sum, with its step predicted from the local Lipschitz constant, raising the density weight as gpl raises it, by a factor set from the change in half-perimeter wirelength without timing weights, until the overflow falls below its target. With routability on, congestion is estimated as OpenROAD estimates it (RUDY), each net spread over the box of one point per pin, the mean of a cell pin's shape centers or an I/O pin's center, with routing capacity held back layer by layer as the platform holds it back, and cells in congested gcells are inflated along the way. On OpenROAD's own placement of jpeg, PARE's estimate reads 0.962 where OpenROAD's reads 0.958. Fence regions follow DREAMPlace 3.0: each region's cells form an electrostatic system of their own.
I/O pins are placed in the order OpenROAD-flow-scripts places them: a first global placement without them on the netlist as synthesized, then pin placement, then the netlist repair below and placement proper. Pin placement is OpenROAD's place_pins: slots ring the die on every second track, clear of the corners and of the stretches macros block, the boundary is cut into sections, pins are shared out among them by the distance to their nets' cell pins, and each section's pins are matched to its slots by a minimum-cost assignment (Munkres). PARE also keeps pins off slots too close to fixed metal and widens the slot pitch where a layer's spacing asks for it. Given the placements the flow hands place_pins on ibex and jpeg, PARE puts all 264 and 47 pins in the slots OpenROAD 26Q2 does.
With timing constraints, placement is timing-driven as OpenROAD's is: twice along the way, as the overflow falls below 64% and then 20%, the cells are written back, the design is repaired and every net rebuffered for delay at those positions, and the worst tenth of the nets by slack get wirelength weights from 5 at the worst slack down to 1, so the next iterations pull their cells together; placement goes on with the repaired netlist, the new cells starting where the repair put them and the target density raised by the area they add, as in OpenROAD.
Legalization is OpenROAD's detailed_placement (OpenDP), wherever OpenROAD-flow-scripts runs it: after global placement, around timing repair at the clock tree stage and after each repair on the global routes. Every movable standard cell is placed again, the largest first and then those nearest the core's center, at the free site nearest the one its position rounds to, found by a search that widens in Manhattan distance up to 500 sites and 100 rows; a cell that finds none rips up its neighbours, takes its spot and puts them back. A site is free when it lies in a row of the cell's site, holds no other cell, suits the cell's symmetry in the row's orientation and breaks no placement rule. The members of each fence region are placed first, inside it, falling back to packing them against its corners, then refined and annealed with OpenDP's own random sequence, while other cells are kept out of it. Given OpenROAD-flow-scripts' placements before detailed placement of aes, ibex, jpeg and ariane133, and three ISPD 2015 designs with fence regions given random offsets, PARE puts every cell exactly where OpenROAD 26Q2 does, with two differences: OpenROAD reads no cell edge spacing from the ISPD 2015 LEFs, failing to parse their LEF58_CELLEDGESPACINGTABLE, while PARE enforces it, and when cells are ripped up OpenROAD puts them back in the order of their addresses in memory, which PARE replaces with the order of their names. Designs whose macros the placer moves are legalized with Abacus, which places the macros too, since OpenDP leaves them to a macro placer.
Detailed placement is OpenROAD-flow-scripts' detail_place stage: OpenDP's improve_placement -max_displacement {5 1}, then optimize_mirroring. The rows are cut into segments between fixed cells and region edges. Set matching gathers up to 25 cells of one size, no two on a net, from nearby bins and reassigns them to each other's spots by a minimum-cost matching on wirelength, solved with LEMON's network simplex as OpenROAD solves it; global and vertical swaps then move or swap each cell toward the box between the medians of its nets; windows of three neighbouring cells are tried in every order; random moves and swaps within ten sites and rows follow, twenty trials per cell a pass; and cells are flipped about their vertical axis where that shortens their nets. A change is kept only if it does not lengthen the wire, breaks no placement rule and leaves every cell within five row heights across and one row up or down of where it began. Mirroring then turns the cells with a pin on the edge of a net's box, the longest nets first, where that does not lengthen their nets. From OpenROAD's legalized placements of the seven designs above, the ISPD ones without the cell edge spacing OpenROAD fails to read, PARE puts every cell where OpenROAD 26Q2 does, a slip in OpenDP's site arithmetic that keeps it from pushing neighbours right included, except the orientations of 3 and 5 cells that mirroring turns on two of the ISPD designs: OpenROAD takes nets of equal length in the order of their addresses in memory, PARE in the design's. Designs legalized with Abacus keep PARE's own detailed placement, which moves cells toward the median of their nets and reorders neighbours, keeping a move only if it shortens wirelength and never onto a spot where fixed metal would block a via to one of the cell's pins.
With a Liberty library in its config, PARE does to the netlist what OpenROAD-flow-scripts does around placement, following OpenROAD's resizer. Before placing, it removes the buffers synthesis inserted, merging each one's nets, and puts the weakest buffer after every input port and before every output port. After global placement, repair_design runs: every pin's slew is found as OpenSTA finds it, from a Prim-Dijkstra Steiner tree over each net carrying the signal layer's resistance and capacitance, reduced for each driver to a pi model with an Elmore delay to every load, and the Dartu-Menezes-Pileggi effective-capacitance fit against the library's delay tables. Drivers are then visited from the outputs back to the inputs: one whose slew breaks its limit takes the smallest equivalent size that meets it, and where a load's slew, a driver's capacitance or a wire's length still breaks a limit, repeaters go in along the Steiner tree, splitting wires and isolating branches as the Elmore estimate asks. Where OpenROAD's Prim-Dijkstra tree crosses itself it falls back to FLUTE, which PARE does not have, so such nets keep their Prim-Dijkstra tree. On ibex the slews this model gives agree with OpenSTA's to a median 0.01% over every driver and the loads to 0.001%. On an aes placement before any repair, PARE's repair_design finds 125 slew and 187 capacitance violations, resizes 88 drivers and inserts 235 buffers where OpenROAD's finds 125 and 188 and makes 88 and 236.
With an SDC file in its config, PARE times the design as OpenSTA does, with ideal or propagated clocks: the constraints are read by a small Tcl interpreter (clocks, input and output delays, uncertainty, false and multicycle paths, clock groups, derating and design limits), arrivals and required times are tagged by launching clock edge, registers are checked with the library's setup and hold tables, latches borrow time as OpenSTA's do, and the early and late sides carry separate slews and delays. On the placed aes, ibex and jpeg every endpoint's setup slack agrees with OpenSTA's to within 1.4 ps and the worst and total negative slack to the reported precision. On that analysis repair_timing runs after detailed placement, as the flow runs it at its clock tree stage, following OpenROAD's RepairSetup: the failing endpoints are taken from the worst up, and along each one's worst path the drivers with the most load delay are tried with OpenROAD's move sequence until one lands: taking a buffer out, sizing the gate up to the weakest size that is faster with its extra input load, swapping the critical input to an equivalent faster pin found by truth-table simulation, rebuffering the net, cloning the gate for half its loads, or splitting the loads behind a buffer. A pass is kept only when the worst slack improves; after the first thousand passes the repair stops once a hundred of them fix less of the initial total negative slack than a share that starts at a ten-thousandth and doubles every thousand passes; and a last gasp of sizing runs over whatever still fails. Rebuffering follows OpenROAD's Rebuffer: a dynamic program over the net's tree offers every buffer size at each branch and along each long wire, keeps the options that trade capacitance for slack, takes the one with the most slack at the driver and gives buffers back for area while the slack stays within a small relaxation of that best. Setup repair on the same pre-repair placements as OpenROAD's repair_timing, with the flow's settings, repairs aes from -0.43 ns to -0.035 ns where OpenROAD reaches -0.15 ns, ibex from -0.57 ns to -0.06 ns against -0.06 ns, and jpeg from -0.59 ns to -0.32 ns against -0.35 ns, over the first thousand iterations making the same moves iteration for iteration on aes; OpenSTA on PARE's results reads -0.04, -0.07 and -0.32 ns. After setup, hold is repaired as OpenROAD's RepairHold repairs it: each endpoint failing hold has buffers put in front of it, along its worst early path, of the size that adds the most hold delay for its area, where the setup slack of the loads it delays, taken as RepairHold takes it from the best of them, covers the delay added, and is taken out again if it leaves the design's worst setup slack lower and below the margin. The checks OpenSTA infers on gated clocks are made too: an AND or OR gate whose other input enables a clock is checked for setup against the clock's leading edge and for hold against its trailing edge. On ibex with a 0.1 ns hold uncertainty PARE repairs the six failing endpoints with the same eight buffers as OpenROAD, and at 0.3 ns with 3,206 buffers against its 3,205. With ideal clocks the four designs have no hold violations; with the clock trees below they do, and hold repair fixes them.
After detailed placement PARE builds the clock trees as OpenROAD's TritonCTS does with the flow's settings. Inverters in the clock network are first cloned at each of their loads. The clock buffers are inferred from the library, and every pattern of buffers along a few lengths of clock wire is characterized by timing it for a range of loads and input slews. The sinks are clustered under leaf buffers along a space-filling curve; the region they span is halved level by level into an H-tree whose branching points are drawn toward their sinks by capacitated k-means, its min-cost flow solved by a port of LEMON's network simplex so that ties break as they do in OpenROAD, and kept clear of macros. Each branch is built from characterized wire segments, macros get a tree of their own, the buffers' loads are evened with dummy cells, the upper half of the levels get a non-default rule of doubled spacing, long clock nets are buffered, and the trees under one clock are balanced with delay buffers. The clocks are then propagated, with the clock wire RC on the nets between clock buffers, and timing repair runs on the real skew. On the placements OpenROAD-flow-scripts hands to its clock tree stage, PARE builds the trees OpenROAD 26Q2 builds for aes, ibex, jpeg and ariane133 exactly: every buffer, dummy load, delay buffer and clock net repeater has the same name, cell, position and connections. On the flow's post-CTS placements, every endpoint's setup and hold slack with propagated clocks agrees with OpenSTA's within 0.35 ps, three jpeg endpoints aside at 2.2 ps.
After global routing, design and timing are repaired once more on the routes, as OpenROAD-flow-scripts' global route stage does. Each net's parasitics then follow its global route as OpenROAD's estimate_parasitics -global_routing builds them: a resistor along every straight run of the route, at its layer's resistance and capacitance per length as the platform's set_layer_rc gives them or else as its LEF does, a resistor through each via, and a wire from each pin to the center of the gcell where the route reaches it, climbing through the via above the pin's own layer where the route does. Given OpenROAD's own global routes and access points on aes, PARE's networks are the ones OpenROAD writes out, on all 15,621 nets, and on the networks of PARE's own routes its timing agrees with OpenSTA reading them to 0.1 ps. repair_design and then repair_timing run on these parasitics with buffering trees that follow the routes, wire by layer and via by via, as OpenROAD builds them. A net an edit changes is routed again before it is timed again, but only when one of its pins now meets the grid in another gcell, as OpenROAD's incremental global routing decides, and each resized or inserted cell is moved to a legal site as OpenDP's legalCellPos moves it. After each repair the placement is legalized and the nets of every cell that moved are routed again; detailed routing then follows those routes.
Pin access. A pin on a routing layer is reached from any track crossing on its shapes; a pin below the lowest routing layer is reached by a stack of vias, each candidate stack keeping clear of the cell's other metal. Of a pin's candidates, those nearest the box around the rest of its net's pins come first, so that a pin is entered from the side its net leaves.
Global routing follows CUGR on a 3D grid of gcells. Capacity comes from the tracks crossing each gcell edge, less what fixed metal blocks. Each net's rectilinear Steiner tree is pattern-routed with layers chosen by dynamic programming; overflowing nets are ripped up and maze-routed again, inside a corridor planned by a search over the whole chip on coarse cells so a net can detour as far as free tracks require.
Track assignment puts each long straight run of a global route on a track of its panel.
Detailed routing follows TritonRoute. A first pass routes every net region by region along its global route, then conflicts are repaired region by region: the nets in a region are ripped up and routed again by A* on the track graph, negotiating for space. Each step costs its length, plus a conflict cost per unit of length where it would short or crowd another net's wiring and a marker cost per unit of length where a violation was found lately, both rising round by round on TritonRoute's schedule. Marks go on the metal of each violation and fade as the region's nets are routed again. Whether a region's new wiring is kept is decided by the same design rule checker that judges the finished design.
The checker follows OpenROAD's (FlexGC): each net's shapes merge into polygons whose maximal rectangles and edges the rules examine. It checks shorts, metal spacing including spacing tables, end-of-line spacing, cut spacing, minimum area, width and hole, minimum cut and off-grid shapes; minimum step is reported as advisory and not counted. It checks the die in tiles so only one tile's geometry is built at a time, and violations made of fixed metal alone, which routing cannot fix, are reported apart.
All geometry is in integer database units (Dbu), exactly as LEF and DEF specify it. The NetlistDB holds the design on top of a Library:
Library NetlistDB
├── routing_layers ├── die_area, rows, tracks
├── cut_layers ├── cells (master, location, orientation, status)
├── vias ├── nets (pins, routed wires and vias)
├── sites ├── pins (cell pin or I/O pin connections)
└── macros (pins, OBS) ├── io_pins (shapes, location, orientation)
└── special_nets, blockages
Typed indices (CellId, NetId, PinId, LayerId, MacroId, …) keep tables from being mixed up. Parse errors carry the file and line, and unknown macros, pins or layers are errors rather than silent defaults. The DEF writer's output reads back into the same design, a special net's rectangles listed by their shape, and is accepted by OpenROAD.
- ISPD 2015 designs do not route clean yet. On mgc_pci_bridge32_a at commit
73d6db4, 80 repair rounds left 1,986 violations, 1,811 of them in two 10 µm gaps between macros that block every metal layer, where the wires between the die's edge and its interior crowd through. - ISPD 2018 and 2019 designs do not route clean yet. They load, and ISPD 2018's rules are the ones the checker enforces, but no design of either suite has been taken to a clean result; ISPD 2019's corner spacing and cut enclosure rules are parsed and not enforced.
- Clock tree insertion delays are not read. Liberty's clock tree path tables, which give a macro's internal clock latency, are not parsed, so no sink gets insertion delay; none of the measured libraries has them.
- Timing-driven placement needs the default RUDY estimate. It changes the netlist as it goes, which the global-router congestion estimate cannot follow.
- Some drivers still break their capacitance limit after routing: 0, 2, 0 and 25 on aes, ibex, jpeg and ariane133 by OpenSTA's count on the extracted parasitics, where the repair's estimate on the global routes was within the limit; the 72 slew violations on ariane133 are in OpenROAD-flow-scripts' result too.
- Routed wire is longer than OpenROAD's, on jpeg from the router and on ibex from placement. Measured by OpenROAD on both finished DEFs, jpeg's half-perimeter wire is 501,953 µm against OpenROAD-flow-scripts' 511,158 µm, 2% less, but its routes run 13% over that against OpenROAD's 11%, ending at 569.4 mm against 565.3 mm. Routing the flow's own placement at commit
bfd66bf, PARE came to 579.0 mm: two-pin nets match OpenROAD's 190.1 mm and nets of more pins run 3 to 4% longer. aes and ibex carry 2% and 7% more half-perimeter wire, 204,488 µm against 200,011 µm and 242,719 µm against 226,697 µm. On ibex about 7 mm of the gap comes from the first global placement, which leads to other pin slots than the flow's: before pins were entered from the side their nets leave, the flow's pins took the routed wire from 304.9 to 297.6 mm. - Clock nets are routed on every layer. OpenROAD-flow-scripts keeps them to metal4 and above (
set_routing_layers -clock metal4-metal10). - Antenna rules are not checked. PARE skips the LEF's antenna statements; OpenROAD-flow-scripts checks the global routes for antenna violations and repairs them with diodes (it finds none on ibex).
- Very high fanout nets come out longer and with more vias than OpenROAD routes them: on the netlist as synthesized, ariane133's reset, an input port driving 20,618 flops, takes 16% more wire and 33% more vias in PARE's routing and is slower to its farthest flop, see PARE versus OpenROAD.
- Nets under a nondefault rule are routed at their own widths and spacings and checked both that way and as OpenROAD reads routed wires, at their layers' default widths, where narrower wire can break end-of-line, same-net spacing and shape rules. The router does not yet keep to that second reading. On pci's clock net at commit
73d6db4, before the second check, PARE reported 135 spacing violations that OpenROAD did not, and OpenROAD one same-net spacing violation, seen only at the default width, that PARE did not; not measured since.
Requirements: Rust 1.98.1, the version the flake's dev shell provides and rust-toolchain.toml pins, and Python 3. nix develop .#eda provides OpenROAD, with the check_drc fix above, for cross-checking results, and the yosys that OpenROAD-flow-scripts 26Q2 pins; aes, ibex, jpeg, ariane133 and bp_quad are synthesized and floorplanned with them, so download those inside it.
Benchmarks are downloaded by scripts/download.py, which also writes each design's config to configs/<suite>/<design>.toml. Each design has a purpose that decides what pare run does with it: placement benchmarks are only placed, routing benchmarks (whose placement is part of the input) are only routed, and the rest are placed and then routed.
| Suite | Designs | Purpose |
|---|---|---|
openroad |
gcd | routing |
openroad |
aes, ibex, jpeg, ariane133, bp_quad (synthesized and floorplanned by OpenROAD-flow-scripts) | place and route |
openroad |
swerv, netcard, leon3mp (OpenROAD placer tests) | place and route |
ibm |
ibm01–ibm18 (Bookshelf) | placement |
ispd2015 |
20 mgc_* designs, up to 1.3M nets |
place and route; none routed clean yet, see Known issues |
ispd2018, ispd2019 |
ispd18_test1–10, ispd19_test1–10 |
routing; none routed clean yet, see Known issues |
python3 scripts/download.py --list # every design and its purpose
python3 scripts/download.py gcd aes ibex # designs, a suite (e.g. ispd2018), or all
cargo run --release -- run aes # does what the design's purpose says
cargo run --release -- place aes # placement only (refused for routing benchmarks)
cargo run --release -- route gcd # routing only (refused for placement benchmarks)
cargo run --release -- check aes --placement output/aes/routed.def
python3 scripts/compare.py aes ibex # route the PARE placement with PARE and with OpenROAD, check and time both
python3 scripts/compare.py --flow aes ibex # PARE's whole run against OpenROAD-flow-scripts' whole flow from the floorplan
python3 scripts/compare.py --flow --skip-openroad aes # rerun PARE's side only, against the flow's earlier result
python3 scripts/net_report.py ibex rst_ni # one net in both routings: wire per layer, vias, Elmore delay to its loadsThe placed and routed DEFs and images of each stage are written to the output directory named in the config. A config that names liberty_files under [input] gets the netlist repair of the Netlist repair and timing section, with the cells not to use and the signal wire's layer and RC (signal_wire) under [netlist]; one that names an sdc_file too is timed, placed timing-driven and has its setup paths repaired, with timing_driven under [global_placement] and repair_timing under [netlist] to turn either off. scripts/download.py writes them for the OpenROAD-flow-scripts designs from the platform's settings and the flow's constraint files.
# Save the routing state after global routing, or after detailed round N, and resume from it later
cargo run --release -- route aes --placement output/aes/placed.def --save-state aes.state --save-after 20
cargo run --release -- route aes --placement output/aes/placed.def --resume aes.state
# Log every route found for some nets, or in every region meeting a box (in microns), with its cost part by part
cargo run --release -- route aes --placement output/aes/placed.def --trace-net _16807_ --trace-box 400 289 410 298
# Draw one area at its true geometry, chosen nets highlighted and violations outlined and listed
cargo run --release -- view aes --placement output/aes/routed.def --box 403 292 406.5 294.5 \
--net _16807_ --layer metal2 --layer metal3 --out pair.pngPARE is written from scratch in Rust. The methods it follows come from the papers below; where they leave details open, OpenROAD's source is the reference for its behaviour, and OpenROAD's check_drc is the independent judge of its results.
Placement
- J. Lu, P. Chen, C.-C. Chang, L. Sha, D. J.-H. Huang, C.-C. Teng and C.-K. Cheng, "ePlace: Electrostatics-Based Placement Using Fast Fourier Transform and Nesterov's Method", ACM TODAES 20(2), 2015. Electrostatic global placement.
- C.-K. Cheng, A. B. Kahng, I. Kang and L. Wang, "RePlAce: Advancing Solution Quality and Routability Validation in Global Placement", IEEE TCAD 38(9), 2019. Global placement and routability-driven cell inflation; RePlAce is OpenROAD's
gpl. - J. Gu, Z. Jiang, Y. Lin and D. Z. Pan, "DREAMPlace 3.0: Multi-Electrostatics Based Robust VLSI Placement with Region Constraints", ICCAD 2020. Fence regions.
- M.-K. Hsu, Y.-W. Chang and V. Balabanov, "TSV-Aware Analytical Placement for 3D IC Designs", DAC 2011. Weighted-average wirelength.
- Yu. E. Nesterov, "A method of solving a convex programming problem with convergence rate O(1/k²)", Doklady Akademii Nauk SSSR 269(3), 1983.
- P. Spindler and F. M. Johannes, "Fast and Accurate Routing Demand Estimation for Efficient Routability-driven Placement", DATE 2007. RUDY congestion estimate.
- P. Spindler, U. Schlichtmann and F. M. Johannes, "Abacus: Fast Legalization of Standard Cell Circuits with Minimal Movement", ISPD 2008. Legalization of designs whose macros the placer moves.
- OpenROAD's detailed placer, OpenDP (
src/dpl), is the reference for legalization, its diamond search, rip-up, fence region placement and placement checks, and for detailed placement:improve_placement's set matching, swaps, reordering, random moves and flips, andoptimize_mirroring. - M. Pan, N. Viswanathan and C. Chu, "An Efficient and Effective Detailed Placement Algorithm", ICCAD 2005. Global swap and local reordering, for designs legalized with Abacus.
Netlist repair
- F. Dartu, N. Menezes and L. T. Pileggi, "Performance Computation for Precharacterized CMOS Gates with RC Loads", IEEE TCAD 15(5), 1996. The effective-capacitance delay calculation, as OpenSTA's
dmp_ceff_elmore. - C. J. Alpert, T. C. Hu, J. H. Huang, A. B. Kahng and D. Karger, "Prim-Dijkstra Tradeoffs for Improved Performance-Driven Routing Tree Design", IEEE TCAD 14(7), 1995. The Steiner trees the parasitics are estimated on, as OpenROAD's
stt. - L. P. P. P. van Ginneken, "Buffer placement in distributed RC-tree networks for minimal Elmore delay", ISCAS 1990. The dynamic program over a net's tree that rebuffering follows.
- OpenROAD's resizer (
src/rsz) is the reference forremove_buffers,buffer_ports,repair_design,repair_timingand itsRebuffer, its placer (src/gpl) for the timing-driven rounds, its parasitics estimator (src/est) and global router (src/grt) for the parasitics along global routes and their incremental rerouting, OpenDP (src/dpl) forlegalCellPos, and OpenSTA (src/sta) for the slew limits, the pi-model reduction, the delay calculation and the timing analysis PARE reproduces.
Clock tree synthesis
- K. Han, A. B. Kahng and J. Li, "Optimal Generalized H-Tree Topology and Buffering for High-Performance and Low-Power Clock Distribution", IEEE TCAD 39(2), 2020. The H-tree and its characterized buffering.
- B. Dezső, A. Jüttner and P. Kovács, "LEMON – an Open Source C++ Graph Template Library", Electronic Notes in Theoretical Computer Science 264(5), 2011. The network simplex the sink clustering's flows are solved with.
- OpenROAD's TritonCTS (
src/cts) is the reference for the characterization, the clustering, the H-tree and its legalization, the macro and register trees, dummy loads and latency balancing, and its resizer forrepair_clock_invertersand the clock net repair.
Routing and checking
- J. Liu, C.-W. Pui, F. Wang and E. F. Y. Young, "CUGR: Detailed-Routability-Driven 3D Global Routing with Probabilistic Resource Model", DAC 2020. Global routing.
- L. McMurchie and C. Ebeling, "PathFinder: A Negotiation-Based Performance-Driven Router for FPGAs", FPGA 1995. Negotiated congestion in global routing.
- A. B. Kahng, L. Wang and B. Xu, "TritonRoute: The Open-Source Detailed Router", IEEE TCAD 40(3), 2021. Detailed routing.
- A. B. Kahng, L. Wang and B. Xu, "TritonRoute-WXL: The Open-Source Router With Integrated DRC Engine", IEEE TCAD 41(4), 2022. The design rule checker (FlexGC). TritonRoute's code in OpenROAD (
src/drt) is the reference for the repair schedule, the passes over global routes and tiles in the last rounds, and the checks.
Tools
- T. Ajayi et al., "Toward an Open-Source Digital Flow: First Learnings from the OpenROAD Project", DAC 2019. OpenROAD 26Q2 is the reference implementation (
gpl,grt,drt) and providescheck_drc. - OpenROAD-flow-scripts 26Q2, with Yosys, synthesizes and floorplans aes, ibex, jpeg, ariane133 and bp_quad, and sets the Nangate45 defaults PARE follows.
Benchmarks and formats
- Nangate45: the NanGate FreePDK45 Open Cell Library, as distributed with OpenROAD and OpenROAD-flow-scripts. gcd, swerv, netcard and leon3mp come from OpenROAD's test inputs.
- I. S. Bustany, D. Chinnery, J. R. Shinnerl and V. Yutsis, "ISPD 2015 Benchmarks with Fence Regions and Routing Blockages for Detailed-Routing-Driven Placement", ISPD 2015. Contest page.
- S. Mantik, G. Posser, W.-K. Chow, Y. Ding and W.-H. Liu, "ISPD 2018 Initial Detailed Routing Contest and Benchmarks", ISPD 2018.
- W.-H. Liu, S. Mantik, W.-K. Chow, Y. Ding, A. Farshidi and G. Posser, "ISPD 2019 Initial Detailed Routing Contest and Benchmark with Advanced Routing Rules", ISPD 2019.
- IBM-PLACE benchmarks in Bookshelf format, from UCLA.
- A. E. Caldwell, A. B. Kahng and I. L. Markov, "Toward CAD-IP Reuse: A Web Bookshelf of Fundamental Algorithms", IEEE Design & Test of Computers 19(3), 2002. The Bookshelf format.
- LEF/DEF 5.8 Language Reference (Si2). The LEF and DEF formats.





