get_timing_edges -of_objects returns nested lists and ignores -to

Aperta Adatta ai principianti
#456 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dsengupta0628 ci sta già lavorando.

Dal 10/11/2026.

  • #459 di @NopeCharon — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
83/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva

Direzione di ricerca

Leggi tcl/Sta.tcl, in particolare get_timing_arcs_objects e get_timing_edges_cmd, quindi esegui la riproduzione da graph/test con sta -no_init -exit repro.tcl. L’issue individua negli accodamenti di liste annidate e in un controllo duplicato di -from le cause del problema. Il lavoro è concluso quando i risultati sono archi piatti, -to con -of_objects genera l’errore 540 e i conteggi golden interessati riflettono i risultati corretti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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_objects builds its result with lappend edges [instance_edges $inst], which appends the whole list as a single element. The lib cell branch does the same with lappend arc_sets [$libcell timing_arc_sets].
  • get_timing_edges_cmd checks [info exists keys(-from)] || [info exists keys(-from)], testing -from twice and never -to.
Lingua principale
Verilog
Stelle
655
Fork
296
Merge medio
1g 12h
PR unite (30g)
28

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di The-OpenROAD-Project/OpenSTA

Tutte le issue di The-OpenROAD-Project/OpenSTA

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.