A physical-design research toolkit for the open SkyWater sky130 PDK, written in Rust. Each stage is checked against the established open-source tool that does the same job (OpenSTA, OpenROAD, Magic, or PDNSim) on the same inputs, and a stage counts as done only when its numbers agree with that tool's or its residual is named.
The repository is self-contained: every test design is public (see
tests/designs/README.md), and reference outputs are generated from those public designs.
Research prototype — read the skip summary.
stacovers a subset of SDC (stock LibreLanewrite_sdcoutput parses unchanged) and models clocks both ideally and viaset_propagated_clock, including latchD -> Qand time borrowing forsky130_fd_sc_hdshapes.
- Recognised check arcs the endpoint model does not evaluate —
non_seq_*,preserve, asyncClear/Preset, andmin_pulse_widtharcs whose pin is off the clock network — are counted and shown but exempt from--strict: they add checks outside the reported set rather than altering an arrival. (Clock-pinmin_pulse_widtharcs andthree_state_*enable/disable arcs are evaluated.)- Cells driven far outside their Liberty timing tables can diverge from OpenSTA.
- Every run prints what it left out as counts and shares of the design's arcs and endpoints;
--strictexits non-zero when a skip can change a reported number, and--json <path>writes the same summary machine-readably.
The open-source flow (OpenROAD and the tools around it) is complete, but slow to iterate with: a small block takes tens of minutes to place and route, and even a quick estimate goes through a container and a Tcl session. Exploring a design asks the same few questions over and over: does it meet timing, where is placement dense, will routing be congested. This project shortens that exploration loop, while keeping the established tools as the sign-off reference at standard file boundaries.
- Fast iteration: answer timing, placement, congestion, power, and IR-drop questions in seconds for designs up to about 100k cells on a laptop. Implementation steps such as detailed routing report their runtime explicitly; they are not claimed to be seconds-scale.
- One Rust binary, decoupled stages: no container and no Tcl. It reads the
standard files (Liberty, LEF, DEF, SPEF, SDC, VCD/SAIF, and Yosys JSON or
gate-level Verilog) and writes DEF, SPEF, route guides, and JSON reports. Every
stage can also consume OpenROAD's intermediate files (such as a placed DEF)
directly, so any stage can run standalone or hand over to OpenROAD at any
boundary. Rust for memory safety without a garbage collector and a single
static binary.
- Current: CPU data parallelism through
rayonacross global placement (FFT Poisson & wirelength gradients), RSMT/parasitic extraction, levelized STA, and routing/search kernels.
- Current: CPU data parallelism through
- Data-oriented design: flat arrays per attribute (structure of arrays),
graphs as index arrays instead of pointers, and
f32arithmetic.- Current: the netlist and floorplan are SoA with CSR lists (
design_db.rs); the placer and congestion estimate usef32on the CPU; the timing graph is Kahn-levelized (topological_levels+ per-pin incoming lists) so each combinational depth wave runs in parallel across threads. - Future: further flattening of remaining pointer-heavy structures, and an optional Metal GPU path.
- Current: the netlist and floorplan are SoA with CSR lists (
- Known fast algorithms, not new ones:
- congestion: RSMT (Steiner tree) decomposition followed by pattern (L/Z-shape) and probabilistic routing on a GCell grid;
- placement: analytical placement with an electrostatic density term solved by FFT (ePlace, DREAMPlace), plus an Abacus legalizer with local refinement;
- timing: propagation in Kahn topological order with NLDM table lookup, as OpenSTA computes it.
- Apple Silicon first: all cores through
rayon, plus Accelerate / Metal or NEON intrinsics where profiling warrants them (the density FFT, the wirelength gradient).- Current: multi-core CPU parallel via
rayonwith reusable zero-alloc transforms (PoissonWorkspace, thread-local DP scratch) and precomputed trig tables; no handwritten NEON intrinsics or Accelerate/Metal GPU path yet. - Target: Accelerate / Metal for remaining kernels if profiling says they matter.
- Current: multi-core CPU parallel via
- Agreement before speed: a stage gets faster only after it agrees with the reference tool, and the fast version must give the same answer as the simple one.
Not goals: sign-off or replacing the reference tools — see the scope note under Stages.
The implemented surface, per-stage done criteria, tolerances actually used, and
named residuals are consolidated in one place: docs/status.md.
The floorplan command is a utility that generates a starting DEF from a public
netlist; it is not a reference-checked stage by itself. Readers for SDC, SPEF,
VCD/SAIF, and route guides are verified as part of the stage that consumes them.
Out of scope: sign-off, GDS output, LVS, full Magic-deck DRC replacement, and production-quality detailed routing — OpenROAD, OpenSTA, Magic, KLayout, and PDNSim remain the reference and sign-off tools. The DRC command covers the LEF-expressible subset; the detailed router is a research implementation whose unrouted and residual cases are reported rather than hidden.
A GPU path (Metal) may come after a stage's CPU version agrees with the reference tool. The GPU result must then equal the CPU result.
cargo install grus-eda
mise use -g github:grus-systems/grus-eda
Either one suffices: the first builds from source with a Rust toolchain, the
second fetches a prebuilt binary (aarch64-apple-darwin,
x86_64-unknown-linux-gnu) with mise. Archives and
checksums are also on the
releases page directly.
docs/README.md gives the reading order. The entry points:
docs/status.md for current status per stage,
docs/benchmarks.md for runtime measurements,
docs/results.md for the full verification log.
No dependencies outside this repository. The reference tools come from the LibreLane
container image (ghcr.io/librelane/librelane:3.0.16). Test designs are public
(OpenROAD-flow-scripts sky130hd designs, picorv32).
grus-eda is licensed under the Apache License 2.0. The test designs
under tests/designs/ keep their own upstream licenses (BSD, ISC, Apache-2.0);
see tests/designs/README.md for the provenance and
license of each.