Skip to main content
Attar: GPU-accelerated VLSI physical design in PyTorch

Diverse P&R benchmarks, distilled into one plug-and-play PyTorch environment on the GPU.
Evolve VLSI placement, timing-optimization and routing algorithms in minutes, not days.

Python PyTorch PyPI Downloads Validated Tests License

English  ·  繁體中文  ·  简体中文

Quick start  ·  Why Attar  ·  What's inside  ·  How it works  ·  Gallery

Quick start

pip install attar
import attar
d = attar.load('after_fp/orfs_asap7/aes', device='cuda')   # from the zoo, as tensors on the GPU
d.place()                                                   # or set d.pos from your own algorithm
print(attar.Evaluator(d).hpwl(), d.timing().wns)            # HPWL, and WNS as OpenSTA reports it
d.export('aes.def')                                         # back to OpenROAD, Innovus, ICC2, ...

Designs download from the Attar zoo on first use. The first timing run on a GPU compiles its kernels (about two minutes, once per machine; in Colab, once per runtime unless TRITON_CACHE_DIR and TORCHINDUCTOR_CACHE_DIR point to a folder that persists). No GPU? Everything also runs on the CPU, or try the examples in Colab:

notebook what it runs
Open In Colab Timing-driven placement in fifteen lines, the demo below: place cva6 for wirelength, time it, weight nets by slack as OpenROAD does, place again
Open In Colab [DAC 2026] LATTE, timing-driven detailed placement, step by step: a differentiable timer anchored on Attar's, independent sets, Adam with CAWP, judged after Attar's global routing, on an ICCAD 2025 contest design
Open In Colab [DAC 2026] Hybrid net-pin weighting for timing-driven global placement, step by step: DATE 2025's pin pairs plus net weights derived from a delay model, built on Attar's timer and placer, on superblue18 (745k cells)
Open In Colab [ICCAD 2025] SROA, GPU detailed placement for quality, step by step: every permutation of a few neighbouring cells, a DP over the rows, HPWL then MST wirelength, judged by Attar's global routing, on ispd19_test1
Open In Colab [DATE 2025] Pin-pair weighting for timing-driven global placement, step by step, on superblue18
Timing-driven placement written in fifteen lines of Python, run on cva6 and swerv: place for wirelength, time it, weight the nets by their slack as OpenROAD's global placement does, place again, time it

Timing-driven placement in 15 lines (examples/timing_driven.py): cva6 WNS -195 → -75 ps, in 2.2 s.

Why Attar

  • Fast. Timing inside the placement loop 21-54x faster than OpenROAD kept warm; a 2.2M-cell design placed and legalized in 49 s. An idea, from your code or an AI agent's, is tested in seconds, not in an overnight P&R run.

Seconds per timing update in global placement, OpenROAD kept warm vs Attar on the GPU: netcard_fast 7.2 vs 0.34 s, superblue18 13.0 vs 0.56 s, superblue1 19.6 vs 0.83 s, superblue7 33.6 vs 1.2 s; Attar is 21-27 times faster per GP update and 21-54 times faster per DP round

Timing after every move, as a timing-driven placer needs it, against OpenROAD with the design already loaded: same machine, same rounds, TNS within 0.13%. How it was measured.

  • One environment. 262 designs from 24 benchmark suites (ISPD 2005-2024, ICCAD 2015 and 2025, MCNC, GSRC, IBM-HB+, OpenROAD-flow-scripts) load with one call, in one format, from LEF/DEF, Bookshelf or YAL. An algorithm is a function from tensors to positions: no database API, no TCL.
  • Faithful. Against OpenROAD and OpenSTA on the same placement: HPWL within 0.00002%, timing (WNS) within 0.34%, power within 0.06%, global-routing wirelength within 3.6%.

What's inside

Roadmap in three cards. Data, 262 designs in the zoo: contest benchmarks ISPD 2005 (8), ISPD 2015 (20), ISPD 2018 (10), ISPD 2019 (10), ISPD 2024 (5), ICCAD 2015 (8), ICCAD 2025 (13), GSRC placement (4) for placement; MCNC (10), GSRC blocks (12), IBM-HB+ (28) for floorplan; ASAP7 (15 placement, 5 floorplan), Nangate45 (8 and 8) and NS3K (98 placement). Engines, done: die sizing, packing, macro placement, IO placement, global placer, legalizer, PDN-aware refinement, detailed placement, clock tree synthesis, global router, gate sizing, buffering and cloning, debuffering; not yet: delay-balanced clock trees. Evaluation, done: HPWL, Steiner wirelength, legality, displacement, density overflow, RUDY, global routing overflow, setup and hold timing, GR parasitics, propagated clocks and CRPR, slew, capacitance and fanout limits, power, blocked pin checking. Left to your P&R tool: PDN synthesis, detailed routing, routing DRC, sign-off

Every engine and evaluator, with its accuracy against OpenROAD and OpenSTA: docs/features.md.

How it works

Sources (LEF/DEF, Bookshelf, YAL, GSRC blocks) are distilled into the Attar IR and loaded as a Design on the GPU; attar.naive moves it and adds facts, the Evaluator measures it; export writes a DEF for your own flow (OpenROAD, Innovus, ICC2, ...)

Attar splits physical design at the power grid, as production flows do:

  • before_fp: given a netlist, find the die, IO pins and macros (d.floorplan()).
  • after_fp: given a fixed floorplan with its PDN, place the cells, then size, buffer, route and time them (d.place()).

Every design states the facts it has and where each came from, and every engine says which facts it needs:

>>> d.status()
  ✅ netlist           def             12268 nets, 42885 pins
  ✅ cell_geometry     lef             12420 cells (12009 movable, 0 macros), 56 masters
  ✅ pdn               def             1815 wire and 4785 via shapes on M1, M2, M3
  ...
  ❌ placement         12009 movable cells unplaced
  -> only a placement is missing: place the design, then d.export("out.def")

Docs: concepts · engines and evaluators · benchmarks · API · validation

Floorplan mode: GSRC n100 at 85% block area, floorplanned twice: GP plus LP legalization leaves 5 macros outside the core (not legal), B*-tree packing fits them all (legal)
Floorplanning GSRC n100: B*-tree packing fits all 100 blocks into the core in 5.1 s.
cva6 after placement, colored by global-routing load on OpenROAD's gcells ariane136 legalized with OpenROAD dpl's PDN rule only: 1,254 signal pins the router cannot reach past the PDN, spread over the standard-cell area
Routing congestion cva6, placed in 2.4 s. Pin access ariane136 legalized with OpenROAD dpl's PDN rule only: 1,254 pins the router cannot reach past the power grid (signal-to-PG DRVs after Innovus routing). Attar's legalizer leaves none.
ariane136 legalized: legal, rails and PDN included GSRC n300 floorplanned by B*-tree packing, with the strongest connections between blocks and IO pins
Legal placement ariane136, rails and PDN included, in 2.2 s. Floorplan GSRC n300: 300 blocks, 569 IO pins, packed in 43 s.

Acknowledgements

Attar's placer follows ePlace, DREAMPlace and Xplace; its timer follows OpenSTA and its checks follow OpenROAD. It is validated against OpenROAD-flow-scripts on ASAP7 and Nangate45. Benchmarks are from the ISPD, ICCAD and GSRC contests, MCNC and ORFS.

License

MIT License

Copyright © 2026 RayChang987  ·  free to use, modify and distribute; see LICENSE

Attar

Metadata

Release files for attar 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for attar 1.0.8
File Size Uploaded Provenance Actions
attar-1.0.8.tar.gz 413.0 kB Without provenance Details for attar-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for attar 1.0.8
File Interpreter ABI Platform Actions
attar-1.0.8-py3-none-any.whl Python 3 none any Details for attar-1.0.8-py3-none-any.whl

Total release size: 804.8 kB

Release files / attar-1.0.8.tar.gz

Download URL attar-1.0.8.tar.gz
Size 413.0 kB
Tags Source
SHA-256 checksum
How to use checksums
40df9d2acf6c373ba886fa30386d4d4cedbd9b2922736b8df6098046ab1e2e90
BLAKE2b-256 checksum
How to use checksums
18e8b6f9f668b44fa6d4706c82232cd58e2698c91e9925fd28b83d831c8db92b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / attar-1.0.8-py3-none-any.whl

Download URL attar-1.0.8-py3-none-any.whl
Size 391.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc1f7bf1f97aafe0b3ff081e8a4fd3311755ee40d86419ec1152a9e829341d8e
BLAKE2b-256 checksum
How to use checksums
3b877ac1c423880b112333a8211b5edc87c619af2d0dde014de63d7103a42f4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Security for attar 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page