inire/examples
2026-03-30 23:40:29 -07:00
..
01_simple_route.py rework structure of everything 2026-03-30 15:32:29 -07:00
02_congestion_resolution.py example fixes and improvements 2026-03-30 23:40:29 -07:00
03_locked_paths.png Add refinement by default 2026-03-29 15:46:37 -07:00
03_locked_paths.py example fixes and improvements 2026-03-30 23:40:29 -07:00
04_sbends_and_radii.py rework structure of everything 2026-03-30 15:32:29 -07:00
05_orientation_stress.png more fixes and refactoring 2026-03-29 18:27:03 -07:00
05_orientation_stress.py rework structure of everything 2026-03-30 15:32:29 -07:00
06_bend_collision_models.png example fixes and improvements 2026-03-30 23:40:29 -07:00
06_bend_collision_models.py example fixes and improvements 2026-03-30 23:40:29 -07:00
07_large_scale_routing.py fix examples 2026-03-30 21:22:20 -07:00
08_custom_bend_geometry.png example fixes and improvements 2026-03-30 23:40:29 -07:00
08_custom_bend_geometry.py example fixes and improvements 2026-03-30 23:40:29 -07:00
09_unroutable_best_effort.py fix examples 2026-03-30 21:22:20 -07:00
README.md example fixes and improvements 2026-03-30 23:40:29 -07:00

Inire Routing Examples

This directory contains examples demonstrating the features and architectural capabilities of the inire router.

Architectural Visualization

In all plots generated by inire, we distinguish between the search-time geometry and the final "actual" geometry:

  • Dashed Lines & Translucent Fill: The Collision Proxy used during the A* search (e.g., clipped_bbox or bbox). This represents the conservative envelope the router used to guarantee clearance.
  • Solid Lines: The Actual Geometry (high-fidelity arcs). This is the exact shape that will be used for PDK generation and fabrication.

1. Fan-Out (Negotiated Congestion)

Demonstrates the Negotiated Congestion algorithm handling multiple intersecting nets. The router iteratively increases penalties for overlaps until a collision-free solution is found. This example shows a bundle of nets fanning out through a narrow bottleneck.

Fan-Out Routing

2. Bend Geometry Models

inire supports multiple collision models for bends, allowing a trade-off between search speed and geometric accuracy:

  • Arc: High-fidelity geometry (Highest accuracy).
  • BBox: Simple axis-aligned bounding box (Fastest search).
  • Custom Manhattan Geometry: A custom 90-degree bend polygon with the same width as the normal waveguide.

Example 06 uses the Manhattan polygon as both the true routed bend geometry and the collision proxy. Example 08 compares the standard arc against a run that uses a custom physical bend plus a separate custom proxy polygon, with each net routed in its own session.

Custom Bend Geometry

3. Unroutable Nets & Best-Effort Display

When a net is physically blocked or exceeds the node limit, the router returns the "best-effort" partial path—the path that reached the point closest to the target according to the heuristic. This is critical for debugging design constraints.

Best Effort Display

4. Orientation Stress Test

Demonstrates the router's ability to handle complex orientation requirements, including U-turns, 90-degree flips, and loops.

Orientation Stress Test

5. Tiered Fidelity & Lazy Dilation

Our architecture leverages two key optimizations for high-performance routing:

  1. Tiered Fidelity: Initial routing passes use fast clipped_bbox proxies. If collisions are found, the system automatically escalates to high-fidelity arc geometry for the affected regions.
  2. Lazy Dilation: Geometric buffering (dilation) is deferred until a collision check is strictly necessary, avoiding thousands of redundant buffer() and translate() calls.