I/O latency update after CTS (why macro SDCs use set_max_delay -ignore_clock_latency)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 領域
- backend
調査の方向性
Start with flow/platforms/asap7/constraints.sdc and trace how set_max_delay -ignore_clock_latency is handled through CTS; the issue points to OpenSTA's PathEndPathDelay::requiredTime and OpenROAD's CTS sink insertion delay. F1 requires a post-CTS I/O latency update that persists into later stages and can be disabled for pad-level designs. The issue also says a one-line note in the SDC header would address the immediate documentation gap.
索引モデルが issue の本文から書いたものです。
説明
Description
This issue records why the boundary constraints of a hardened macro in ORFS are written with set_max_delay -ignore_clock_latency rather than set_input_delay/set_output_delay, and which OpenROAD feature would change that. It is low priority. set_max_delay works for design space exploration (DSE), and nothing needs to change for that use case. The point is to have the reasoning somewhere a reader can find it, so "not now" or letting this go inactive is a fine outcome.
ORFS's flow/platforms/asap7/constraints.sdc ("a minimal generic constraints.sdc for architectural exploration of macros") times the ports like this:
set_max_delay -ignore_clock_latency 80 -from $non_clk_inputs -to [all_registers]
set_max_delay -ignore_clock_latency 80 -from [all_registers] -to [all_outputs]
set_max_delay 80 -from $non_clk_inputs -to [all_outputs]
Why this surprises a reader (principle of least astonishment)
- In SDC, port timing normally lives in
set_input_delay/set_output_delay. A file with neither looks as if the I/O constraints are missing. - OpenSTA's
check_setupagrees: it reports every input and output port as unconstrained (The-OpenROAD-Project/OpenSTA#434 proposes followingset_max_delaythrough). set_max_delayis a path exception. Withoutgroup_path, its paths are reported in the default group, not the clock's group.- The value is absolute. Changing
clk_periodleaves every boundary target where it was. - There is no boundary hold check at block level. The parent finds any hold problem later.
-ignore_clock_latencymeasures each flop from its own clock arrival, so skew inside the block is not visible in the boundary check.- The file is correct for a macro. Applied to a top level with pads, it would drop the insertion latency the board really sees (Figure 1).
Why it is nevertheless the right choice for a macro today
At a top level with pads, the I/O delay comes from a datasheet and refers to the board clock edge at the pin. The chip's insertion latency L really happens, and set_input_delay describes this case exactly.

Inside a parent, the parent's CTS reads the macro's min/max_clock_tree_path from the abstract (written by write_timing_model) and drives the macro's clock pin early by the macro's own insertion latency L_m. The timing reference for the macro's I/O is therefore the clock at its internal flops, not at its clock pin. A set_input_delay refers to the pin, so writing a correct one requires knowing L_m, and L_m is only known after the macro's CTS.

As a result, the budget given to an in2reg path with set_input_delay moves by L_m between the ideal-clock stages and the propagated-clock stages (row 2 below), and an output budget shrinks by the same amount. With a single delay value (min = max), the propagated clock also creates a boundary hold check, d + p_min < L_m + t_hold, that repair_timing -hold would pad for even though the parent never sees that race (the mechanism only; no cell count has been measured). set_max_delay -ignore_clock_latency removes the latency at both ends of the path (OpenSTA PathEndPathDelay::requiredTime), so its target is the same before and after CTS (row 3).

Every value a block-level I/O delay needs (the arrival d from the parent, and L_m) is an output of the flow it constrains. Iterating block and parent runs to a fixed point takes hours per lap, with no convergence guarantee. set_max_delay -ignore_clock_latency needs nothing the flow produces.

For tops with pads, ORFS's virtual-clock SDCs (ORFS commits 732bf73e2 "Use virtual clocks for IO delays" and 5511fcc4 "Tune IO clock latency estimates") take the I/O clock latency from CI's 4_cts_final reports. An automatic update would do the same thing within the run.
Suggested Solution
These are listed cheapest first. F1 is the item that removes the reason for the current choice.
- F1: I/O latency update after CTS. For each clock, measure the block's insertion delay at its sinks and apply it as the latency of the virtual I/O clock, or as a negative source latency on the real clock. It must persist into the stages after CTS and be switchable off for a top level with pads. Commercial tools have this; Innovus calls it
update_io_latency, and ICC2 does it withcompute_clock_latency/set_latency_adjustment_options(from community sources, not vendor manuals). With F1, a virtual-clockset_input_delaychecks the same latency-free path thatset_max_delay -ignore_clock_latencychecks today (row 4 of Figure 3). It also scales with the period, models intra-block skew and passescheck_setupwithout changes. - F2: min/max latency per corner, using the same values
write_timing_modelwrites asmin/max_clock_tree_path, so the block and its abstract agree. - F3: a boundary hold policy. Either
-max-only I/O delays, with a test confirming thatrepair_timing -holdthen adds nothing at the ports, or-minvalues taken from the parent. - F4: timing budgeting (larger). A parent-level pass that derives each block's I/O delays from the parent's reg2reg paths, so that the boundary numbers are derived rather than chosen, in either style.
Until F1 exists, set_max_delay -ignore_clock_latency remains the appropriate macro constraint. A one-line note in the platform SDC header, "this file is for a macro; a top level with pads should use I/O delays", would cover the remaining surprise.
Additional Context
Semantics side by side, checked against OpenSTA/OpenROAD source
| Aspect | set_input/output_delay | set_max_delay -ignore_clock_latency | OpenSTA/OpenROAD today |
|---|---|---|---|
| States | when data arrives at, or must leave, a port relative to a clock edge | an upper bound on a path's delay (exception) | both implemented |
| Clock latency | included; at a block, updated to the block's tree after CTS in commercial flows | removed at both ends | no post-CTS I/O latency update (F1) |
| Period | budget T − d scales with T | absolute | as intended |
| Hold | -min gives a hold check |
only with set_min_delay |
no boundary hold check with set_max_delay alone |
| Intra-block skew | visible | hidden | as intended |
| Path groups | clock's group | default group unless group_path |
asap7 SDC adds in2reg/reg2out/reg2reg/in2out groups |
| check_setup | clean | not covered | ports flagged; The-OpenROAD-Project/OpenSTA#434 |
| Abstract | min/max_clock_tree_path |
same | write_timing_model emits them; TritonCTS balances to them |
| Where the number comes from | datasheet (pin) or budgeter (block) | designer's target | no budgeter (F4) |
Sources:
- OpenSTA
sdc/Sdc.tcl,search/PathEnd.cc(PathEndPathDelay::requiredTime),search/MakeTimingModel.cc; OpenROADsrc/ctssink insertion delay. - 01signal: I/O timing constraints in SDC syntax; AMD UG903, Using Constraints.
- Innovus update_io_latency (community write-up); ICC2 compute_clock_latency (community write-up); A Unified Theory of Timing Budget Management (UC Davis).
- 主要言語
- Verilog
- スター
- 3.3k
- フォーク
- 1.1k
- 平均マージ
- 3日 11時間
- マージ済み PR(30日)
- 247
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
The-OpenROAD-Project/OpenROAD のほかの issue
-
drt: min-area patch owner search compares the origin-relative patch box with absolute shapes, so patches are dropped対応中かも @bnmfw が 11 日前に担当しました。 オープンbug drt
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
The-OpenROAD-Project/OpenROAD#12191 · コメント 5 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rule対応中かも @LucasYuki が 25 日前に担当しました。 オープンbug drt odb
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
The-OpenROAD-Project/OpenROAD#12176 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)対応中かも @osamahammad21 が 25 日前に担当しました。 オープンbug drt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
The-OpenROAD-Project/OpenROAD#12173 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbazel enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
The-OpenROAD-Project/OpenROAD#12160 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexers対応中かも @shivarammysore が 32 日前に担当しました。 オープンbazel bug odb
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
The-OpenROAD-Project/OpenROAD#12095 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
The-OpenROAD-Project/OpenROAD の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
superfly/contextwindow#18 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Lincoln-cn/JAiRouter#1452 ·
メンテナーはふだん 1 日以内に返信
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
future-agi/future-agi#6351 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信