syn: is an inout port supported by synthesize? export creates its block terminal twice and segfaults
维护者通常 1 天内回复
@povik 已经在做这个了。
开始于 2026年10月26日。
评估
调研方向
Start with the Input and Output branches in src/syn/src/flow/export.cc and trace how elaboration represents the reproduced top-level inout port. Run the Nangate45 Tcl sequence from test/ with the Verilog reproducer to confirm the export failure. Done means the issue has a defined outcome for inout ports and the run either exports the intended terminal or reports a clear unsupported case without crashing.
由索引模型根据 Issue 内容生成。
描述
Is an inout port meant to be supported by synthesize? A top-level module with one ends the run with Signal 11 received in the export to the database.
Reproducer (Nangate45 from test/):
module top(inout [1:0] p, input e, output y);
assign y = p[0] & e;
endmodule
read_lef Nangate45/Nangate45_tech.lef
read_lef Nangate45/Nangate45_stdcell.lef
read_liberty Nangate45/Nangate45_typ.lib
sv_elaborate design.sv
synthesize
The synthesis passes complete (the stats table prints), and then the process dies during the export, before anything is written.
What seems to happen: elaboration represents the inout port as both an Input instance and an Output instance named p. In src/syn/src/flow/export.cc, the Input branch creates the block terminals p[0] and p[1]. The Output branch then calls dbBTerm::create again for the same names. dbBTerm::create returns nullptr for a name already in the block, and the following bterm->setIoType(odb::dbIoType::OUTPUT) dereferences it.
The question: what is the intended behaviour for an inout port? A few possibilities:
- one terminal with
dbIoType::INOUT(when theOutputmeets a terminal itsInputalready created, set the type to INOUT instead of creating a new terminal); - a clean
logger_->errorsaying inout ports are not supported yet; - or rejecting it earlier, at
sv_elaborate.
Any of these would avoid the crash. We are happy to open a PR for whichever you prefer.
Seen at 27288f5c90. The same code is on master (7b3eb039fa).
- 主要语言
- Verilog
- 星标
- 3.4k
- 派生
- 1.1k
- 平均合并
- 3 天 11 小时
- 30 天内合并 PR
- 245
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
The-OpenROAD-Project/OpenROAD 的其他 Issue
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rule可能已有人在做 @LucasYuki 于 25 天前认领。 未关闭bug drt odb
难度 2/5 1-3 小时 新手友好度 85/100
The-OpenROAD-Project/OpenROAD#12176 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)可能已有人在做 @osamahammad21 于 25 天前认领。 未关闭bug drt
难度 2/5 1-3 小时 新手友好度 82/100
The-OpenROAD-Project/OpenROAD#12173 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/可能重新可做 关联的 PR 已关闭且未合并。 未关闭bazel enhancement
难度 1/5 1 小时以内 新手友好度 76/100
The-OpenROAD-Project/OpenROAD#12160 · 4 条评论 ·
维护者通常 1 天内回复
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexers可能已有人在做 @shivarammysore 于 32 天前认领。 未关闭bazel bug odb
难度 1/5 1 小时以内 新手友好度 80/100
The-OpenROAD-Project/OpenROAD#12095 · 2 条评论 ·
维护者通常 1 天内回复
-
syn: acd_resynth -apply segfaults on a database resynthesized in an earlier process可能重新可做 @povik 于 31 天前认领,目前没有进行中的 PR。 未关闭bug syn
难度 2/5 1-3 小时 新手友好度 77/100
The-OpenROAD-Project/OpenROAD#12046 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 The-OpenROAD-Project/OpenROAD 的全部 Issue
相似的 Issue
-
v3
难度 2/5 1-3 小时 新手友好度 88/100
pluginkollektiv/antispam-bee#952 ·
维护者通常 1 天内回复
-
area: middleware enhancement good first issue
难度 2/5 1-3 小时 新手友好度 68/100
-
config: reject Proxy-Authorization and Proxy-Authenticate in server headers可能已有人在做 @haseemajaz 今天认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 88/100
rohitgollarahalli/mcpx#38 · 1 条评论 ·
维护者通常 1 天内回复
-
area: API good first issue size/xs
难度 2/5 1-3 小时 新手友好度 92/100
DahanItamar/DockNest#354 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100