5.optimizer
暂无简介
- License 许可
- Apache-2.0
- 所属仓库
- FeSens/openTPU
- 最近更新
- 2026-11-12
- Stars
- ★ 971
- Forks
- 96
03 SKILL.md 正文
For PPA optimization through macro placement refinement. First need to comply with the planning rules.
Planning rules
- Push macros to the periphery. Macros are routing obstacles; placing them in the core forces detours and creates congestion. Peripheral placement also simplifies the PG mesh and helps IR drop on high-power macros.
- Orient so macro pins do not face outward. Rotate / flip only when a macro's highlighted pin side points outward toward the nearest core/die edge. Preserve row/column alignment while flipping.
- Leave room around each macro for signal routing and the PG grid.
- Eliminate dead pockets. Empty space between macros wastes area — shift macros or adjust aspect ratio to convert it into usable standard-cell region.
- Avoid narrow channels between blocks and boundary. Skinny row strips between macros cause CTS and routing pain — widen or eliminate them. Do not leave channels between boundary with macros.
- Keep the standard-cell region near aspect ratio 1.0 and contiguous. Square is densest; aspect ratios above ~4 degrade density. Fragmented logic regions hurt density and complicate CTS. Do not place one or two macros to break, make small channels.
- The area near the pin group should leave for stdcell. The macros interact with pin group normally less than stdcell group, so the macro cluster can put away of pin group. Do not put macros in the center to make compact shape.
- The macros in the same cluster should be placed closer. According to the macro cluster file.
- Point pin sides inward — toward the central standard-cell region and toward each other macro (pin-to-pin). Non-pin sides can then abut back-to-back to save space.
- Don't stack the macros too deep if possible(more than 3).
Then For the design that pin group on the only one side, the optimization direction are(try one by one or combine):
- we can try to spread the macros around the others three periphery, leave the center for stdcell, doesn't need to place all macro on one side.
- we can adjust the macro placement to avoid small channel, especilly which cause detour.
- avoid deep stack(more than 3).
- if has small channel, that should not on the corners, we should move macro to avoid the channel on corner, change to let channel on middle.
- pin side of macro should has 4 um gap for better routing, in the pin_side.png the red line on the side of macro representt the pin side of macro.
For the design that pin group on the two sides or three sides, the optimization direction are(try one by one or combine):
- Don't place the macros to block the pin group, leave the area near pin group for stdcell if possible.
- Try to place macros on the corner.
- leave the area in the center for stdcell.
- You can leave corridor for stdcell if need to place macros next to the pin group.
04 同仓库更多 Skills
openroad-image-snapshot
Whole-die layout snapshot for any checkpoint: the executable template reads an ODB, expands the die box by a margin so boundary pins stay visible, and saves a PNG. The Worker runs it after every stage; it can also be run standalone on any saved checkpoint.
macro_pin_side
暂无简介
image_snapshot
暂无简介
get_macro_current_location
暂无简介
get_die_core_info
暂无简介
post-route-timing-check
Check post-route static timing (TNS/WNS) in OpenROAD to decide whether a macro placement exploration iteration is done. Use this skill whenever the user is running macro placement exploration, sweeping floorplans, or asking whether a placement run is "good enough to stop" — anytime post-route timing in OpenROAD needs to be read and compared against a goal, even if the user doesn't explicitly say "TNS" or "WNS".