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,87 +1,49 @@
|
|||
# Documentation improvement plan
|
||||
# Documentation editing plan
|
||||
|
||||
Make each section answer a question its reader came to solve. A link should help the reader take the next step, find a needed detail, or verify a claim made in the text. A heading sets the scope for the material under it. Start with the corridor page, then apply the same review to the user guides, developer workflows, benchmark pages, and examples.
|
||||
Treat familiarity with Python and layout geometry as the starting point for users. Contributors also know how to call Inire and read a result. Explain Inire-specific inputs and decisions where they first affect a task.
|
||||
|
||||
The existing [user guide](../DOCS.md) and [developer guide](../docs/development.md) provide the starting points. Continue using the user pages for layout tasks and the API contract, the developer pages for implementation and investigation, and the [routing archive](../archive/routing/README.md) for plans, captures, and development history.
|
||||
## Reader knowledge by section
|
||||
|
||||
## Review sections and links together
|
||||
Use these notes during edits. When a heading has inbound links, check the starting knowledge for a reader who opens that heading directly. Name any earlier example whose variables or setup it uses.
|
||||
|
||||
1. **Read the heading on its own.** Identify the question it promises to answer and who will ask it. Check every paragraph, figure, and link against that question. Move a source pointer to the mechanism it explains, a benchmark command to the measurement workflow, and a dated investigation to the archive.
|
||||
2. **Give the reader a usable answer in the section.** For troubleshooting, name an observable symptom, explain what to inspect, and show how that evidence changes the next action. For an algorithm, explain its inputs, decision, and output before pointing to the implementation. For a reference, put the field, default, and effect where the reader can scan them together.
|
||||
3. **Give each link a job in the sentence or table.** Name the command, subsection, implementation decision, or finding that the reader will reach. Place a citation immediately after the claim it supports. Use a table for source and license lookup when the columns make the relationship clear. Remove links whose destination adds no information the reader can use there.
|
||||
4. **Check the landing point.** Follow the link from the rendered page. A trace link should land on the relevant flag and how to read its output. A source link should reach the function or section that implements the behavior. A paper should come with the specific concept and section it supports. Preserve useful heading anchors and send inbound links directly to the section that now owns the material.
|
||||
5. **Tighten the layout after the content is in the right place.** Use numbered steps for a procedure, bullets for independent symptoms or choices, and tables for repeatable lookups. Use a short paragraph to explain why a choice follows from the evidence. Keep an illustration when it shows geometry or a state change the reader would otherwise have to infer.
|
||||
|
||||
| Reader needs | Link placement |
|
||||
| --- | --- |
|
||||
| Find an overlapping component | In the troubleshooting step that says which overlap fields to inspect and how to use them. |
|
||||
| Change how lanes are assigned | Beside the explanation of how the corridor planner chooses a crossing position. |
|
||||
| Read the research behind triangle-edge routing | At the claim about representing a route by a sequence of shared-edge crossings. |
|
||||
| Compare guide and seed on the same board | In the benchmark procedure with the case, profile, and expected comparison. |
|
||||
| Reproduce an earlier experiment | Beside the dated result that depends on it, with the matching code revision and command in the experiment record. |
|
||||
|
||||
## Rewrite corridor troubleshooting
|
||||
|
||||
The heading **When a corridor does not lead to a route** fits a missing corridor or a search that stalls. Paths that reach their ports and overlap also need a decision about verification and congestion. Use **Diagnose a missing or colliding route** and keep the existing heading anchor for bookmarks. Divide the actions by observed result.
|
||||
|
||||
| Symptom | What the reader should check |
|
||||
| --- | --- |
|
||||
| No corridor reported | Check that the port can enter free space along its heading after snapping. Inspect the keepouts and the mesh padding at the suspected opening. |
|
||||
| A corridor exists and the path stops short | Locate the first turn the path needs to make. Compare its available room with the allowed radii, then test the seed budget if the geometry fits. |
|
||||
| The paths reach their ports and overlap | Find the pair and component indices in the conflict trace. Compare the overlap with the layout to see whether the nets compete for the same opening. |
|
||||
|
||||
Proposed copy for the third symptom.
|
||||
|
||||
> **The paths reach their ports and overlap.** Use the [conflict trace](../docs/routing-diagnostics.md#traces) to identify the nets and the overlapping components. Locate those components on the board. If both nets compete for the same opening, inspect their lane order and available turn room before increasing the seed budget.
|
||||
|
||||
The conflict trace belongs in this step because it identifies the pair and where to look on the board. Put the implementation pointer under **Choose a passage and a lane** in the algorithm section. Give maintainers a reason to follow it, such as checking how crossing positions are sampled or how reservations affect another net's access. Point to the [mesh lane assignment](../inire/router/_topology.py#L214).
|
||||
|
||||
Use `run.topology` to check corridor counts and seeded net IDs when the selected worker reports them. The geometry and component indices supply the location of an overlap. Verify the finished wording against the [topology result fields](../inire/results.py).
|
||||
|
||||
## Explain why the research citations belong
|
||||
|
||||
Replace the generic introduction to earlier detailed-routing work with two specific references. Put the first beside the description of portals and the second beside the explanation of why a connected passage still needs a realizable waveguide. Each note should make sense to a developer who reads it and continues through the guide without opening the paper.
|
||||
|
||||
Proposed copy for the shared-edge representation.
|
||||
|
||||
> A portal is a shared edge between adjacent free-space triangles. For an earlier representation of a route by its crossings of triangle edges, see Section III-A and Figure 1 of [Hama and Etoh's curvilinear detailed-routing paper](https://www.cecs.uci.edu/~papers/compendium94-03/papers/1998/aspdac98/pdffiles/06c_3.pdf).
|
||||
|
||||
Proposed copy for physical constraints.
|
||||
|
||||
> A passage can be connected in the mesh and leave too little room to bend onto the target port's heading. For the bend-radius and port-alignment rules that constrain the physical route, see Section II-B of [LiDAR 2.0](https://arxiv.org/html/2505.17239v1#S2.SS2).
|
||||
|
||||
Use the first citation for the historical representation and the second for the photonic design constraints. Explain Inire's lane sampling, allowed bend geometry, and preplaced crossing workflow from Inire's own code and examples. In the benchmark fixture guide, keep the LiDAR dataset source and license beside the cases they document.
|
||||
|
||||
## Review the user path
|
||||
|
||||
| Page | What to improve | Reader check |
|
||||
| Page or section | Starting knowledge | New information or action |
|
||||
| --- | --- | --- |
|
||||
| [README](../README.md) | Keep installation and the runnable connection close together. Identify the expected length and why the two headings are eastbound. Use the end of the quick start to lead into the layout workflow. | A new user can run a route and recognize success from the printed value and figure. |
|
||||
| [User guide index](../DOCS.md) | Group navigation around describing a layout, checking a result, changing a setting, and looking up an API field. Put commonly used reference links next to the tasks that need them. | A user with a partial route or a port-heading question can choose a destination from the link text. |
|
||||
| [Layout guide](../docs/user/route-a-layout.md) | Walk through coordinates, arrival headings, physical keepouts, and valid output in the order users supply them. In the placed-crossing example, label the two finite footprints, local port openings, and external net. Use the real opening width and clearance to explain why the approach fits. | A user can substitute their own crossing footprints and route between ports without needing a benchmark fixture. |
|
||||
| [Tuning and troubleshooting](../docs/user/tune-and-troubleshoot.md) | Lead with the observed outcome and the next check. Connect each adjustment to an observable difference in coverage, cost, or work. Place the reference link at the setting whose accepted values the user needs. | A user can distinguish a capacity limit, a clearance problem, and a route that needs more search. |
|
||||
| [API reference](../docs/user/api-reference.md) | Give canonical signatures, units, defaults, and result fields. Use a short use case for any option whose effect is hard to infer. Send readers to the worked workflow where they need a runnable example. | A user can look up an option or interpret a status without reading implementation code. |
|
||||
| [Examples gallery](../examples/README.md) | Show what to notice in each selected image and link its runnable source separately in the example table. Caption the difference between a physical route and a search proxy where both are drawn. | A reader can choose a relevant script and tell what its output demonstrates. |
|
||||
| README quick start | Python and two port coordinates | Install, route one net, recognize success |
|
||||
| User and developer guide indexes | The task at hand | Pick the right reference, workflow, example, or check |
|
||||
| Layout guide / Define the inputs | Ports, widths, and keepouts in an existing layout | Integer port positions, travel headings, and concrete Inire inputs |
|
||||
| Layout guide / Route between placed crossings | How to describe a net and a keepout | Transform the device ports and leave room for the route to reach them |
|
||||
| Layout guide / Save a placement recipe | How to obtain a routing result | Keep the resolved net, moves, geometry settings, and coordinate unit |
|
||||
| Layout guide / Reuse an existing route | A verified result or imported polygons | Choose movable seeds or fixed geometry and replay with the resolved net |
|
||||
| Troubleshooting / Read the result | A run and a net ID | Interpret the outcome and find the next check |
|
||||
| Troubleshooting / Why a net stopped short | An unresolved route | Check the capacity bound, turn room, and search budget |
|
||||
| Troubleshooting / Modes and settings | The observed symptom or desired route behavior | Choose a mode or change one setting and compare results |
|
||||
| Fabrication / Ports and length | Placed-cell port data or a known authored length | Position a taper or apply a circuit length tolerance |
|
||||
| Fabrication / Layers and coplanar envelopes | A process layer map or CPW cross-section | Route by collision plane and bend profile, or route a gap envelope |
|
||||
| API / Call and inputs | The public call or input type to look up | Signatures, units, accepted values, and callback behavior |
|
||||
| API / Seeds and results | A proposed move sequence or a returned run | Replay requirements and the fields to inspect |
|
||||
| API / Options | The setting to change | Its default, effect, and range |
|
||||
| Architecture / Automatic routing | An Inire run and its outcome | Coverage target, candidate order, fallback, and stopping rules |
|
||||
| Architecture / Detailed search and congestion | What the worker is being asked to route | Move proposals, pruning, installed-path checks, and pair repair |
|
||||
| Architecture / Geometry and refinement | A seed or a candidate path | How physical polygons are checked and when a detour is accepted |
|
||||
| Architecture / Validate a change | The affected subsystem | The relevant entry point and local check |
|
||||
| Walkthrough / Load the board | Ports and keepouts | See how track capacity sets the target |
|
||||
| Walkthrough / Assign lanes | The initial board and target | Read waypoint lanes and see where the first plan ends |
|
||||
| Walkthrough / Turnaround | The westbound initial arrival | See what moves to make the arrival eastbound |
|
||||
| Walkthrough / Verify and refine | A candidate seed set | Compare installed polygons and the refined route |
|
||||
| Walkthrough / Inspect the result | The verified layout | Find the selected stage and search effort |
|
||||
| Walkthrough / Compare modes and guide search | The observed automatic run | Compare all modes and read an actual mesh and partial path |
|
||||
| Topological routing / Corridor planning | Guide or seed mode and the layout | Space, triangle crossings, lanes, and physical path realization |
|
||||
| Topological routing / Diagnose and reproduce | An unresolved route or a comparison to repeat | Interpret corridor evidence and find the benchmark scenario |
|
||||
| Diagnostics / Reports and metrics | A change in coverage, route, or time | Locate the stage and pick the counters to compare |
|
||||
| Diagnostics / Traces and comparison | A run or change to investigate | Collect the right trace and read its geometry or parity output |
|
||||
| Benchmarks / Cases and profiles | A behavior to measure | Choose a workload, budget, and comparison command |
|
||||
| Benchmark fixtures and results | The selected workload or policy change | Find provenance, reproduce input, or interpret prior measurements |
|
||||
| Examples and gallery | A routing task or feature to try | Choose a runnable case and identify what its figure demonstrates |
|
||||
|
||||
## Review the developer path
|
||||
## Editing and review
|
||||
|
||||
| Page | What to improve | Reader check |
|
||||
| --- | --- | --- |
|
||||
| [Developer guide](../docs/development.md) | Route contributors to the task they need to perform. Put environment setup, correctness checks, and parity in the change workflow. Link archive material from the task where it matters. | A contributor can choose the right check for a policy change or a cleanup. |
|
||||
| [Architecture](../docs/architecture.md) | Explain the planner and worker decisions in execution order. Attach code pointers to the invariants they implement, such as preserving verified IDs during refinement. Use the architecture diagram to explain decisions and stop conditions. | A maintainer can find where to change lock order, bounds, or route acceptance and knows what to verify. |
|
||||
| [Topological routing](../docs/topological-routing.md) | Apply the troubleshooting and citation rewrites above. Use the three-panel figure to distinguish the portal sequence, lane suggestion, and verified physical path. Place the mode comparison link with its explanation of what a developer can learn from that run. | A developer can explain why a corridor can exist while seed realization or final routing still falls short. |
|
||||
| [Diagnostics](../docs/routing-diagnostics.md) | Move from a symptom to a field or a trace, then show what evidence to compare. In the fan-out walkthrough, identify the restored conflict and the final verified count. Keep detailed field lookups and scratch capture commands near their use. | A developer can collect a trace, identify the conflicting components, and tell what changed after repair. |
|
||||
| [Benchmarks](../docs/benchmarks.md) | Keep the first command and expected report at the top. Describe what each case or profile isolates and put the next comparison beside the example output. | A developer can run a case, compare the same verified net set, and choose a holdout for a retry. |
|
||||
| [Benchmark fixtures](../docs/benchmark-fixtures.md) | Put provenance, license terms, source pins, and regeneration under their relevant fixture family. State what unseeded routing and a reference path each establish. | A developer can reproduce the input and explain whether a run measures routing policy or checks a feasibility witness. |
|
||||
| [Benchmark results](../docs/benchmark-results.md) | Lead with the decision each measurement informs. Record its profile, baseline, and date near the finding. Put historical run detail beside the linked archive entry. | A developer can tell which decision the result supports and where to recover the original run. |
|
||||
| [Archive index](../archive/routing/README.md) | Describe the purpose of each group of historical plans, captures, and baselines. Link to the current capture workflow where a maintainer needs to reproduce results. | A developer can find the corresponding raw record and identify the workflow for a fresh capture. |
|
||||
|
||||
## Order of work and acceptance
|
||||
|
||||
1. Edit the corridor page first. Review its headings, the three troubleshooting actions, the placement of the lane implementation link, and the two citations together. Keep the original symptom heading's anchor and verify inbound navigation from architecture and benchmarks.
|
||||
2. Follow the new-user path from the README to an exported path, then repeat it with an incomplete route. Walk through a placed crossing with finite keepouts and verify that the diagram, code, and explanation use the same ports and clearances.
|
||||
3. Follow the developer path from a behavior change to the relevant algorithm, a benchmark case, and a diagnostic capture. Audit the references so that historical evidence, source code, and runnable instructions appear where they serve that workflow.
|
||||
4. Read the rendered pages at desktop and narrow widths. Review the heading outline first, then read each linked sentence and open its destination. Check local links, figures, legacy anchors, source pins, and the accessibility of cited sections. Check that figure captions explain what to inspect and that color has a label or line-style counterpart.
|
||||
5. Run the published quick start, locked-path and placed-crossing snippets, overloaded-gate smoke run, offset-gates comparison, and one fan-out diagnostic capture. Use scratch outputs for the commands. Verify the stated results and check field names and defaults against the implementation.
|
||||
|
||||
During review, read the sentence or task as though the link were plain text. It should still tell the reader what to do or understand. The destination should deliver the named detail, evidence, or command.
|
||||
- Start with the layout guide, architecture, and complex-routing walkthrough. Apply the same reader check to the remaining active pages.
|
||||
- Use prose for reasoning, steps for procedures, tables for lookups, and short link lists for navigation and code entry points. Link terms directly when it helps readers identify what they can open.
|
||||
- Read each section for repeated context, unexplained terms, and text that duplicates a nearby example or caption. Keep figures that reveal intermediate geometry.
|
||||
- Walk through layout setup, partial-route diagnosis, placement, and a developer change. Run edited examples and confirm their stated results.
|
||||
- Check local links and images, preserve existing anchors, and keep every active page within two links of the user or developer guide. Archive and planning pages are exempt.
|
||||
|
|
|
|||
Loading…
Reference in a new issue