drt: min-area patch owner search compares the origin-relative patch box with absolute shapes, so patches are dropped

Đang mở Phù hợp với người mới
#12,191 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@bnmfw đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #12310 của @bandhambalaji — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu từ checkMetalShape_patchOwner_helper trong src/drt/src/gc/FlexGC_main.cpp, được gọi từ checkMetalShape_addPatch gần dòng 2355. Hàm trợ giúp so sánh patch->getOffsetBox() với hộp pin và bbox của các hình kết nối của từng drNet, nhưng hộp offset của patch là tương đối so với gốc tọa độ. Chuyển phép so sánh sang patch->getBBox(), là tuyệt đối. Hoàn thành khi các patch chồng lên một drNet nhận được owner trong bài regression nangate45 và kết quả đã route được kiểm tra với 74 patch bị loại đã báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug drt
Describe the bug

When GC builds a min-area patch (checkMetalShape_addPatch, src/drt/src/gc/FlexGC_main.cpp around line 2355 on master) for a net that has more than one drNet in the worker, it calls checkMetalShape_patchOwner_helper to find the drNet whose shapes the patch touches. The helper compares patch->getOffsetBox() with each drNet's getPinBox() and its ext/route conn figs' getBBox().

The patch was just built with setOrigin(offset) and setOffsetBox(patchBx), so its offset box is relative to the patch origin (for example (-70,-300)-(70,0)), while the boxes it is compared with are absolute. drPatchWire::getBBox() applies the origin and gives the absolute box. As written, an owner is found only when some shape of a drNet reaches the region around the design origin; otherwise patch->hasNet() is false and the patch is dropped without a message.

Expected Behavior

The owner search uses the patch's absolute box (patch->getBBox()), so the patch is assigned to the drNet it overlaps.

To Reproduce
  1. gcd on nangate45 (the regression design), with a LEF58_AREA (or plain AREA) value large enough that detailed routing needs min-area patches, for example AREA 0.02 on every routing layer.
  2. Instrument the end of checkMetalShape_addPatch to log patches dropped after checkMetalShape_patchOwner_helper.
  3. On our run, 74 of 1234 patches were dropped this way. In one case the patch's absolute box was (87140,68020)-(87280,68320), and the net's second drNet had pin box (82650,58800)-(87210,88200), which overlaps it, yet no owner was found.
  4. Using getBBox() in the helper keeps those patches, and the routed result changes.
Suggested fix
odb::Rect patch_box = patch->getBBox();
Relevant log output

No response

Additional Context

Found while comparing min-area patching between router implementations. Related reports: #12187, #12188.

Ngôn ngữ chính
Verilog
Star
3.4k
Fork
1.1k
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
247

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của The-OpenROAD-Project/OpenROAD

Tất cả issue của The-OpenROAD-Project/OpenROAD

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.