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.
Quick start · Why Attar · What's inside · How it works · Gallery · At a glance
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:
Timing-driven placement in 15 lines (examples/timing_driven.py): cva6 WNS -195 → -75 ps, in 2.2 s.
Why Attar
An idea, from your code or an AI agent's, is tested in seconds instead of an overnight P&R run, and the numbers can be trusted: each measure is checked against the tool it stands in for, on the same placement.
Accuracy in dark, speed in orange, against OpenROAD and OpenSTA on the larger designs; HPWL, legality, pin access and design rules are checked too. How each was measured.
- One environment. 262 designs from 24 benchmark suites (ISPD 2005-2024, ICCAD 2015 and 2025, MCNC, GSRC, IBM-HB+, NS3K, OpenROAD-flow-scripts) load with one call, in one format, from LEF/DEF, Bookshelf, YAL or GSRC blocks; 155 of them with timing. An algorithm is a function from tensors to positions: no database API, no TCL.
What it supports, how exact and how fast it is, and what it leaves to your P&R tool, on one page: docs/overview.md.
What's inside
Every engine and evaluator, with its accuracy against OpenROAD and OpenSTA: docs/features.md.
How it works
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: at a glance · concepts · engines and evaluators · benchmarks · API · validation
Gallery
| Floorplanning GSRC n100: B*-tree packing fits all 100 blocks into the core in 5.1 s. | |
| Routing congestion cva6, placed in 2.4 s. | Timing cva6: setup slack after placement, the worst in deep red; placed and timed in 4.4 s. |
| 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
Metadata
Release files for attar 1.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| attar-1.0.13.tar.gz | 464.0 kB | Without provenance | Details for attar-1.0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| attar-1.0.13-py3-none-any.whl | Python 3 | none | any | Details for attar-1.0.13-py3-none-any.whl |
Total release size: 908.4 kB
Release files / attar-1.0.13.tar.gz
| Download URL | attar-1.0.13.tar.gz |
|---|---|
| Size | 464.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8c6859d1d2485b3da81e69a0a6ddaaaac1e68f9852eb7e3d4a455cbe7a912b4
|
|
BLAKE2b-256 checksum How to use checksums |
1ab57458bf7cd7ef1a90f4ef8470b193e7f824ce2a14d4f3065c2e2edcaa9c49
|
| 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.13-py3-none-any.whl
| Download URL | attar-1.0.13-py3-none-any.whl |
|---|---|
| Size | 444.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e152c6ed0ad68c54e8ec1a4139f6bcf240d8c435b2b66911b0c57560f4aadef1
|
|
BLAKE2b-256 checksum How to use checksums |
3e777bbfda2631e1f66db399e929b751c9b0222f7cdc1c474fc72cdafc211d0a
|
| 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.13
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.