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

Aperta
#4,900 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
devops, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Verilog
Stelle
825
Fork
561
Merge medio
2g 15h
PR unite (30g)
84

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di The-OpenROAD-Project/OpenROAD-flow-scripts

Tutte le issue di The-OpenROAD-Project/OpenROAD-flow-scripts

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.