Bound search memory and verify process geometry before layout export

This commit is contained in:
Jan Petykiewicz 2026-11-28 20:42:25 -08:00
commit e6ae242cb2

View file

@ -156,10 +156,8 @@ def compact_port_seed_set(problem: RoutingProblem, search: SearchOptions) -> dic
return None
if any(net.start.r != 0 or net.target.r != 0 or not 0 < net.target.x - net.start.x <= 4 * radii[-1] for net in problem.nets):
return None
world = RoutingWorld(clearance=problem.clearance, safety_zone_radius=problem.safety_zone_radius)
for obstacle in problem.static_obstacles:
world.add_static_obstacle(obstacle)
board = box(*problem.bounds)
world = RoutingWorld.from_problem(problem, board=board)
candidates = {}
for net in problem.nets:
jogs = islice(_candidate_jogs(net, problem, search, radii), 512)
@ -209,10 +207,8 @@ def short_shift_seed_set(problem: RoutingProblem, search: SearchOptions, score:
if not all(seeds_by_net):
return None
world = RoutingWorld(clearance=problem.clearance, safety_zone_radius=problem.safety_zone_radius)
for obstacle in problem.static_obstacles:
world.add_static_obstacle(obstacle)
board = box(*problem.bounds)
world = RoutingWorld.from_problem(problem, board=board)
candidates = {}
for net, seeds in zip(problem.nets, seeds_by_net, strict=True):
ranked = [