Report coincident terminals and unusable seeds per net, update custom bend handling and verification, and cover the revised behavior with regression tests. Shorten the user and developer guides around reader tasks and keep the illustrated routing walkthrough and reference links easy to find.
52 lines
1.3 KiB
Markdown
52 lines
1.3 KiB
Markdown
# inire
|
|
|
|
Inire routes photonic and RF layouts with straights, 90-degree bends, and S-bends.
|
|
|
|
## Install
|
|
|
|
From a checkout with Python 3.11 or newer, run `pip install .`.
|
|
|
|
## Route a net
|
|
|
|
```python
|
|
from inire import (
|
|
NetSpec, Port, RoutingProblem,
|
|
route,
|
|
)
|
|
|
|
start = Port(50, 100, 0)
|
|
target = Port(250, 100, 0)
|
|
net = NetSpec("input", start, target)
|
|
problem = RoutingProblem(
|
|
bounds=(0, 0, 1000, 1000),
|
|
nets=(net,),
|
|
clearance=2,
|
|
)
|
|
|
|
run = route(problem)
|
|
result = run.results_by_net["input"]
|
|
if result.is_valid:
|
|
print(result.report.total_length)
|
|
else:
|
|
print(result.outcome)
|
|
```
|
|
|
|

|
|
|
|
The example prints `200.0`. Heading `0` is east at both ports.
|
|
|
|
## Route your own layout
|
|
|
|
- [Set up a layout](docs/user/route-a-layout.md#define-the-inputs)
|
|
- [Diagnose a partial route](docs/user/tune-and-troubleshoot.md#why-a-net-stopped-short)
|
|
- [Save a placement recipe](docs/user/route-a-layout.md#save-a-placement-recipe)
|
|
- [User guide](DOCS.md)
|
|
|
|
## Develop Inire
|
|
|
|
- [Developer guide](docs/development.md)
|
|
- [Routing benchmarks](docs/benchmarks.md)
|
|
|
|
## License
|
|
|
|
Inire is distributed under the [GNU Affero General Public License v3](LICENSE.md).
|