mpl: MPL-0005 after the orientation step mirrors a macro whose pins cannot then be on the track grid

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

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

@AcKoucher がすでに取り組んでいます。

2026年10月19日 から。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp
領域
backend, compilers

調査の方向性

Start with the supplied reproduction archive and run ./run-me.sh using OpenROAD on PATH; then read src/mpl/snapper.cpp, clusterEngine.cpp, and hier_rtlmp.cpp. Compare the proposed snapping fallback with changing orientation selection, including the stated wire tradeoff and MPL-0081. Done means choosing a behavior that handles the pin-grid conflict while preserving the intended placement behavior, with the reproduction no longer failing on MPL-0005.

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

説明

mpl

rtl_macro_placer stops on MPL-0005 after its own orientation step mirrors a macro into an orientation in which no location puts the macro's pins on the track grid.

Download macro_place_mpl0005.tar.gz, then untar and run (openroad on PATH; reproduced with bfac0546a502f30db57e92d801f1eecea86e38ab, and src/mpl's snapper.cpp, clusterEngine.cpp and hier_rtlmp.cpp are unchanged at 3cc34a657d42b68f18fffb26235e9598e33f7899):

tar xf macro_place_mpl0005.tar.gz
cd macro_place_mpl0005
echo exit | ./run-me.sh

Reproduces in about 50 s. You'll see:

[ERROR MPL-0005] Couldn't align pin u_fe/q[36] from the RightWayOnGridOnly layer M5 with the track-grid.

The design is asap7, four hardened blocks of 200 x 194 um with all their signal pins on the top edge, on M3 and M5, on a 1.2 mm die. Before commitMacroPlacementToDb snaps them, correctAllMacrosOrientation has left three of the four in MY. asap7's M3 tracks are at 9 + 36k dbu and M5's at 12 + 48k, and the block's pins sit on its own tracks. Mirrored about Y, a pin at local x lands at origin - x, so M3 needs the origin at 18 mod 36 and M5 at 24 mod 48. Those disagree mod gcd(36, 48) = 12: no location aligns both layers, and the snapper's error is the only possible outcome. In R0 every location on a multiple of 144 dbu aligns them.

One way to fix it, carried in bazel-orfs and not sure it is the right one: Snapper::snapMacro reports whether every RightWayOnGridOnly pin was aligned instead of erroring, and commitMacroPlacementToDb, when it was not, keeps the macro's location and takes the first of R0, MX, MY, R180 that snaps (MPL-0081 says which); if none does, MPL-0005 as before. It only changes runs that stopped on MPL-0005. The open question is whether the orientation step should instead never choose an orientation that cannot snap, which would keep the wire it was chosen for. The patch:

https://github.com/The-OpenROAD-Project/bazel-orfs/blob/56ff74b15a1933d75c2a27aed5822c788f49c674/patches/0136-openroad-mpl-flip-that-snaps.patch

This comes from a synthetic test parent (The-OpenROAD-Project/bazel-orfs#1294, test/pin_traps); no real design is known to hit it yet.

主要言語
Verilog
スター
3.4k
フォーク
1.1k
平均マージ
3日 11時間
マージ済み PR(30日)
245

環境構築

はじめの一歩

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

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

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

似ている issue

Backend & API Design の issue をもっと見る

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

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