Document typed and octagonal routing plan
This commit is contained in:
parent
a05980e8af
commit
3b3d1c74fc
1 changed files with 239 additions and 0 deletions
239
docs/typed-and-octagonal-routing-plan.md
Normal file
239
docs/typed-and-octagonal-routing-plan.md
Normal file
|
|
@ -0,0 +1,239 @@
|
||||||
|
# Preparation plan for typed and octagonal routing
|
||||||
|
|
||||||
|
Prepare Inire to route waveguides with different types, place fixed transitions and generated tapers, route through fixed and generated bends, and match total delay with orientation taken into account. The routing scope is two-port straights, bends, S-bends, and transitions on a single routing layer. The user pre-places crossings in Masque and supplies their ports and keepouts as part of the layout.
|
||||||
|
|
||||||
|
Start with a behavior-preserving change to the current Manhattan router. Define the Masque-side interface before building synthetic integration fixtures. Prepare the catalog and grid contracts for eight headings before finalizing public types. Use the existing benchmarks to distinguish the cost of introducing the catalog from the cost of adding new routing choices.
|
||||||
|
|
||||||
|
## Suggested release sequence
|
||||||
|
|
||||||
|
1. **Typed Manhattan.** Preserve the legacy path, including its default cost refinement. Use the same pass or a bounded catalog-aware equivalent for typed routes. Exercise directed fixed transitions, a fixed bend with unequal setbacks, an authored S-bend, and placement through Masque. Keep routing on a single layer, with exact profile identity at direct joins and crossings preplaced by the caller.
|
||||||
|
2. **Eight headings.** Start with diagonal straights and a small catalog of authored 45° and 90° bends. Keep 135° and 180° single moves in the catalog contract. Add automatic Euler-fraction selection and general generated S-bend proposals after measuring grid fit and proposal growth. Begin with declared quarter turns and reflections for supplied cells. Revisit 45° cell rotations if a device catalog needs them and its transformed ports fit the lattice. Use a caller-selected lattice first. Prototype automatic grid choice and coarse-to-fine routing against the same fixtures.
|
||||||
|
3. **Delay.** Ship orientation-aware delay reporting before tuning. When matching is enabled, meeting the requested tolerance is part of completing routing. Use one four-turn template inside caller-supplied windows, with at most one window per net. Defer automatic window discovery. Use one wavelength per match group. Give incomplete independent nets another routing attempt when a failed group releases space under the default partial-placement policy. Use benchmarks and profiling to tune the improvement and recovery passes. Defer multi-net chains across fixed devices, per-axis matching, and putting delay into the search state until measured cases justify them.
|
||||||
|
|
||||||
|
## Starting point
|
||||||
|
|
||||||
|
Inire uses one width per net and searches integer positions with four headings. Its lattice router already accepts non-circular bend and S-bend outlines and authored lengths. The move type and parameters still determine the port displacement. A 90° bend has equal setbacks, and an S-bend's span is derived from radius and offset. Search, seed replay, and refinement share these conventions. [Port model](../inire/geometry/primitives.py#L19) · [Component endpoints](../inire/geometry/components.py#L88) · [Routing architecture](architecture.md)
|
||||||
|
|
||||||
|
## Ownership and boundary
|
||||||
|
|
||||||
|
| Masque | Inire |
|
||||||
|
| --- | --- |
|
||||||
|
| Resolve technology-specific port types, allowed primitive variants, directionality, and process profiles. | Search for compatible sequences and placements, including where to change waveguide type. |
|
||||||
|
| Supply fixed cells, their polygons, ports, and delay data. Supply parameters for generated variants and translate layout units, frames, and layer rules. | Evaluate fixed and generated geometry against keepouts, reservations, and other routes. Reuse the existing layout ranking and pair repair where the move contract permits it. |
|
||||||
|
| Place the selected cell references and generated polygons directly into the supplied layout and connect their terminals. | Return the selected variants, parameters, and placements, resolved poses and types, verified geometry, and matching results. |
|
||||||
|
| Express matching groups, delay contributions outside the router, and any designated tuning regions. | Find and verify collision-free adjustments within the supplied regions and report achieved delay or skew. |
|
||||||
|
|
||||||
|
An attachment identifies the net endpoint, fixed instance and port, physical port face, and a bounded join region. At a butt join, positive clearance needs an exception that extends beyond the face. Apply it to the contiguous route prefix or suffix at that endpoint, ending when the route first leaves the join region. Splitting the approach into several collinear moves must preserve the permission. Each authorized route uses its own attachment. Check ordinary clearance against unrelated geometry, across the limits of the join region, and on later visits to the region. Reject interior overlap outside the numerical tolerance at the shared face, including overlap inside the join region. When a blocking envelope cannot describe the opening and face, supply the actual routed shapes near the port for that check. [Fixed-route IDs](../inire/model.py#L400) · [Static clearance](../inire/geometry/collision.py#L712)
|
||||||
|
|
||||||
|
At every join, require the same layout position, travel heading, and profile for the two resolved ports. Validate the finite common face separately. Allow small numerical overlap or missing material confined to the face tolerance, provided another net cannot fit through the seam. One implementation is to reserve the nominal face across the accepted seam band for foreign-net clearance. Include that reservation in admission and verification while keeping the evaluated polygons for placement. At a generated diagonal join, construct both faces from the same endpoints on the line perpendicular to travel. Check overlap elsewhere. Preserve the current use of along-path separation for self-clearance so splitting a continuous straight into short segments preserves its validity. Use conservative proxies to find candidate pairs and authoritative footprints for the final decision. Apply the join and attachment rules during terminal access, reach estimation, search, replay, and verification. Scope any cached clearance result that depends on an attachment to that permission. [Current join checks](../inire/geometry/component_overlap.py#L47) · [Same-path spacing](../inire/geometry/component_overlap.py#L104) · [Static admission cache](../inire/router/_astar_admission.py#L148)
|
||||||
|
|
||||||
|
A forward-moving S-bend following a straight is the ordinary successful join fixture. For a separate self-spacing control, use a 4 µm guide, a 3 µm-radius half turn, and parallel incoming and returning straights. Their centerlines are 6 µm apart and their edges are 2 µm apart. At 3 µm self-clearance the two long straights fail where they run alongside each other, well away from their joins. Check this using placed polygons. This case requires neither a turn beyond 180° nor a centerline supplied by the fixed-cell library.
|
||||||
|
|
||||||
|
### Draft Masque interface
|
||||||
|
|
||||||
|
The standalone Masque request describes the full routing problem. Use layout coordinates for positions and polygons at this boundary.
|
||||||
|
|
||||||
|
| Input | Contents |
|
||||||
|
| --- | --- |
|
||||||
|
| Board | Routing bounds, physical scale per layout unit, caller-selected lattice origin and pitch, routing layer, route and self-clearance, and the process orientation frame. |
|
||||||
|
| Connections | Stable net IDs and on-grid source and destination Masque ports. Resolve named ports on placed cells to layout coordinates and map them to catalog profiles. The mapping may need an explicit per-port assignment when a Masque port type names more than one compatible cross-section or mode. Use preplaced access pieces where a device port needs adaptation. |
|
||||||
|
| Obstacles and fixed geometry | Caller-designated blocking geometry on the routing layer, resolved to layout coordinates by the adapter. An attachment identifies the net endpoint, fixed piece and port, and geometry of the permitted join. |
|
||||||
|
| Catalog | Revision, stable variant IDs, legal traversal directions and transforms, and the data needed to evaluate and place fixed cells and supported generated geometry. Each traversal has an explicit input and output profile. |
|
||||||
|
| Timing | Optional delay reporting at a specified wavelength and optional matching. Each active match group has one operating wavelength, caller-specified units, offsets, and tolerance, plus any fixed delay contributions. A net is eligible for a tuning detour only inside its caller-supplied window. Members without windows still participate in the delay comparison. |
|
||||||
|
| Placement policy | Masque adapter option. By default, place the completed routes. Optionally require the entire request to complete before placing anything. |
|
||||||
|
|
||||||
|
Convert Masque's inward-facing source terminal to its outward travel heading and use the destination terminal's inward heading for arrival. Within a primitive the travel direction points into the input port and out of the output port. Resolve directions and validate port positions in the submitted frame before converting them to lattice coordinates. Masque rounds port coordinates to its layout resolution before submission and supplies port positions, origin, and pitch in a common integer layout unit. Inire requires both coordinate differences from the origin to be exactly divisible by the pitch. Returned placements must resolve to the submitted terminal poses. Apply quarter turns and reflections by coordinate swaps and sign changes. Keep polygon coordinates at full precision.
|
||||||
|
|
||||||
|
Resolve terminal and component ports to canonical routing profile IDs. A profile includes its waveguide type and distinguishes incompatible cross-sections or guided modes. Treat the wavelength used for a delay measurement as a timing input. It does not change profile identity. Require matching poses and equal profile IDs at every direct join, including fixed attachments and destination terminals. A declared transition traversal is how a route changes profiles.
|
||||||
|
|
||||||
|
For each supplied cell, identify the Masque cell and its two port names. Use only declared quarter-turn rotations (0°, 90°, 180°, and 270°) and reflections. Follow Masque's placement convention. Apply any reflection across the cell's local x-axis, then rotate counterclockwise about the cell origin, then translate. A cell can have native diagonal ports, such as a 45° bend with cardinal entry and diagonal exit. Derive legal entry and exit headings from the authored ports, selected input port, and allowed cell transform. Use the same contract for type transitions, including bidirectional variants and laterally displaced ports.
|
||||||
|
|
||||||
|
Evaluate candidate variants before selection. A fixed-cell entry supplies named ports and polygons. Derive the physical face from routed material at the port or reject an ambiguous face with a diagnostic. A fixed cell can supply characterized delay directly. Physical centerline length is optional for fixed cells. Mark total route length unavailable when a constituent length is unknown. Use a catalog placement charge for such a cell. A generated entry uses a supported primitive and a declared parameter domain. Both evaluations return resolved port poses, authoritative footprint polygons in the same frame as the port transform, physical length when known, cost, and optional delay. A supplied footprint may represent the exact routed shapes or a declared blocking envelope on the routing layer. Use the same generated geometry for evaluation and placement. Cache local geometry by catalog revision, variant, traversal direction, parameters, orientation, reflection, and any grid or sampling settings that affect it.
|
||||||
|
|
||||||
|
Route and place in one Masque adapter call. Before defining the public interface, choose which package owns the adapter, pin the supported Masque API in the integration fixtures, and document the caller's layout and port inputs. Resolve cells, ports, terminal assignments, and output names before writing geometry. Inire performs route and clearance verification and identifies completed routes. Masque trusts the verified placements of those routes. It writes the generated polygons and fixed-cell references at the supplied transforms and connects the assigned terminals using those placements. Specify the consumed terminal names and any exposed output names in the request or adapter contract, then check the resulting port list in integration tests.
|
||||||
|
|
||||||
|
Track geometric verification and completion separately. A net outside an active match group completes when its route verifies. A group completes when every member has a verified route and the group meets its tolerance. By default, place completed routes, including all members of each completed group. Keep geometrically verified candidates in incomplete groups available for inspection. With the complete-placement option enabled, require completion of the whole request before making any layout edits. If the request is incomplete, skip placement and return the routing and matching results with that placement outcome.
|
||||||
|
|
||||||
|
Rank verified layout alternatives first by completed net count (each member of a completed group counts once), then by completed group count. Break remaining layout ties by lowest catalog cost, with stable order for ties. Test four independent completions against one completed three-net group. The four independent nets win even when their cost is higher. Callers seeking priority can submit a smaller request.
|
||||||
|
|
||||||
|
Before finalizing default partial placement, release the provisional paths and tuning reservations of any group that will be left unplaced. Give independent nets that remain incomplete a bounded retry against the resulting layout. Hold completed routes fixed during this retry and verify the final placement set. Report any retained failed-group candidates as diagnostic geometry from the earlier attempt. The complete-placement option uses the ordinary routing and matching attempts to seek a fully complete layout.
|
||||||
|
|
||||||
|
Invalid catalog entries and invalid placement inputs are fatal to the call. If a Masque placement or connection operation raises, propagate that exception as a fatal execution error and stop executing placements. Earlier writes may remain. The complete-placement option is a check of routing and matching results before the first write. Ordinary unrouted and unmatched nets are reported through Inire's routing and matching results. Return ordered per-net placement records with the catalog revision, variant IDs, traversal directions, parameters, layout transforms, and resolved port poses and profiles for execution and inspection.
|
||||||
|
|
||||||
|
In this plan, **seed replay** is an Inire operation. Given an ordered move sequence and its start pose, Inire evaluates those moves under the supplied problem and checks the resulting geometry without searching for alternatives. Use it for legacy parity and typed move verification tests. Masque placement executes Inire's verified output for the current request. A saved-placement import API is outside the first release. To route a changed layout, submit a new problem to Inire.
|
||||||
|
|
||||||
|
### Bends, S-bends, and transitions
|
||||||
|
|
||||||
|
- Bends and S-bends preserve the routing profile and its waveguide type. A fixed bend or S-bend has authored port poses, optional physical length, and a caller-provided collision footprint. It follows the fixed-cell transform rules.
|
||||||
|
- A generated bend supports 45°, 90°, 135°, and 180° turns in either direction as single moves. The circular-equivalent radius `R` sets the bare port locations at each angle, including `(R, R)` for a left 90° turn. Keep the footprint and centerline length of the selected curve. Add short tangent leads where they make the ports grid-compatible, and include them in the evaluated footprint, port poses, length, and delay.
|
||||||
|
- Use `R` and the allowable minimum curvature radius `Rmin` to generate a partial Euler bend. Choose the largest Euler fraction that satisfies `Rmin` at the requested angle while retaining the circular-equivalent port locations. Use a fully Euler profile when it satisfies the floor. A catalog can supply an explicit `euler_frac` for a characterized shape, including `0` for circular geometry. Define the fraction as the share of the heading change in the two linear-curvature ramps. Report the actual minimum radius and enforce any declared floor.
|
||||||
|
- Generate S-bends from two opposed turns, using shallower turns for small offsets and a straight between them when needed. Apply the radius floor at each lobe's actual angle. Let search consider a bounded set of grid-compatible spans and offsets.
|
||||||
|
- A transition is a fixed cell or an explicitly declared linear taper between routing profiles. Generate the taper as a centered trapezoid whose end widths come from the two profiles. Round the specified minimum length up to a legal straight step for the heading. Admit the variant at that heading if the stretch is at most 5% by default. A characterized variant can declare a different limit with timing data valid at the admitted lengths. Charge the fixture's caller-supplied taper delay once per placement, independent of the stretch.
|
||||||
|
|
||||||
|
## First device set
|
||||||
|
|
||||||
|
Use three waveguide types on the same routing layer. Width identifies the type in this fixture. Keep type as a separate catalog field so the general contract can distinguish types of equal width.
|
||||||
|
|
||||||
|
| Type | Width | Straight cost per cm | Circular-equivalent bend radius | Cost per 90° bend | S-bend cost | Initial group index |
|
||||||
|
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||||
|
| 4 µm guide | 4 µm | 1 | 10 µm | 0.01 | 0.02 | 4 |
|
||||||
|
| 5 µm guide | 5 µm | 0.5 | — | — | — | 4 |
|
||||||
|
| 8 µm guide | 8 µm | 0.2 | 100 µm | 0.1 | 0.2 | 2 |
|
||||||
|
|
||||||
|
The 5 µm guide uses straights and transitions in this fixture. Use the same circular-equivalent radius across bend angles. A 45° bend has the same cost as a 90° bend. Use twice the 90° cost for a 135° bend, a 180° bend, or an S-bend in the fixture. Allow catalog variants to supply their own charges.
|
||||||
|
|
||||||
|
| Fixed transition | Forward port displacement from the 4 µm end | Lateral displacement | Footprint | Cost | Group index for synthetic delay |
|
||||||
|
| --- | ---: | --- | --- | ---: | ---: |
|
||||||
|
| 4 µm ↔ 5 µm | 10 µm | Centered ports | Caller-supplied polygon | 0.01 | 4 |
|
||||||
|
| 4 µm ↔ 8 µm | 100 µm | 200 nm to the left when traveling from the 4 µm end | Caller-supplied polygon, 10 µm wide and centered on the 4 µm end | 0.2 | 3 |
|
||||||
|
|
||||||
|
Both transitions are bidirectional. The router may switch to another type and return to the starting type within the same net. The lateral offset of the 4-to-8 µm transition is −200 nm in the device description. Inire's travel-local lateral coordinate is positive to the left, so the reference displacement for the east-facing 4 µm input is `(100, +0.2)` µm in Inire coordinates. Evaluate each direction from its actual input port and verify the output pose and footprint together. Assign the synthetic cells authored lengths of 10 µm and 100.01 µm respectively. Supply group optical lengths of 40 µm and 300.03 µm in either direction. Test the latter as a direct characterized delay as well, with the length field absent.
|
||||||
|
|
||||||
|
Use a 100 nm grid for the fixture as a starting point. It represents the 200 nm offset in two grid units for the reference transition with cardinal ports. A supplied transition variant for diagonal travel needs authored diagonal ports and grid-compatible poses. Exercise generated tapers in a separate fixture so fixed-transition cost checks use the two fixed cells in the table. A 10 µm taper rounds to about 10.041 µm on a diagonal and is available. A 2 µm taper rounds to about 2.121 µm and exceeds the stretch limit. Require on-grid port positions and compute straight cost from physical length in centimeters, including on diagonal headings. Evaluate delay separately from routing cost.
|
||||||
|
|
||||||
|
## Preparation sequence
|
||||||
|
|
||||||
|
### 1. Prepare the technology fixture and freeze the legacy reference behavior
|
||||||
|
|
||||||
|
- Settle the Masque request, evaluation, and placement contracts before building the synthetic device set. Capture its footprints, authored port poses, and allowed cell transforms. Include an asymmetric quarter turn and an S-bend with a declared span. Evaluate the cardinal and grid-compatible diagonal variants before settling public types.
|
||||||
|
- Record the baseline revision, options, and dependency versions for the current corpus and holdouts. Capture verified net IDs, effective port poses, ordered moves, per-net physical lengths where known, and placed polygons for representative cases. Record search expansions and geometry-cache work alongside repeated wall times.
|
||||||
|
- Include standard straight, bend, and S-bend cases, custom-outline replay, exact-clearance contacts, mixed widths, pair repair, and a large board. Keep disabled search and seed replay in the comparison.
|
||||||
|
- Inventory the assumptions that depend on cardinal headings, constant width, or built-in setback formulas. Start with move proposal and admission, path cache keys, terminal access, guide generation, capacity bounds, refinement, and seed replay. [Benchmarks](benchmarks.md) · [Diagnostics](routing-diagnostics.md#reproduce-and-compare)
|
||||||
|
|
||||||
|
### 2. Put the current primitives behind one evaluation boundary
|
||||||
|
|
||||||
|
- Define the minimum evaluation contract around input and output profiles, legal entry headings, the local port transform, parameters, authoritative footprints, an optional conservative proxy, physical length when known, cost, and optional delay. A stable variant key and selected parameters must identify the replayed move against the same catalog revision. Keep layout rendering data in the adapter.
|
||||||
|
- Separate evaluating known parameters from proposing them during search. Prepare a deterministic, bounded set of candidates using rays, guides, the target pose, and the actual displacement of each compatible variant. Include a fixture where an asymmetric bend changes the straight length needed to hit the target. Keep geometry caching independent of process-dependent delay evaluation so the same footprint can be reused when comparing timing conditions.
|
||||||
|
- Make search and seed replay consume the same evaluated move. Wrap the existing straight, 90° bend, and S-bend constructors first. Preserve existing public inputs and seed recipes during this refactor.
|
||||||
|
- Include the routing profile in state and apply the direct-join predicate to target matching. Include the evaluated variant and orientation in geometry cache identity. Directed transitions define the profile changes the search can use.
|
||||||
|
- Retain the specialized bundle, column, and compact paths for their current component assumptions. Start general catalog routes in detailed search. Treat a corridor as guidance until the physical moves verify, and use a capacity bound only where its assumptions still hold for all permitted types and transitions.
|
||||||
|
- Require parity on the legacy path before changing candidate generation. Compare routes, coverage, and work separately. Review any change to a verified ID, geometry, or expansion count at the fixture level.
|
||||||
|
|
||||||
|
#### Search and cost checks
|
||||||
|
|
||||||
|
- Treat detailed search as best effort. Report a known budget exit separately from a run that finished without a verified path. A finished bounded run can still miss a legal path. On a tiny board, build a reference enumerator with a short finite move set, zero heuristic, and complete path histories. Enumerate every legal placement of those moves up to a fixture depth that includes the known solution. Compare against production proposals with relaxed history pruning to find moves that never reached admission. Then run production pruning on the reference candidate set to isolate losses from dominance. Use the same collision verifier and catalog cost in all three runs.
|
||||||
|
- Require an unseeded search to find a displaced transition whose footprint clears a constrained passage only at an interior launch point. Compare its proposed launch points and expansions with the tiny exhaustive reference before setting a production budget.
|
||||||
|
- Exercise arrival history with a scripted move graph. Let `S = (0, 5)` and `P = (5, 5)` both face east, and allow only the east straight from `P` to the goal `G = (9, 5)`. Build one direct approach to `P` and one via `(2, 5)`, `(2, 9)`, `(7, 9)`, `(7, 2)`, `(3, 2)`, and `(3, 5)`. Use small turns and a guide narrow enough for each approach to be independently valid. Give the long scripted approach lower accumulated fixture cost. Assert equal pose and profile at `P`, then assert that only the direct approach can continue because the other crosses the continuation at `(7, 5)`. The reference must find the direct route. Use this case to verify any alternate-arrival retention or weaker-pruning retry selected for production.
|
||||||
|
- Let the caller's costs and available components steer trade-offs between straight length, transitions, and bends. Among complete solutions found by search, rank by caller-supplied catalog cost. Keep congestion, guide bonuses, and proximity terms available for search ordering. Use finite nonnegative catalog costs and a cost tolerance independent of the geometric tolerances. Use catalog-only scoring with stable tie ordering in the cost fixtures. A bend's quoted cost covers its nominal footprint. Charge optional tangent leads at the profile's straight rate unless the variant declares an inclusive charge. Record which convention each fixture uses.
|
||||||
|
- Keep the current cost refinement pass or a catalog-aware equivalent enabled by default. Preserve the first verified layout that meets the coverage target as an incumbent. Give refinement a bounded opportunity to lower its catalog cost, including on a fully routed board. Within a fixed completion set, accept a cheaper verified layout even if skew increases while staying within tolerance. Try targeted local changes before considering another broad search. Accept an improvement only after verifying the replacement layout, preserving the incumbent's completed net IDs and active match tolerances. Tune the pass's scope and budget using the benchmark comparisons. [Current automatic refinement](../inire/router/_automatic.py#L710)
|
||||||
|
- Evaluate the 4, 5, and 8 µm straight rates at the same physical length, with expected charges `0.1`, `0.05`, and `0.02` at 1000 µm. Check diagonal straights against the physical length of their integer displacement. Verify each fixed transition charge in both directions. Compare one 90° bend with two 45° bends using the same profile, accounting separately for any required straight leads. For later single-move 135° and 180° fixtures, place a keepout that excludes the smaller-turn sequence while clearing the single move. Check that the move is both proposed and selected.
|
||||||
|
- For the straight trade-off, restrict the catalog to the 4 and 5 µm straights and the two traversals of the centered 10 µm transition. Route between aligned 4 µm ports at distances of 370, 380, and 390 µm on an open board. The direct route costs `L / 10000`. The switched route costs `0.02 + 0.5 × (L − 20) / 10000`. Verify direct is cheaper at 370, both cost `0.038` at 380, and switched is cheaper at 390. At the tie, use stable ordering. Repeat at 390 with each transition priced at `0.012` and expect the direct route to win. Repeat with the original prices and the return traversal absent and expect only the direct route to be feasible. Test a two-net case separately, with equal verified coverage in both alternatives and a cheaper detour on just one net, to check the layout ranking as well as the per-net objective.
|
||||||
|
- Test refinement with a search fixture that reaches full coverage on an expensive verified layout, then offers a cheaper typed or diagonal replacement. Expect the default run to take the verified improvement. Disable refinement and expect the original layout. Repeat with the replacement colliding or causing a completed group to miss its delay tolerance, and with the budget ending before the alternative can be verified. In each case expect the incumbent and its completed net IDs to be retained.
|
||||||
|
|
||||||
|
### 3. Specify the Masque integration checks
|
||||||
|
|
||||||
|
Drive these checks through the Masque adapter with real test cells and a layout. Derive expected ports and transforms from the authored cell data. Compare placed polygons by geometric equality within the polygon tolerance. For a blocking envelope, check containment of the actual routed shapes on the routing layer and check the physical join independently. Submit a second request on a fresh copy of the layout with a keepout intersecting the expected path. Inire should find a different verified path or return the net unrouted, according to whether the fixture allows a detour.
|
||||||
|
|
||||||
|
| Case | Fixture and assertions |
|
||||||
|
| --- | --- |
|
||||||
|
| Unequal setbacks and a required type change | Route 5 µm ports from `(20, 30)` east to `(70, 75)` north. Supply the centered 10 µm transition in both directions and only the 4 µm left bend for the east-to-north corner. Give the bend a 4 µm entrance straight followed by an 8 µm circular quarter turn, with local displacement `(12, 8)` and physical length `4 + 4π` µm. The minimum-cost route has 5→4 before the bend and 4→5 after it. The bend starts at `(58, 30)`, and the straight lengths total 28 µm before the bend and 27 µm after it, excluding the two transitions. A 1 µm-clearance keepout `[57, 59] × [37, 39]` intersects the bend's bounding box and clears the routed shape. Check that the valid bend is both proposed and admitted. Disable the 5→4 traversal and expect the net to remain unrouted. |
|
||||||
|
| Authored S-bend span | Supply a fixed 4 µm S-bend with input at `(0, 0)`, output at `(26, 6)`, and eastbound travel at both ports. For example, build its footprint and physical length from a centerline `(26t, 6(3t² − 2t³))` for `0 ≤ t ≤ 1`. In Inire, evaluate it at `(20, 20)` and verify a 24 µm following straight reaches the eastbound target `(70, 26)`. Check the authored span, shape, and length in the result and seed verification. |
|
||||||
|
| Displaced transition in both directions | Use authored ports `A = (0, 0)` and `B = (100, 0.2)` with inward headings east and west. Native `A→B` travels east with displacement `(100, 0.2)` µm. Native `B→A` travels west with displacement `(-100, -0.2)` µm. In a single eastbound route, go from `(10, 20)` through `A→B` to `(110, 20.2)`, along a 20 µm straight to `(130, 20.2)`, then through `B→A` with local x-axis reflection followed by 180° rotation, arriving at `(230, 20)`. Assert the composed footprints, traversal order, intermediate profiles, and two transition charges. For the composition test, force this sequence with a move seed or fixture constraints so a direct 4 µm route cannot satisfy the test by itself. |
|
||||||
|
| Off-origin reflected cell | Author a second copy of the asymmetric bend with input `(2, 3)` and output `(14, 11)` in its cell frame. Reflect across local x, rotate counterclockwise 90°, and translate by `(40, 50)`. Expect input `(43, 52)` heading north and output `(51, 64)` heading east. Check the cell reference and transformed footprint in Masque as well as the evaluated ports. |
|
||||||
|
| Profile compatibility | Test equal widths with different type IDs, then the same nominal type and width with different mode or cross-section profiles. Exercise an intermediate join and destination acceptance at otherwise identical poses. Both reject mismatched profiles. Add a directed transition and verify the same route succeeds in its allowed direction. Check the reverse request separately with the reverse traversal absent. |
|
||||||
|
| Invalid inputs | Reject an undeclared 45° rotation of a supplied cell, a missing footprint, and a duplicate terminal assignment before any writes. Snapshot geometry, references, and ports. A test of the rotation restriction should use a catalog entry with native diagonal ports in a separate successful control, so cell transform and port heading are tested independently. |
|
||||||
|
| Placement policies | Use separate layouts with an unrouted net, an unmatched group, and complete routing and matching. Include an independent completed net in the unmatched case. Under default placement, execute the independent net and leave the unmatched group's terminals and geometry untouched while returning its verified candidate routes. With complete placement enabled, the first two requests return their results with no layout edits. The third places every route. Check the returned placement outcome and Masque port changes in each case. |
|
||||||
|
| Retry after an unmatched group | Give a third, independent net just one legal passage. In one case a provisional route from an unmatched group crosses that passage. In another case only the group's tuning reservation obstructs it. With the group still unmatched after its normal attempts, release its provisional geometry and reservations and expect the independent net to complete on the retry. Include a completed group elsewhere on the board and check that its placements and delay match are preserved. Under default placement write the completed routes and keep the unmatched group's earlier geometry in diagnostics. With complete placement expect no writes. |
|
||||||
|
| Fatal execution failure | Inject a placement or connection exception after one successful write, with at least one more placement pending. Assert that the exception reaches the caller, later placements are skipped, and the call returns no ordinary routing outcome for the error. Exercise the same case with complete placement enabled and a fully successful Inire result. Use an executor spy to check that Masque receives the verified transforms and polygon payloads from Inire. |
|
||||||
|
|
||||||
|
#### Attachment and join regressions
|
||||||
|
|
||||||
|
- For an isolated butt join in µm, use the fixed rectangle `[-10, 0] × [-2, 2]`, a source at `(0, 0)` departing east, the 4 µm-wide straight to `(10, 0)`, clearance `1`, and join region `[-2, 2] × [-3, 3]`. Accept the authorized straight and the same straight split at `x = 0.5` and `x = 3`. Reject it with no attachment. Shrink the region to end at `x = 0.5` and reject the part that still needs clearance beyond that limit. Add a shelf `[0.3, 0.7] × [1.5, 2]` to the fixed footprint and reject interior overlap even with the original join region. Check search admission and Inire verification against the same cases.
|
||||||
|
- For a later visit to the same region, test a piece near `x = 0.25` to `0.5`, `y = 2.25` to `2.75`, using the same attachment. It is inside the join region and less than 1 µm from the fixed footprint. Mark it as part of the route after the initial approach has exited the region. Expect an ordinary clearance failure. Exercise the same rule from the destination by reversing the approach.
|
||||||
|
- On a preplaced crossing, use two authorized ports with distinct approach geometries. Both must succeed. At the clearance or admission layer, query identical approach geometry with and without its attachment, warming the cache in each order. The unrelated query must fail in both orders. Repeat for terminal reach estimates if they use a separate cache.
|
||||||
|
- With positive self-clearance, verify a straight and the same straight split into three short collinear moves. For a diagonal seam, test a shared finite face, a numerical sliver within the face tolerance, and an equally thin overlap displaced past the end of the face. Accept the first two and reject the third. Keep fixtures for numerical face tolerance, route clearance, and the wider attachment join region independent.
|
||||||
|
- Keep two resolved ports exactly coincident at `(0, 0)` traveling east, with nominal faces at `x = 0` spanning `y = −1` to `1`. In µm, use polygons `[-2, -0.001] × [-1, 1]` and `[0.001, 2] × [-1, 1]`, with a face tolerance of `0.002` on either side. Use zero clearance and a foreign strip `[-0.00025, 0.00025] × [-2, 2]`. The strip clears the raw polygons. Check that the join verifies on its own and that its reservation blocks the foreign move both during admission against the installed join and during layout verification. Run this between consecutive moves and at a fixed attachment. With both nets proposed in either order, the final verified set may contain at most one. Move the gap edges to `x = ±0.004` and reject the join itself. Separately offset one nominal port while leaving the polygons unchanged and reject the join on pose equality.
|
||||||
|
|
||||||
|
### 4. Specify an eight-heading grid contract
|
||||||
|
|
||||||
|
- Use eight headings on a square position grid. Define cardinal and diagonal displacements in integer grid steps and use their physical lengths for cost and delay. A step of one unit on each axis has length √2 grid units. For a northeast move with lattice displacement `(dx, dy)`, the forward and lateral projections in units of `pitch/√2` are `dx + dy` and `dy − dx`. The two projection counts must have the same parity.
|
||||||
|
- Require grid-compatible evaluated poses for each legal entry heading. Use native diagonal ports on supplied cells and generate variable geometry such as straights for the requested heading. Include any modeled lead extensions in the evaluated footprint, port poses, and length. Validate the transformed port coordinates before converting them to the lattice and keep full polygon precision.
|
||||||
|
- Prepare fixtures for a 45° turn in each direction using a cell with a native diagonal port, an asymmetric bend used after a diagonal, a diagonal port launch near a keepout, and a mixed cardinal and diagonal path. Verify and replay those cases. Check off-grid variants explicitly. For a diagonal U-turn or a displaced diagonal transition with parallel port axes, the transverse offset must be an integer multiple of `pitch/√2`. Tangent leads preserve that offset.
|
||||||
|
- Extend heading-dependent rays, straight proposals, terminal access, and search priorities after legacy parity is established. Validate diagonal routes through exact-clearance openings before extending constructive fast paths.
|
||||||
|
|
||||||
|
Use exact lattice membership for positions. Keep the heading residual and physical face tolerance separate. Construct generated moves from their selected integer output displacement, and check that their evaluated geometry meets the physical face there. Keep the authored fixed-cell geometry at its executed transform and verify its physical join under the face tolerance. Reject off-grid terminals in caller-selected lattice mode. Treat a well-formed variant with an incompatible pose for a particular heading and grid as unavailable for that evaluation, with a diagnostic reason. For tangent leads, declare a maximum per lead and require both to be nonnegative. Keep geometrically distinct footprints that share a displacement. Use stable ordering by lead lengths and lattice displacement, and record both lead lengths with the evaluated parameters.
|
||||||
|
|
||||||
|
Prototype Inire choosing the grid after the explicit-grid path works. Compare a grid selected to fit the submitted terminals and useful catalog variants with coarse route guidance at 1–10 µm pitch followed by local placement refinement at the Masque coordinate precision, for example 1 nm. Keep authored terminals and fixed-cell geometry at their exact layout poses. A coarse corridor can propose a route even when its terminal or a fixed transition does not fit the coarse lattice. Verify every realized route at full layout precision against the original problem. On a refinement failure, try a different corridor, use the explicit-grid search, or return an ordinary incomplete outcome according to the remaining search budget. Avoid an exhaustive full-board search at the finest pitch when evaluating this approach.
|
||||||
|
|
||||||
|
| Grid case | Assertions |
|
||||||
|
| --- | --- |
|
||||||
|
| Origin and tolerances | On pitch `0.1` µm and origin `(0.03, -0.02)` µm, check that `(0.33, 0.18)` maps to `(3, 2)` and the returned layout pose equals the original. Have Masque round a float-valued x coordinate of `0.33000000000000004` µm to 330 nm. Verify that Inire accepts the submitted position. Repeat with a submitted x coordinate of 331 nm and reject the 1 nm position error independently of heading and face checks. Exercise a reflected and rotated off-origin cell chain through the Masque adapter. Check the lattice decision and final join separately. Verify that polygons and fixed reference transforms retain their original precision. |
|
||||||
|
| Circular 45° bend with leads | A 10 µm left turn from east to northeast has bare displacement `(10/√2, 10 − 10/√2)`. To reach `(7.2, 3.0)` µm on the 100 nm grid, solve for an entrance lead of about `0.057864` µm and an exit lead of about `0.100505` µm. Admit that evaluated displacement with a per-lead cap of `0.11` µm and exclude it with a cap of `0.10` µm. Verify the port poses, cap handling, the bend length `2.5π` plus both leads, and the actual lead polygons. |
|
||||||
|
| Diagonal parallel ports | For northeast travel, offer projection counts `(forward, lateral) = (5, 1)` and `(5, 2)`. The first gives displacement `(2, 3)` in grid units. The second violates parity. A 10 µm-radius diagonal U-turn requires 20 µm of lateral offset, about `282.843` steps of `pitch/√2`, and is unavailable at that heading. The same radius fits the cardinal grid. Exercise both zero and nonzero tangent-lead bounds. |
|
||||||
|
| Different footprints at the same pose | Use a 10 µm-radius cardinal U-turn from `(0, 0)` east to `(0, 20)` west with two sets of tangent leads, `(0, 0)` and `(2, 2)` µm. Use a 0.4 µm guide, 0.25 µm clearance, and keepout `[9.9, 10.1] × [9.9, 10.1]`. Both moves have the same resolved ports. The no-lead move intersects the keepout and the extended curve clears it. Check that both geometries reach admission and that the extended move can be selected in either proposal order. |
|
||||||
|
| Taper rounding | On the 100 nm grid, both 10 µm and 2 µm are legal cardinal lengths. For northeast, check `71√2 × 0.1 ≈ 10.041` µm is admitted and `15√2 × 0.1 ≈ 2.121` µm exceeds 5%. If exercising a characterized 7% limit, check that it admits the shorter taper and charges its specified delay once. Inspect both finite end faces and the assigned profiles. |
|
||||||
|
| Flat-ended diagonal access | Bound a northeast approach by parallel keepouts at exactly half the guide width plus clearance on each side, using clearance and width in layout units. Put the port on the lattice. The necessary straight must appear in the proposals and pass exact verification. Move one wall inward by more than the clearance tolerance and reject the straight. Check both source launch and destination arrival. |
|
||||||
|
| Coarse-to-fine prototype | Use an eastbound 4 µm source at `(20.001, 30.001)` and 8 µm destination at `(170.001, 30.201)` on a 1 nm layout grid. Use the 100 µm transition with a lateral offset of `0.2` µm. Generate guidance at 1 µm pitch and realize the route on the fine grid. Assert exact endpoints and verify the transformed transition and final clearance. Add a keepout that blocks the first proposed realization and check that the result comes from a verified retry or is incomplete. On an explicit 1 µm grid, these authored terminal positions do not share a lattice origin. |
|
||||||
|
|
||||||
|
When adding automatic Euler-fraction selection, use a 90° turn with `R = 10` µm and minimum curvature radius floors of 5, 8, 10, and 11 µm. Expect full Euler, partial Euler, circular, and no admissible shape, respectively. All admissible bare outputs must be at `(10, 10)` µm with northward travel. Check the actual minimum radius from the centerline curvature independently of polygon sampling. For the 8 µm case, check that increasing the selected fraction beyond its numerical tolerance fails the floor. Also check that an explicitly authored `euler_frac = 1` fails that floor and `euler_frac = 0` meets it. Extend the checks to the other bend angles and to the actual lobe angles selected for generated S-bends.
|
||||||
|
|
||||||
|
### 5. Specify orientation-aware delay and tuning
|
||||||
|
|
||||||
|
- Treat reporting and matching as separate options. With no active matching, use ordinary routing, ranking, and refinement. Compute requested delay reports on the selected verified geometry. Reporting must leave placements, net order, cost, and completion unchanged. Timing data and tuning windows supplied for inactive matching have no influence on search or reservations.
|
||||||
|
- Start with **orientation-aware total-delay matching**. For generated straights, bends, and S-bends, integrate `n_g` over centerline arc length using the local travel tangent in the process frame. A bend variant can override the guide model on its curved sections. Count any straight lead extensions once using the straight-guide model. Fixed cells may supply delay by orientation and traversal. Generated tapers use their specified fixed delay. Report group optical length or divide by the speed of light to express delay in time units. Use the match group's units for offsets and tolerance.
|
||||||
|
- Evaluate each match group at one operating wavelength. Pass it to the catalog delay evaluator, along with the profile and the local travel angle measured counterclockwise from the process axis, modulo `2π`. Provide a built-in uniaxial approximation `n_g(θ) = n_g(0) cos²θ + n_g(π/2) sin²θ` from two caller-supplied principal-axis modal group indices. A single supplied `n_g` gives the constant model. Let the built-in formula supply its own half-turn symmetry. Evaluate a custom callback at the actual travel angle. Set an integration accuracy target in group optical length before choosing integration and sampling settings. [Orientation-dependent modal group index](https://www.nature.com/articles/s41377-024-01506-1)
|
||||||
|
- In the first release a match member is one routed net plus its declared fixed delay contributions at that wavelength, with each contribution counted once. This follows the Masque convention of routing one external connection per net at a crossing. For an end-to-end constraint across a preplaced crossing, first route and hold one side fixed. In the request that matches the other side, supply the fixed side’s reported delay and the characterized crossing traversal delay as additive fixed contributions at the group wavelength. Count each once. If the fixed side changes, update its contribution before matching again. Use disjoint match groups initially so tuning a net affects one group. [Existing crossing workflow](user/route-a-layout.md#connect-a-preplaced-crossing)
|
||||||
|
- A positive relative offset asks for a longer delay. Subtract each net's scalar offset from its total delay. Compare the spread across the nets with the tolerance supplied for that match group. With delay-increasing tuning, the largest current adjusted delay sets a lower bound on the reference.
|
||||||
|
- Treat caller-supplied tuning windows as location constraints for their assigned nets. Reserve them during initial routing and tuning, allow one per net, and reject intersecting supplied window interiors. Treat each as a keepout with ordinary clearance for other nets. Its boundary is a containment limit for the owner's replacement footprint. Every candidate must clear other owners’ reserved windows even where window boundaries touch.
|
||||||
|
- Without a supplied window, use the verified baseline as the sole tuning choice for that member.
|
||||||
|
- For an active window, enumerate bounded, grid-compatible four-turn replacements. Preserve both endpoint poses and profiles. Use only verified replacements with positive modeled delay increments relative to the original segment. Include the original route as a choice. A group can complete without allocating tuning space when its verified routes already meet tolerance.
|
||||||
|
- Compare attainable adjusted delays across the group, including targets above the largest baseline adjusted delay. With disjoint windows, gather the verified choices per net and look for an interval containing a choice for every member. A choice meets tolerance when its adjusted delay spread is less than or equal to the group tolerance. Among verified choices meeting tolerance, minimize total catalog cost and use stable move order for cost ties. When none meets tolerance, prefer lower skew, then lower catalog cost for the reported candidate. Verify the complete selected layout before returning it. Report final delays and residual skew, and preserve the best verified incumbent if the search budget expires. Distinguish an attempt that misses tolerance, an unrouted member, missing delay data, and budget exhaustion. For misses, record whether any legal tuning space was found. A verified incumbent that meets tolerance completes its group even if the budget expires while looking for a better match.
|
||||||
|
- With matching enabled, reaching full geometric coverage does not end the attempt if a group remains unmatched. Try tuning in supplied windows first. Use remaining routing budget to try verified baseline alternatives for the affected nets, such as a route that reaches a supplied window, frees a usable straight span, or uses a different catalog sequence. Re-evaluate eligible spans inside the supplied windows, then tune and verify the new layout. Keep delay out of the first detailed-search pruning refactor. If bounded routing retries miss too many known-feasible matches, measure a search that retains several delay labels for the same pose and profile.
|
||||||
|
- Defer **same-orientation matching** until the process model defines how to assign delay from curved and fixed components to axes. The draft rule classifies straight headings modulo 180° in the process frame. For each net and axis, subtract an offset that defaults to zero and compare the spread with the group's tolerance for that axis. The sum of a component's per-axis contributions must agree with its total contribution.
|
||||||
|
|
||||||
|
### Synthetic delay fixtures
|
||||||
|
|
||||||
|
Use the 4 µm guide with group index 4, a 100 nm grid, 1 µm clearance, and a board from `(0, 0)` to `(400, 300)` µm. Port coordinates below are in layout µm and list the source before the destination. Use a caller-supplied tolerance of 0.05 µm of group optical length for these fixtures. Use the straight primitive in all cases and enable 10 µm circular quarter turns for tuning. The per-axis expectations apply to the follow-up matching mode.
|
||||||
|
|
||||||
|
| Case | Fixture | Expected result |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| Cardinal axes | East `(20, 40)` to `(120, 40)`, west `(120, 70)` to `(20, 70)`, and north `(160, 20)` to `(160, 120)`. Each route contributes 400. | All three match in any-orientation mode. East and west match on the 0° axis. Adding north to that group yields a spread of 400 on both the 0° and 90° axes. |
|
||||||
|
| Diagonal axes | Northeast `(20, 160)` to `(50, 190)`, southwest `(90, 190)` to `(60, 160)`, and southeast `(130, 190)` to `(160, 160)`. Each route contributes `120√2`. | All three match in any-orientation mode. Northeast and southwest match on the 45° axis. Adding southeast yields a spread of `120√2` on both the 45° and 135° axes. |
|
||||||
|
| Per-axis offset | Reuse east and west from the cardinal case and move the east destination to `(140, 40)`. Ask for a positive offset of 80 on the east net's 0° axis. | The 0° contributions are 480 and 400. Both adjusted contributions are 400 and the same-orientation group matches. |
|
||||||
|
| Offset with fixed access | Two eastbound straights from `x = 20` to `x = 140` at `y = 40` and `y = 120`. The second net includes an attached access straight from `(15, 120)` to `(20, 120)` contributing 20. Use any-orientation matching with a positive offset of `80π − 60` for the second net. Its tuning window is `[40, 100] × [115, 155]`. | The baseline delays are 480 and 500. A four-bend detour adds `80π − 80` to the second net, giving adjusted delays of 480 for both nets. Verify that the fixed access contributes exactly once and that all tuned geometry fits the window. |
|
||||||
|
| Insufficient room | Reuse the offset case with a caller-supplied tuning window of `[40, 100] × [117, 123]` and constrain both nets to their baseline straights outside the window. | The window fits the straight and cannot fit a 10 µm quarter turn. Keep the supplied location constraint even if space is available elsewhere. Return both verified candidates with residual skew `80π − 80` and an incomplete group. |
|
||||||
|
|
||||||
|
For the detour oracle, replace the 50 µm portion from `(45, 120)` to `(95, 120)` with four quarter turns of radius 10 µm and three 10 µm straights. The detour reaches `y = 150`. Its centerline length is `20π + 30` µm. Separately exercise an unknown fixed access delay and a tuning budget that expires before evaluating a candidate. Expect a distinct status for each and preserve the last verified geometry.
|
||||||
|
|
||||||
|
For a delay-model fixture, rotate the process axis to +45° and use principal modal group indices of 4 and 2. A 10 µm circular quarter turn from east to north contributes `15π + 10` µm of group optical length. Its reflected turn from east to south contributes `15π − 10` µm. Check the evaluated and replayed delays for both turns.
|
||||||
|
|
||||||
|
For a tuning fixture where added length reduces delay, reuse the four-turn detour with straight `ng = 4` and a bend override of `ng = 1`. The 50 µm original segment contributes 200 µm of group optical length and the detour contributes `120 + 20π` µm. Verify that the delay-increasing tuner skips this candidate. Exercise validation of a net listed in two match groups and a second net attempting to use a reserved tuning window.
|
||||||
|
|
||||||
|
| Additional case | Fixture and assertions |
|
||||||
|
| --- | --- |
|
||||||
|
| Fixed side of a crossing | At one wavelength, give the previously routed side a group optical length of 100 µm and the crossing traversal 5 µm. For the other side offer verified choices of 140 and 145 µm, with 140 cheaper. Against a reference of 250 µm at tolerance 0.05 µm, select 145 µm and report 250 µm total. Keep the first side fixed. |
|
||||||
|
| Reporting only | Run a baseline fixture twice with matching disabled, first without timing data and then with delay data, reporting enabled, and an inactive tuning window that overlaps another net's route. Expect identical placements, completed IDs, catalog cost, and routing work. The latter run reports delay. Repeat with missing fixed delay data and expect an unavailable delay for that net with the same placement and completion. |
|
||||||
|
| Wavelength held constant across the group | Use a synthetic delay evaluator with two wavelength entries and make each return a different index for one profile. Verify that all members, including fixed contributions, use the requested group wavelength. Compare two separate requests with different wavelengths and confirm that timing changes while physical profile IDs and the evaluated footprints stay the same. |
|
||||||
|
| Travel direction and units | Use a synthetic callback `ng = 3 + 0.5 cos(θ)` with the process axis pointing east. A 20 µm east straight contributes 70 µm group optical length and the reverse traversal contributes 50 µm. Verify both with the same geometry cache. Repeat with a match group expressed in time units. Convert its delays, offsets, and tolerance and expect the same matching decision. |
|
||||||
|
| Matching affects completion and route choice | Supply two verified baseline candidates for one group member. The cheaper candidate misses tolerance and has no legal tuning move. The second costs more and gives a delay inside tolerance, with the other member unchanged. With matching disabled, select the cheaper route. With matching enabled, try the second baseline and complete the group. Remove the second candidate and assert that geometric coverage stays full, group completion fails, and the verified candidate and skew are still reported. |
|
||||||
|
| No window supplied | Repeat the fixed-access offset case with the baselines fixed and no supplied windows. Expect unchanged geometry and an incomplete group despite open space. An already-matched control completes with no windows. |
|
||||||
|
| Adjacent supplied windows | Place two windows with disjoint interiors and a shared edge. Give one owner a candidate reaching that edge and another that stays at least the requested clearance away from the other window. With positive clearance only the latter is eligible. Exercise both net orders and verify the selected combination. |
|
||||||
|
| Reference above the baseline | At the choice-selection layer, give one net adjusted delays `{400, 400.8, 401.6}` and another `{400.4, 401.6}`, including each baseline. At tolerance `0.05`, expect both nets to end at `401.6`. At the same tolerance, offer verified choices with (skew, cost) of (0, 3), (0.05, 2), and (0.06, 1). Select (0.05, 2) in either proposal order. Lower the tolerance to 0.04 and select (0, 3). |
|
||||||
|
| Target between grid settings | Use the fixed-access detour fixture, limit the test to its one straight replacement and template family, and add `0.4` µm of group optical length to the second net's requested offset. The two detour heights separated by one 100 nm pitch now straddle the target. Each leaves residual skew `0.4` µm, above the `0.05` tolerance. Return the verified choice preferred by the cost ordering and report unmatched. |
|
||||||
|
| Budget after a usable improvement | Give one net adjusted delays `{400, 400.8, 401.6}` and another `{401, 401.6}`. Exhaust the budget just after evaluating `400.8` for the first net, while the second net still uses the baseline `401`. Return the improved verified routes with residual skew `0.2` and the budget status. With enough budget the group matches at `401.6`. Pair this with the existing zero-candidate budget case and the missing-delay case. |
|
||||||
|
| Budget after a match | Use the same choices and stop the budget after both members have verified choices at `401.6`. Return a completed match with zero residual skew and a budget diagnostic. |
|
||||||
|
| Window boundary and interference | Let an owner's detour footprint meet its window boundary exactly, then move it outside by more than the containment tolerance. Accept only the contained candidate. Route another net alongside the window at exact clearance, then move its only available approach inside that clearance. Reject the latter in both net orders. Keep the last verified layout if a replacement fails complete-layout verification. |
|
||||||
|
|
||||||
|
## Implementation risks and investigations
|
||||||
|
|
||||||
|
| Area | What will be difficult and how to investigate it |
|
||||||
|
| --- | --- |
|
||||||
|
| Grid fit and diagonal candidate generation | Prototype move evaluation and proposal together on a small board. Exercise diagonal S-bends with odd and even offsets, a 45° bend that needs tangent leads, and a U-turn with an incompatible diagonal leg spacing. Check how much lead the useful variants need and choose a bound from those results. Compare diagonal ray proposals and the flat-ended launch check with final polygon clearance at an exact-fit entrance. A legal endpoint and a legal footprint both need to reach the candidate list. [Current S-bend span](../inire/geometry/sbend.py#L22) · [Straight reach check](../inire/geometry/collision.py#L856) |
|
||||||
|
| Search history and runtime | The cheapest arrival at a pose and type can leave a footprint that blocks the only next move. Build a tiny case with a viable more expensive arrival and compare the production candidate set and pruning with exhaustive search. Try retaining an alternative arrival or retrying with weaker pruning if the case shows a coverage loss. Then measure coverage, candidates per expansion, geometry-cache work, and runtime on a representative board at the intended pitch. [Current closed set](../inire/router/_search.py#L125) · [Predecessor checks](../inire/router/_astar_admission.py#L180) |
|
||||||
|
| Cost scale and search priorities | The cheapest cardinal step in the fixture costs `2 × 10⁻⁶`, while current cost comparisons use a geometry tolerance of `10⁻⁶`. Use a cost-specific comparison tolerance and check congestion and guide weights against the catalog scale. Use a zero-heuristic reference on tiny cases and check any catalog cost bound against the available displacements. Verify a two-net case where the router must choose which net detours. [Cost comparisons](../inire/router/_astar_admission.py#L275) · [Congestion defaults](../inire/model.py#L268) |
|
||||||
|
| Geometry and Masque round trip | Calibrate the face tolerance independently of the positive-clearance join region, polygon sampling, and any mask export rounding. Compare the evaluated and placed geometry for a reflected and rotated fixed cell with off-origin ports and a generated diagonal bend with a numerical sliver. Check the exported geometry too if export is part of the integration boundary. [Current join checks](../inire/geometry/component_overlap.py#L47) |
|
||||||
|
| Bend model across angles | Check the generated port poses, centerline length, and minimum curvature for shallow S-bend lobes and for 45°, 90°, 135°, and 180° turns. Validate the optical model for shallow lobes as well as U-turns if the process data comes from a radius or loss limit measured on a large bend. A curvature floor leaves the rate of curvature change dependent on the angle and profile. [Partial Euler bend model](https://arxiv.org/abs/1910.07257) |
|
||||||
|
| Tuning resolution and model accuracy | Compare the rotated quarter-turn fixture with one between principal axes, where the modal group index averages to the mean of the two principal indices. Test a window with room for the detour and a target between attainable settings. The four-turn constant-index fixture changes by 0.8 µm of group optical length for a one-pitch increase in detour height. On a 100 µm route, a differential `ng` error of 0.0005 contributes 0.05 µm. On a representative multi-net layout, measure the best verified skew at caller-selected tolerances and the routing cost of reserving supplied windows. |
|
||||||
|
|
||||||
|
## Fixture data to record
|
||||||
|
|
||||||
|
After defining the Masque interface, construct the synthetic cells and record their authored geometry, port positions and headings, allowed rotations and reflections, traversal directions, and physical lengths. Include the reference layout bounds, obstacle and attachment geometry, layer, scale, grid, and tolerances for each fixture. Store expected placements and amounts independently of the evaluator so an evaluator regression can fail the comparisons.
|
||||||
|
|
||||||
|
### Synthetic scale benchmark
|
||||||
|
|
||||||
|
- Use a 5 × 5 mm board at 100 nm pitch, approximately 40 nets, and 50–100 obstacles with a union covering approximately 10% of the routing area. One reproducible starting layout uses 72 rectangles of `250 × 140` µm, with lower-left corners at `(400 + 500i, 400 + 550j)` µm for `0 ≤ i < 9` and `0 ≤ j < 8`. The disjoint rectangles cover `2.52 mm²`, or `10.08%` of the board. Stagger or reshape selected obstacles while preserving the overall density to exercise constrained passages as well as open lanes.
|
||||||
|
- Freeze 40 terminal pairs and independently verified reference paths. Include some direct lanes, obstacle detours, shared passages, and routes with a demonstrably cheaper legal typed or diagonal alternative. Start with terminals and catalog compatibility that permit a legacy Manhattan comparison on the same requested connections. Use a separate board variant or subset for terminals and profile changes that require the new capabilities. Keep the reference paths out of unseeded search runs. Record whether the router finds the planted improvements, plus the physical length and catalog cost on equal verified net sets. Look for additional examples of those improvements in the existing corpus.
|
||||||
|
- Use the 100 nm explicit lattice as the principal comparison. At that pitch the board has about 2.5 billion lattice positions before headings or profiles. Check peak memory and use sparse search. For the grid prototype, compare explicit routing with coarse guidance at 1 µm and 10 µm followed by local refinement. Include a case containing a transition or a terminal position that cannot be represented at the coarse pitch. Report results after final verification at full layout precision.
|
||||||
|
- Report native Manhattan, Manhattan through the evaluation boundary, typed Manhattan, and eight headings separately. Record verified and completed net IDs, geometry, catalog cost, expansions, proposals per expansion, exact geometry checks, cache entries, peak memory, and repeated wall times. Compare legacy runs under the same options and dependencies. Target at most a few minutes end to end for the representative 40-net run. Measure whether seconds are attainable. Record the machine, coverage, time to first verified layout and time to final result. Use profiles and repeated runs to set phase budgets and memory targets before stabilizing the public types. Record the diagnostics for both a successful run and a budget-limited run.
|
||||||
|
- Benchmark matching disabled first. Compare cost refinement on and off under the same routing budgets. Measure time and catalog cost at first full coverage and after refinement, completed net IDs, and extra work in proposals and verification. Include fixtures with a planted improvement and fixtures with no cheaper alternative. Use benchmarks and profiling to choose the default pass, its budget, and when to stop it early.
|
||||||
|
- For matching enabled, use supplied windows and record completed nets and groups, residual skew, eligible spans, verified detours, and time spent tuning. On layouts with an unmatched group, compare partial placement with and without the independent-net retry. Record its extra completed nets, elapsed time, and expansion and verification work. Use benchmarks and profiling to choose how much budget to leave for this retry and when it is worth running.
|
||||||
Loading…
Reference in a new issue