odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rule
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
Línea de trabajo
Lee src/odb/src/lefin/MinCutParser.cpp, especialmente MinCutParser::addCutClass, y sigue cómo se establecen el indicador por clase de corte de la regla y el mapa de clases. Añade una prueba específica en src/odb/test que lea la propiedad LEF58 y verifique isPerCutClass() y el mapa de clases. Estará terminada cuando la prueba confirme que el indicador está activado para la forma por clase de corte.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
A LEF58 minimum-cut rule written in its per-cut-class form is read into odb, but its per-cut-class flag is never set. As a result the detailed router drops the rule without a message.
LAYER M2
...
PROPERTY LEF58_MINIMUMCUT "
MINIMUMCUT CUTCLASS VA 2 WIDTH 0.2 ;
" ;
END M2
What happens:
MinCutParser(src/odb/src/lefin/MinCutParser.cpp,addCutClass) records the class count withsetCutsPerCutClass(className, numCuts). It never callssetPerCutClass(true), soisPerCutClass()stays false for every rule read from LEF, andgetNumCuts()stays at its default.- In drt (
src/drt/src/io/io_parser_helper.cpp, the LEF58 minimum-cut conversion), theisPerCutClass()branch that looks up the cut class of the default vias is never taken.num_cutsis the default, and the rule is skipped by thenum_cuts <= 1earlycontinue. No warning is printed.
So no rule written as MINIMUMCUT CUTCLASS <class> <n> ... is ever enforced by detailed routing. The plain MINIMUMCUT <n> ... form works as expected.
Seen at 4155ac31014 and on current master.
Expected Behavior
isPerCutClass() returns true for a rule read with CUTCLASS, and drt converts it using the class count, as the existing branch in io_parser_helper.cpp already intends.
To Reproduce
- Add the property above to a routing layer of any tech LEF whose cut layer above or below defines a cut class
VAused by that layer's default via. read_lef, then in Tcl walk[$layer getTechLayerMinCutRules]:isPerCutClassreturns 0, andgetCutClassCutsMapholdsVA 2.- Run
detailed_routewith debug output: no minimum-cut constraint is created for the layer.
Suggested fix
In MinCutParser::addCutClass, also call rule_->setPerCutClass(true). A unit test in src/odb/test that reads the property above and checks isPerCutClass() and the class map would cover it.
Relevant log output
No response
Additional Context
Found while comparing rule coverage between LEF readers. Happy to send a PR with the one-line fix and the test if that would help.
- Lenguaje dominante
- Verilog
- Estrellas
- 3.4k
- Forks
- 1.1k
- Merge medio
- 3 d 11 h
- PR fusionados (30 d)
- 247
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
-
drt: min-area patch owner search compares the origin-relative patch box with absolute shapes, so patches are droppedPosiblemente ocupada @bnmfw la tomó hace 11 días. Abiertobug drt
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
The-OpenROAD-Project/OpenROAD#12191 · 5 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 25 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
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
-
[优化]本地模型未启动时能否不要报上游不可用错误Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ranxianglei/billion-context#8315 ·
Los mantenedores suelen responder en 1 día
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xmlPosiblemente ocupada @alexeyfala la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
danipen/TextMateSharp#145 · 2 comentarios ·
-
accepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
future-agi/future-agi#6368 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
omacom/omarchy#21787 · 1 comentario ·
Los mantenedores suelen responder en 1 día