Refine routing geometry checks and streamline documentation
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.
This commit is contained in:
parent
8b32d68496
commit
eac083a37d
1 changed files with 1034 additions and 594 deletions
|
|
@ -1,18 +1,20 @@
|
|||
# Routing diagnostics and metrics
|
||||
|
||||
Use these reports to investigate a change in planner selection, coverage, or runtime. To troubleshoot a layout you want to route, start with the [user guide](user/tune-and-troubleshoot.md).
|
||||
Investigate changes in planner selection, coverage, or runtime.
|
||||
|
||||
- [Troubleshoot a layout](user/tune-and-troubleshoot.md)
|
||||
|
||||
## Automatic reports
|
||||
|
||||
- **A net is missing.** Compare the verified count with `max_routed`. If the count falls short of the bound, read `stages` for skipped or locked nets and look for the attempt where coverage stopped increasing. To see a run that reaches its bound of three routes out of four, try the [overloaded-gate benchmark](benchmarks.md#run-a-benchmark).
|
||||
- **A net is missing.** Compare verified count with `max_routed`. In `stages`, find where coverage stops increasing and check skipped or locked nets.
|
||||
|
||||
- **The chosen route changed.** Start at `stages[selected_stage]`. Read `planner` to identify how the candidate was created. Read `mode` to identify the worker that searched or verified it. A bundle candidate, for example, can be checked by a worker in `off` mode. Use `planner_rejections` to see why certain planners failed to produce a usable layout.
|
||||
- **The chosen route changed.** At `stages[selected_stage]`, `planner` names the candidate producer and `mode` names the worker that handled it. Use `planner_rejections` to inspect failed plans.
|
||||
|
||||
- **The run slowed down.** Group `timings` by policy and operation to see where the time went, including failed attempts. Each duration excludes time recorded by nested operations. `duration_s` is the total automatic run time. Use `run.metrics` and stage data to compare work across attempts. The returned traces, corridor report, and expanded states come from the selected attempt when available.
|
||||
- **The run slowed down.** Group `timings` by policy and operation, including failed attempts. Each duration excludes nested operations. Compare stage work with `run.metrics` and total time with `duration_s`.
|
||||
|
||||
## Route metrics
|
||||
|
||||
Pair each counter with a question about the work. Use a repeated wall-time comparison to confirm the effect. Higher counts can reflect more useful search or coverage.
|
||||
Use repeated wall times to check whether counter changes affect runtime.
|
||||
|
||||
| Observation | What to check next |
|
||||
| --- | --- |
|
||||
|
|
@ -22,7 +24,9 @@ Pair each counter with a question about the work. Use a repeated wall-time compa
|
|||
| Refinement takes longer | Compare `refinement_windows_considered`, `refinement_candidates_verified`, and `refinement_candidates_accepted`. Check whether the added windows buy a better path before enlarging the default budget. |
|
||||
| Attempts reach targets while verified coverage stays flat | Compare `iteration_conflict_edges` and `nets_carried_forward`. After congestion iterations finish, check how many pair repairs were tried and how many were installed. `pair_local_search_nodes_expanded` counts expansions from searches that produced a locally valid pair. Use `pair_local_search_attempts` to count every try. |
|
||||
|
||||
`nets_routed` and `nets_reached_target` count attempts. Use `result.is_valid` or `verified_net_ids` to count final successes. Duration counters ending in `_total_ns` can vary between identical runs. For the full field list, see the [`RouteMetrics` definition](../inire/results.py).
|
||||
`nets_routed` and `nets_reached_target` count attempts. Use `result.is_valid` or `verified_net_ids` for final successes.
|
||||
|
||||
- [Full metrics field list](../inire/results.py)
|
||||
|
||||
Exact corner visibility uses cached local queries. Track them with `visibility_corner_queries_exact` and `visibility_point_cache_hits`. The legacy graph counters `visibility_builds` and `visibility_corner_pairs_checked` report zero, as do `ray_cast_calls_visibility_build` and `ray_cast_calls_visibility_query`.
|
||||
|
||||
|
|
@ -62,9 +66,12 @@ python -m scripts.record_conflict_trace \
|
|||
--output-dir /tmp/inire-trace
|
||||
```
|
||||
|
||||
1. Open `conflict_trace.json` and find `restored_best`. Six nets pass verification. The conflicting pairs are `net_02` with `net_03` and `net_06` with `net_07`. For example, component 1 of `net_02` conflicts with component 1 of `net_03`. Compare the counts with the [recorded conflict trace](../archive/routing/conflict_trace.md#example_07_large_scale_routing_no_warm_start).
|
||||
1. In `conflict_trace.json`, find `restored_best`. Six nets verify. The conflicts are `net_02`–`net_03` and `net_06`–`net_07`.
|
||||
2. Compare with `final`. All ten nets pass verification after repair, and the list of conflict edges is empty.
|
||||
3. To compare expansions and congestion work in the iterations leading up to repair, substitute `scripts.record_iteration_trace` in the command. If you need the reroute order and per-net work immediately before repair, substitute `scripts.record_pre_pair_frontier_trace` and compare with the [recorded pre-pair trace](../archive/routing/pre_pair_frontier_trace.md).
|
||||
3. Substitute `scripts.record_iteration_trace` for expansion and congestion counts, or `scripts.record_pre_pair_frontier_trace` for reroute order and per-net work before repair.
|
||||
|
||||
- [Saved conflict trace](../archive/routing/conflict_trace.md#example_07_large_scale_routing_no_warm_start)
|
||||
- [Saved pre-pair trace](../archive/routing/pre_pair_frontier_trace.md)
|
||||
|
||||
Use the returned result to count final successes. For live progress during routing, pass an [`iteration_callback`](user/api-reference.md#route-a-problem).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue