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

Abierto
#495 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Shubham-Gotawade ya está trabajando en esto.

Desde el 3/12/2026.

  • #509 de @Shubham-Gotawade — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Verilog
Estrellas
655
Forks
296
Merge medio
1 d 12 h
PR fusionados (30 d)
28

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de The-OpenROAD-Project/OpenSTA

Todos los issues de The-OpenROAD-Project/OpenSTA

Issues similares

Más issues de DevTools

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.