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

オープン
#4,900 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
領域
devops, tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Verilog
スター
836
フォーク
566
平均マージ
2日 15時間
マージ済み PR(30日)
84

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

The-OpenROAD-Project/OpenROAD-flow-scripts のほかの issue

The-OpenROAD-Project/OpenROAD-flow-scripts の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。