Verify whole-layer exports against current profiles
This commit is contained in:
parent
8e8c8a7ba0
commit
aac0353382
2 changed files with 306 additions and 6 deletions
|
|
@ -50,7 +50,7 @@ The fields below appear in constructor order. Use one layout unit for coordinate
|
|||
| `RoutingRunResult.automatic` | In automatic mode, the selected planner, verified IDs, stage history, and any capacity or port-conflict bound. `None` for explicit modes. |
|
||||
| `RoutingRunResult.topology` and `metrics` | Corridor counts and seed work when reported by the selected worker, plus work counters across the run. |
|
||||
|
||||
To read a route's polygons and write them to a test file, follow the [geometry export steps](route-a-layout.md#export-verified-geometry).
|
||||
To read a route's polygons and write them to a test file, follow the [geometry export steps](route-a-layout.md#export-verified-geometry). For saved route provenance and full-layer checks, see [Check a complete layer before writing](fabrication.md#check-a-complete-layer-before-writing).
|
||||
|
||||
## Options and defaults
|
||||
|
||||
|
|
|
|||
|
|
@ -82,6 +82,36 @@ if not export.is_valid:
|
|||
raise ValueError(export.reports_by_net)
|
||||
```
|
||||
|
||||
## Check a complete layer before writing
|
||||
|
||||
For a saved layout, keep each route with its source layer, coordinate scale, and revision. Use `SavedRoute` with the verified result from the original run. Supply the current profile for every active net when exporting. The layer check replays each saved move sequence with the current profile and checks its authored length and geometry on the writer’s grid.
|
||||
|
||||
```python
|
||||
from inire.layout import SavedRoute, verify_layer_export
|
||||
|
||||
layer = (1, 0)
|
||||
meters_per_unit = 1e-9
|
||||
saved_routes = {
|
||||
net_id: SavedRoute(
|
||||
result, layer=layer, meters_per_unit=meters_per_unit, profile_revision=source_revision,
|
||||
)
|
||||
for net_id, result in original_run.results_by_net.items()
|
||||
}
|
||||
profiles_by_net = {
|
||||
net.net_id: (current_revision, current_options_by_net[net.net_id].search)
|
||||
for net in plane.nets
|
||||
}
|
||||
export = verify_layer_export(
|
||||
plane, saved_routes, grid=1.0, layer=layer,
|
||||
meters_per_unit=meters_per_unit, profiles_by_net=profiles_by_net,
|
||||
)
|
||||
if not export.is_valid:
|
||||
raise ValueError({net_id: check for net_id, check in export.checks_by_net.items() if not check.is_valid})
|
||||
geometry_to_write = export.geometry_by_net
|
||||
```
|
||||
|
||||
Use `export.checks_by_net` to inspect the recorded revision for active nets and the geometric checks for imported fixed routes. Fixed polygons must be in final layer coordinates and on the writer’s grid. The layer check checks their clearance against other fixed owners, keepouts, and the newly routed polygons. `geometry_to_write` contains the new polygons. The imported polygons are already present in the layout. Verification records and their projected mappings are read-only snapshots.
|
||||
|
||||
## Verify a coplanar waveguide cross-section
|
||||
|
||||
For a 15.5 µm signal with a 7 µm gap on each side, route the 29.5 µm envelope. Use the required ground-strip width as the clearance between envelopes. Replay the verified seed with a 15.5 µm net using the same ports and bend rules. The conductor and envelope together define the negative gap mask. `coplanar_geometry` checks for side contact and allows the gap to end at the terminal faces. Check the process minimum gap in the assembled layout. A separate wider ground exclusion can be buffered locally from the envelope. This fills the inside of turns where a constant-width circular strip wider than the bend diameter would collapse.
|
||||
|
|
|
|||
Loading…
Reference in a new issue