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

Ouverte
#4,900 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
66/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Domaine
devops, tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Verilog
Étoiles
836
Forks
566
Merge moyen
2 j 15 h
PR mergées (30 j)
84

Préparer son environnement

  • Fournit un Dockerfile ou un fichier Docker Compose
  • Aucun modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de The-OpenROAD-Project/OpenROAD-flow-scripts

Toutes les issues de The-OpenROAD-Project/OpenROAD-flow-scripts

Issues similaires

Plus d'issues DevOps

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.