`write_sdf` record order causes a conditional IOPATH delay to be overwritten

Aperta
#495 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Shubham-Gotawade ci sta già lavorando.

Dal 3/12/2026.

  • #509 di @Shubham-Gotawade — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
tooling

Direzione di ricerca

The SDF writer lives in the OpenSTA source under the SDF-writing class (look for write_sdf and the code that emits IOPATH/COND records); start by unpacking opensta-mux-iopath.tar.gz and running sta -exit run.tcl to reproduce, then read how absolute arc records for a pin are ordered before they are printed. The fix is to emit an unconditional record before overlapping conditional records for the same pin pair, and to add a regression covering the sg13g2_mux2_1 case so the two conditional modes still match Liberty.

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

Descrizione

On the IHP sg13g2_mux2_1, write_sdf emits an unconditional S → X record after the conditional record for A0=1, A1=0. With the generated SDF, both output transitions in that mode arrive 40 ps early.

Original output. OpenSTA 3.2.0 (39f9dec68a) wrote these three ABSOLUTE entries in this order (ns).

(COND A0 == 1'b1 && A1 == 1'b0
 (IOPATH S X (0.218212::0.218212) (0.237999::0.237999)))
(IOPATH S X (0.183287::0.183287) (0.204822::0.204822))
(COND A0 == 1'b0 && A1 == 1'b1
 (IOPATH S X (0.183287::0.183287) (0.204822::0.204822)))

The middle entry overwrites all matching S → X paths. The last entry updates only A0=0, A1=1. The values below were measured at the output pin in Icarus (3f05f92b0) at the model's 10 ps precision.

A0=1, A1=0 Expected from the conditional arc Measured at X
S rises, X falls 240 ps 200 ps
S falls, X rises 220 ps 180 ps

Order-only diagnostic. In a copy of the SDF, I moved the unconditional entry before both conditional entries, keeping every value unchanged. The same instance then delivered 240 ps and 220 ps on those transitions. All four pin delays across the two modes matched Liberty.

Reproduce. Extract opensta-mux-iopath.tar.gz, enter opensta-mux-iopath/, and run sta -exit run.tcl. The archive includes the one-cell netlist, the IHP v0.4.0 TT Liberty, and an optional Icarus pin test.

Could write_sdf emit the unconditional entry first when it overlaps conditional entries for the same pins?

opensta-mux-iopath.tar.gz

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 DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.