syn: is an inout port supported by synthesize? export creates its block terminal twice and segfaults
Los mantenedores suelen responder en 1 día
@povik ya está trabajando en esto.
Desde el 26/10/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- Verilog
- Estrellas
- 3.4k
- Forks
- 1.1k
- Merge medio
- 3 d 11 h
- PR fusionados (30 d)
- 245
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de The-OpenROAD-Project/OpenROAD
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rulePosiblemente ocupada @LucasYuki la tomó hace 26 días. Abiertobug drt odb
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
The-OpenROAD-Project/OpenROAD#12176 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)Posiblemente ocupada @osamahammad21 la tomó hace 26 días. Abiertobug drt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
The-OpenROAD-Project/OpenROAD#12173 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobazel enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
The-OpenROAD-Project/OpenROAD#12160 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexersPosiblemente ocupada @shivarammysore la tomó hace 32 días. Abiertobazel bug odb
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
The-OpenROAD-Project/OpenROAD#12095 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
syn: acd_resynth -apply segfaults on a database resynthesized in an earlier processQuizá libre de nuevo @povik la tomó hace 31 días y no hay ningún pull request abierto. Abiertobug syn
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
The-OpenROAD-Project/OpenROAD#12046 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de The-OpenROAD-Project/OpenROAD
Issues similares
-
v3
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
pluginkollektiv/antispam-bee#952 ·
Los mantenedores suelen responder en 1 día
-
area: middleware enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
config: reject Proxy-Authorization and Proxy-Authenticate in server headersPosiblemente ocupada @haseemajaz la tomó hoy. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
rohitgollarahalli/mcpx#38 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area: API good first issue size/xs
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
DahanItamar/DockNest#354 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100