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

Đang mở
#495 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Shubham-Gotawade đang làm issue này rồi.

Từ ngày 3/12/2026.

  • #509 của @Shubham-Gotawade — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Verilog
Star
658
Fork
299
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của The-OpenROAD-Project/OpenSTA

Tất cả issue của The-OpenROAD-Project/OpenSTA

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.