Validate routing options and match custom S-bend widths consistently
This commit is contained in:
parent
a86e0a4f5a
commit
f9ba5669dd
1 changed files with 149 additions and 26 deletions
|
|
@ -220,7 +220,8 @@ def plan_ordered_bundle(problem: RoutingProblem, search: SearchOptions, *, infer
|
|||
bend = min(search.bend_radii, default=0.0)
|
||||
if (
|
||||
not isfinite(bend) or bend <= 0 or bend != int(bend) or bend not in search.sbend_radii
|
||||
or physical_geometry != "arc" or search.sbend_outlines
|
||||
or physical_geometry != "arc"
|
||||
or search.has_applicable_sbend_outline(net.width for net in problem.nets)
|
||||
):
|
||||
raise ValueError("Bundle routing needs a common integer radius for circular bends and S-bends")
|
||||
radius = int(bend)
|
||||
|
|
|
|||
Loading…
Reference in a new issue