`ROUTING_LAYER_ADJUSTMENT` is effectively dead since most platforms unnecessarily ship their own `FASTROUTE_TCL`

Đang mở
#4,900 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
66/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
devops, tooling

Hướng nghiên cứu

Read floorplan.tcl and compare its FASTROUTE_TCL branch with the platform scripts, including platforms/gf180/fastroute.tcl. Identify which platform scripts duplicate the default routing commands with hardcoded adjustments. Done means those platforms use their preferred ROUTING_LAYER_ADJUSTMENT defaults while allowing the flow variable to take effect; check relevant flow configuration and routing behavior.

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

Mô tả

Subject

[Flow] for any util, flow Makefile, or flow script issues.

Describe the bug

The ROUTING_LAYER_ADJUSTMENT flow variable does not do anything for most platforms. It is used in just one place, in floorplan.tcl:

# Configure global routing: FASTROUTE_TCL script or
# set_global_routing_layer_adjustment/set_routing_layers
if { [env_var_exists_and_non_empty FASTROUTE_TCL] } {
  log_cmd source $::env(FASTROUTE_TCL)
} else {
  log_cmd \
    set_global_routing_layer_adjustment \
    $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER) $::env(ROUTING_LAYER_ADJUSTMENT)
  log_cmd set_routing_layers -signal $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER)
}

which generally looks fine - the intention is that FASTROUTE_TCL can be set by platforms or designs should there be specific requirements beyond what is covered by the else branch. However, in practice, most platforms do set FASTROUTE_TCL and have it point to a tcl file that is just a copy of the else branch, but hardcoding a value for ROUTING_LAYER_ADJUSTMENT. One example is platforms/gf180/fastroute.tcl:

set_global_routing_layer_adjustment $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER) 0.25
set_routing_layers -signal $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER)

The same commands as the else branch, but hardcoding 0.25 instead of ROUTING_LAYER_ADJUSTMENT. This renders ROUTING_LAYER_ADJUSTMENT useless for those platforms.

Expected Behavior

The ROUTING_LAYER_ADJUSTMENT flow variable should not be ignored for most platforms. My suggestion is that rather than supplying a FASTROUTE_TCL with a hardcoded value for the adjustment, platforms set ROUTING_LAYER_ADJUSTMENT to their preferred default instead and either leave FASTROUTE_TCL unset or read the value from the variable as expected.

Environment
Most recent master commit, using the pinned submodule versions.
To Reproduce

Reproduction not necessary.

Relevant log output

Screenshots

No response

Additional Context

No response

Ngôn ngữ chính
Verilog
Star
825
Fork
561
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
84

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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-flow-scripts

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

Issue tương tự

Thêm issue về DevOps

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.