Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[alias]
xtask = "run --package xtask --quiet --"

[net]
git-fetch-with-cli = true
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup show
- name: Fetch locked dependencies for offline cross-platform metadata checks
run: |
ulimit -v 4194304
timeout --kill-after=5s 300s cargo fetch --locked
- name: Check repository within CPU resource budgets
run: |
free -h
Expand All @@ -37,6 +41,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup show
- name: Fetch locked dependencies for offline cross-platform metadata checks
run: |
ulimit -v 4194304
timeout --kill-after=5s 300s cargo fetch --locked
- name: Test within CPU resource budgets
run: |
free -h
Expand All @@ -49,6 +57,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup show
- name: Fetch locked dependencies for offline cross-platform metadata checks
run: |
ulimit -v 4194304
timeout --kill-after=5s 300s cargo fetch --locked
- uses: actions/cache@v4
with:
path: target/pdk
Expand Down
353 changes: 353 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

19 changes: 18 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ words that the rules keep out.

### Dependencies

- Dependencies come from crates.io only, are pinned to exact versions (`=x.y.z`) in the root
- Third-party dependencies come from crates.io only, are pinned to exact versions (`=x.y.z`) in the root
`[workspace.dependencies]`, and must pass `cargo deny check`.
- The pins follow a list that the RustEDA tools share. A third-party crate that is not on it is
not added in a change; propose it with a justification first.
Expand Down Expand Up @@ -306,3 +306,20 @@ reuse lint
- The body explains what changed and why, in terms of specifications and tests.
- Contributions are accepted under the Developer Certificate of Origin: sign off every commit
(`git commit -s`).


### Canonical first-party foundation (2026-10-25)

The four shared library implementations and the workspace CLI implementation are owned by
lab-emi/RustEDA-Common, the public first-party foundation. Workspace dependencies and Cargo.lock
pin one exact revision over HTTPS; no GitHub credentials are required. The local rusteda-cli package is a
product adapter and retains its package version in command output and revision history.

This supersedes the legacy requirement to copy shared implementation files between tool
repositories, and is the sole first-party exception to the crates.io-only source policy.
Third-party package versions, licenses and source restrictions are unchanged. Shared specification
and automation manifests still require deliberate updates. Canonical core tests run in the
foundation repository; product adapters and engines retain their local tests.

Cross-repository validation uses the pinned foundation source. The historical public main
branch retains its existing build policy until a reviewed migration is merged.
79 changes: 74 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "3"
members = ["crates/*/*", "xtask"]

[workspace.package]
version = "0.1.0"
version = "0.4.3"
edition = "2024"
rust-version = "1.97"
license = "Apache-2.0"
Expand All @@ -12,11 +12,12 @@ authors = ["RustSTA contributors"]
repository = "https://github.com/lab-emi/RustSTA"

[workspace.dependencies]
rusteda-core = { path = "crates/core/rusteda-core" }
rusteda-workspace = { path = "crates/core/rusteda-workspace" }
rusteda-compute = { path = "crates/core/rusteda-compute" }
rusteda-formats = { path = "crates/formats/rusteda-formats" }
rusteda-core = { git = "https://github.com/lab-emi/RustEDA-Common.git", rev = "06a9cdac2336b054b79b4d3647421dcae6cb6a1c" }
rusteda-workspace = { git = "https://github.com/lab-emi/RustEDA-Common.git", rev = "06a9cdac2336b054b79b4d3647421dcae6cb6a1c" }
rusteda-compute = { git = "https://github.com/lab-emi/RustEDA-Common.git", rev = "06a9cdac2336b054b79b4d3647421dcae6cb6a1c" }
rusteda-formats = { git = "https://github.com/lab-emi/RustEDA-Common.git", rev = "06a9cdac2336b054b79b4d3647421dcae6cb6a1c" }
rusteda-cli = { path = "crates/apps/rusteda-cli" }
rusteda-cli-shared = { package = "rusteda-cli-common", git = "https://github.com/lab-emi/RustEDA-Common.git", rev = "06a9cdac2336b054b79b4d3647421dcae6cb6a1c" }
ruststa = { path = "crates/engines/ruststa" }
ruststa-check = { path = "crates/verify/ruststa-check" }
ruststa-fixtures = { path = "crates/verify/ruststa-fixtures" }
Expand All @@ -28,13 +29,16 @@ crossterm = { version = "=0.29.0", default-features = false, features = ["window
serde = { version = "=1.0.228", features = ["derive"] }
# float_roundtrip: the decimal text of a stored f64 parses back to the same value.
serde_json = { version = "=1.0.149", features = ["float_roundtrip"] }
flate2 = { version = "=1.1.10", default-features = false, features = ["rust_backend"] }
libc = "=0.2.189"
thiserror = "=2.0.18"
rayon = "=1.12.0"
rustc-hash = "=2.1.2"
# Plain-record views of the frozen netlist tables and the compute task interface.
bytemuck = { version = "=1.25.2", features = ["derive"] }
memmap2 = "=0.9.11"
xxhash-rust = { version = "=0.8.19", default-features = false, features = ["xxh3"] }
smallvec = { version = "=1.16.2", default-features = false }
# The CUDA driver and NVRTC libraries are loaded at run time: builds need no CUDA toolkit.
cudarc = { version = "=0.19.10", default-features = false, features = ["std", "driver", "nvrtc", "fallback-dynamic-loading", "cuda-version-from-build-system", "fallback-latest"] }

Expand Down
57 changes: 39 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,16 @@ RustSTA analyzes gate-level Verilog, Liberty, SDC and SPEF with persistent multi

Part of **[RustEDA](https://github.com/lab-emi/RustEDA)**, infrastructure for chip-design recursive self-improvement. Native tools shorten the work between inference steps; verified results guide the next iteration.

## Latest development · 2026-11-01

## Development status · 2026-10-28

The **RustEDA integration is at 0.4.3**: multi-corner NLDM timing, propagated
primary clocks, bounded SPEF import, effective-capacitance waveforms and
non-tree extracted RC networks. The verification record combines dual-PDK
OpenSTA comparisons, independent circuit checks and full/incremental consistency.

Mixed-library SRAM timing and global early/late derates are under development
in a separate IHP checkout. They are not in this integration snapshot.
The standalone `main` branch can lag the integration; use `codex/unified-brand`
or RustEDA's pinned recursive checkout.

[Development status, results and known residuals](docs/development-status.md) ·
[RustEDA engine progress](https://lab-emi.github.io/RustEDA/engine-status/)
The source now includes mixed standard-cell/SRAM Liberty conventions, explicit
global early/late timing derates and driving-cell waveforms on extracted and
propagated-clock paths. RC preparation runs independent nodes within each graph
level on a bounded rayon pool, then commits results in topological order. The
memory estimate includes an additional 184 bytes per node for jobs/results.

[Current source and qualification](docs/development-status.md) ·
[Latest complete-flow evidence](https://lab-emi.github.io/RustEDA/benchmarks/)

## Quick start

Expand All @@ -56,7 +50,7 @@ export PATH="$PWD/target/release:$PATH"

```console
$ ruststa --version
ruststa 0.1.0 (backends: cpu)
ruststa 0.4.3 (backends: cpu)
```

From the repository root, analyze the bundled eight-cell chain in a fresh workspace:
Expand Down Expand Up @@ -89,7 +83,7 @@ For your own design, follow [the timing workflow](docs/guide/timing.md).

| Command | Result |
|---|---|
| `rusteda init` / `import` | Create a workspace and import Verilog, Liberty and SDC |
| `rusteda init` / `import` | Create a workspace and import Verilog, Liberty, SDC and SPEF |
| `ruststa run` / `update` | Analyze a revision and persist `sta.rbin` |
| `ruststa path` / `inspect` / `report` | Read timing paths, pins, endpoints and summaries |
| `ruststa check` | Compare saved timing with an independent checker, a full rerun, or both |
Expand All @@ -108,9 +102,9 @@ handles such as `path1` belong to the selected revision. Initialization creates
| Available now | Current boundary |
|---|---|
| Multi-corner 1D/2D/3D Liberty NLDM tables | No CCS/ECSM or sign-off accuracy claim |
| Setup/hold, latch borrowing, recovery/removal, gating checks | Ideal clocks; generated/propagated clocks and CPPR are outside current scope |
| Setup/hold, latch borrowing, recovery/removal, gating checks | Ideal and explicit propagated primary clocks; generated clocks and CPPR remain outside scope |
| Constants and supported `-from`/`-to` timing exceptions | Ordered `-through` exception hops are rejected by the engine |
| Ideal or lumped wire-load models | No SPEF annotation or distributed RC timing |
| Ideal, lumped wire-load and detailed SPEF RC networks, including resistor loops | Moment-matched pi, effective load and driver waveforms; disconnected components emit `T0151`; no crosstalk/CCS claim |
| CPU f64 and optional CUDA f64/f32 propagation | Metal/Accelerate is not a shipped backend |
| Incremental `TimingSession` Rust API | The CLI `ruststa update` currently reports full recomputation |

Expand All @@ -136,6 +130,12 @@ unverified. No numerical RustSTA-vs-OpenSTA speedup is claimed by this release.
Compare pinned reference executables as black boxes and report complete command
wall time, peak memory, timing scope and numerical agreement together.

In the RustEDA Ibex flow on IHP SG13G2 / EZ130 (two real SRAMs), RustSTA drives the
frontend and post-route repairs and signs off TT/SS extracted timing beside OpenSTA. In run16
(2026-10-30) the two agreed within 0.806 ps on identical SPEF, against a 1 ps gate. The
whole-flow comparison with LibreLane is on the
[RustEDA benchmarks page](https://lab-emi.github.io/RustEDA/benchmarks/).

[Verification scope](docs/verification/index.md) · [Dual-PDK suite](docs/verification/pdk.md) ·
[Performance and memory](docs/guide/performance.md)

Expand All @@ -157,3 +157,24 @@ crates, fixtures and tests. Everyone participating follows the
Report vulnerabilities according to [SECURITY.md](SECURITY.md).
RustSTA is licensed under [Apache-2.0](LICENSE); see [NOTICE](NOTICE) and
[REUSE.toml](REUSE.toml).

### Extracted RC timing

`rusteda import --spef routed.spef.gz --spef-corner tt --base-rev rev1 -w work`
imports a bounded detailed RC extraction for a previously imported netlist and
corner. It can also be combined with `--lib`, `--netlist` and `--sdc` in one
transaction. Run the usual `ruststa run` and `ruststa check --method full` on the
returned revisions. The scope reports `spef_rc`, `spef` and
`nldm_ceff_ramp`; missing extraction and a different corner are errors. Resistor
loops are solved on the nodal conductance system, and a part of a net without a
resistor path to its driver joins the driver with warning `T0151`.

Plain text and gzip are accepted under the same encoded/decoded byte cap. CRC
errors, missing annotation and budget overruns fail
explicitly without committing a partial revision. This uses moment-matched pi loads, charge-matched effective capacitance,
a finite-ramp Thevenin driver and RC threshold/slew propagation, with
factor-one grounded coupling. Explicit propagated primary clocks are supported; crosstalk and CCS current tables are not. The independent checker currently reports extracted RC as
undecided; use full recomputation and the measured dual-PDK black-box suite.
See [the SPEF workflow](docs/guide/spef.md),
[parasitic timing](docs/specs/sta/parasitics.md) and
[the verification report](docs/verification/rc-report.html).
Loading
Loading