`ROUTING_LAYER_ADJUSTMENT` is effectively dead since most platforms unnecessarily ship their own `FASTROUTE_TCL`

Abierto
#4,900 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
66/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Área
devops, tooling

Línea de trabajo

Read floorplan.tcl and compare its FASTROUTE_TCL branch with the platform scripts, including platforms/gf180/fastroute.tcl. Identify which platform scripts duplicate the default routing commands with hardcoded adjustments. Done means those platforms use their preferred ROUTING_LAYER_ADJUSTMENT defaults while allowing the flow variable to take effect; check relevant flow configuration and routing behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Subject

[Flow] for any util, flow Makefile, or flow script issues.

Describe the bug

The ROUTING_LAYER_ADJUSTMENT flow variable does not do anything for most platforms. It is used in just one place, in floorplan.tcl:

# Configure global routing: FASTROUTE_TCL script or
# set_global_routing_layer_adjustment/set_routing_layers
if { [env_var_exists_and_non_empty FASTROUTE_TCL] } {
  log_cmd source $::env(FASTROUTE_TCL)
} else {
  log_cmd \
    set_global_routing_layer_adjustment \
    $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER) $::env(ROUTING_LAYER_ADJUSTMENT)
  log_cmd set_routing_layers -signal $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER)
}

which generally looks fine - the intention is that FASTROUTE_TCL can be set by platforms or designs should there be specific requirements beyond what is covered by the else branch. However, in practice, most platforms do set FASTROUTE_TCL and have it point to a tcl file that is just a copy of the else branch, but hardcoding a value for ROUTING_LAYER_ADJUSTMENT. One example is platforms/gf180/fastroute.tcl:

set_global_routing_layer_adjustment $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER) 0.25
set_routing_layers -signal $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER)

The same commands as the else branch, but hardcoding 0.25 instead of ROUTING_LAYER_ADJUSTMENT. This renders ROUTING_LAYER_ADJUSTMENT useless for those platforms.

Expected Behavior

The ROUTING_LAYER_ADJUSTMENT flow variable should not be ignored for most platforms. My suggestion is that rather than supplying a FASTROUTE_TCL with a hardcoded value for the adjustment, platforms set ROUTING_LAYER_ADJUSTMENT to their preferred default instead and either leave FASTROUTE_TCL unset or read the value from the variable as expected.

Environment
Most recent master commit, using the pinned submodule versions.
To Reproduce

Reproduction not necessary.

Relevant log output

Screenshots

No response

Additional Context

No response

Lenguaje dominante
Verilog
Estrellas
836
Forks
566
Merge medio
2 d 15 h
PR fusionados (30 d)
84

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de The-OpenROAD-Project/OpenROAD-flow-scripts

Todos los issues de The-OpenROAD-Project/OpenROAD-flow-scripts

Issues similares

Más issues de DevOps

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.