RFC: slew limit on macro output ports

未关闭
#4,906 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
领域
backend, devtools

调研方向

Start by reading platforms/asap7/constraints.sdc and scripts/util.tcl, then compare the platform constraint templates and the macro flow behavior described in the issue. The issue asks maintainers to choose among four approaches and decide whether a check should warn or fail; there is no implementation scope or completion criterion yet.

由索引模型根据 Issue 内容生成。

描述

Summary

When hardening a macro with the platform constraints.sdc (for example flow/platforms/asap7/constraints.sdc), nothing limits the slew on top-level output ports. A port net that runs a long way across the macro is never seen as a slew violation, so repair_design leaves it unbuffered. The macro's boundary timing (reg2out / in2out) then fails by orders of magnitude, with no warning anywhere.

I'd like guidance on where ORFS should guard against this, because I don't see an obvious best option.

What happens

  • platforms/asap7/constraints.sdc sets the clock, the three set_max_delay boundary budgets and the group_paths. It has no set_max_transition, set_load or set_driving_cell. I believe the other platforms' templates are the same.
  • The library's default_max_transition binds library pins only. A top-level output port has no library pin, so no slew limit applies to it.
  • repair_design_helper (scripts/util.tcl) passes only -slew_margin and -cap_margin, and no max wire length. So:
    • a long net from an internal buffer to an output port is never a violation, while internal long nets do get repeater chains;
    • report_check_types -max_slew -violators lists no ports, even though port slew is far above the library default.
  • repair_timing doesn't rescue it either: rebuffering skips nets that drive a top-level output port.
  • The result is boundary paths dominated by one unbuffered port net, with nothing in the logs pointing at the cause.

This rarely shows up on small macros. It shows up when a macro's pins sit far from the logic that drives them, which is common once a macro's pins are placed to face its neighbours in a parent floorplan.

Reproducer: a toy macro with a register driving an output pin placed on the far edge of the die (a few hundred µm to mm away), hardened with the platform SDC. The port net stays unbuffered after repair_design, and adding set_max_transition <lib default> [all_outputs] makes repair_design buffer it.

Options I can see, each with trade-offs

  1. A default in each platform's constraints.sdc: set_max_transition on [all_outputs], defaulting to the library's default_max_transition and overridable by a variable, like the existing in2reg_max / reg2out_max / in2out_max.
    • Simple, and it fixes most macro flows.
    • It touches every platform, and it changes results for existing designs (more buffers on port nets).
  2. A check that fails, or warns, at floorplan when output ports have no effective slew limit, with an explicit variable to skip it (for example a chip top whose pads drive the ports).
    • Makes the silent failure loud.
    • Could be noisy for flows that don't care, which raises the question of warning versus error, and whether only for macro flows.
  3. repair_design falls back to default_max_transition for top-level ports when no limit is set.
    • Fixes it everywhere with no SDC change.
    • Changes OpenSTA and OpenROAD semantics: port limits conventionally come from the SDC.
  4. A max wire length passed to repair_design (platform default or variable), so length alone triggers buffering.
    • Independent of slew limits.
    • Only a proxy for the real constraint, and it needs a per-platform value.

Questions

  • Which of these would ORFS accept: a platform default (1), a check (2), a tool fallback (3), a wire-length default (4), or a combination such as 1 + 2?
  • If it's a check, should it be a warning or an error by default, and should it apply only to macro flows (designs hardened for use as macros)?
  • Is there an existing convention for port slew, load and driving cell in macro flows that I've missed?

We currently carry option 1 for asap7 locally and can turn it into a PR for all platforms once there's agreement on the shape.

主要语言
Verilog
星标
836
派生
566
平均合并
2 天 15 小时
30 天内合并 PR
84

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

The-OpenROAD-Project/OpenROAD-flow-scripts 的其他 Issue

查看 The-OpenROAD-Project/OpenROAD-flow-scripts 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。