get_timing_edges -of_objects returns nested lists and ignores -to
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 83/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
tcl/Sta.tcl、特に get_timing_arcs_objects と get_timing_edges_cmd を読み、その後 graph/test から sta -no_init -exit repro.tcl を実行してください。issue では、リストの入れ子状の追加と重複した -from のチェックが原因として挙げられています。結果がフラットなエッジになり、-to を -of_objects と併用するとエラー 540 が発生し、該当する golden の件数が修正後の結果を反映すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
get_timing_edges -of_objects returns one list element per instance instead of a flat list of edges. Each element holds all of that instance's edges as a nested Tcl list, so the result can't be passed to get_property, set_disable_timing or -filter, even though the command help says it can. Separately, the -to option is silently ignored when it is combined with -of_objects.
Repro
Run from graph/test with sta -no_init -exit repro.tcl:
read_liberty ../../test/nangate45/Nangate45_typ.lib
read_verilog graph_test1.v
link_design graph_test1
set edges [get_timing_edges -of_objects [get_cells reg1]]
puts [llength $edges]
get_property [lindex $edges 0] from_pin
set_disable_timing $edges
get_timing_edges -of_objects [get_cells reg1] -to [get_pins reg1/Q]
reg1 is a DFF_X1 with five non-wire edges (CK->Q, CK->QN, the width check, setup and hold). The output is:
1
Error 2201: ... get_property -object_type must be specified with object name argument.
set_disable_timing $edges warns object '{_..._p_Edge _..._p_Edge ...}' not found. and disables nothing. With -of_objects and -to together, the command returns the edges instead of raising error 540, "-from/-to arguments not supported with -of_objects."
The existing goldens record the wrong counts. For example, graph/test/graph_timing_edges.ok has reg1 timing edges count: 1, and graph_delete_modify.ok reports one edge for every cell, including the two-input gates.
parallaxsw/OpenSTA master has the same code.
Cause
In tcl/Sta.tcl:
get_timing_arcs_objectsbuilds its result withlappend edges [instance_edges $inst], which appends the whole list as a single element. The lib cell branch does the same withlappend arc_sets [$libcell timing_arc_sets].get_timing_edges_cmdchecks[info exists keys(-from)] || [info exists keys(-from)], testing-fromtwice and never-to.
- 主要言語
- Verilog
- スター
- 658
- フォーク
- 299
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 28
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
The-OpenROAD-Project/OpenSTA のほかの issue
-
with_output_to_variable runs its commands outside the caller's scope and hides errors対応中かも @dsengupta0628 が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
The-OpenROAD-Project/OpenSTA#458 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
get_fanin/get_fanout drop pins of nets with more than one pin対応中かも @dsengupta0628 が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
The-OpenROAD-Project/OpenSTA#457 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
`write_sdf` record order causes a conditional IOPATH delay to be overwritten対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
The-OpenROAD-Project/OpenSTA#495 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
The-OpenROAD-Project/OpenSTA#477 ·
メンテナーはふだん 1 日以内に返信
-
CRPR: paths, memory and runtime grow faster than the design on large propagated clock networks対応中かも @dsengupta0628 が 25 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 22/100
The-OpenROAD-Project/OpenSTA#452 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
The-OpenROAD-Project/OpenSTA の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ranxianglei/billion-context#8319 ·
メンテナーはふだん 1 日以内に返信
-
backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
nolte/kamerplanter#3193 ·
メンテナーはふだん 1 日以内に返信
-
bug documentation queries
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ClickHouse/clickhouse-cs#815 ·
メンテナーはふだん 1 日以内に返信
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信