The-OpenROAD-Project / OpenROAD-flow-scripts

OpenROAD's scripts implementing an RTL-to-GDS Flow. Documentation at https://openroad-flow-scripts.readthedocs.io/en/latest/
https://theopenroadproject.org/
Other
352 stars 294 forks source link

global_route_debug error #2608

Open maliberty opened 1 day ago

maliberty commented 1 day ago

Discussed in https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/discussions/2607

Originally posted by **Pxx-X** December 2, 2024 I use ORFS to run a flow of one benchmark with command `make DESIGN_CONFIG=./path/config.mk`, and I get "4_cts.odb". Then I run openroad and input the command: 1. `read_db 4_cts.odb` 2. `global_route_debug -st` openroad return `can't read "keys(-net)": no such variable`, I don't know why, is it a bug or I made some mistake? The [Document](https://openroad.readthedocs.io/en/latest/main/src/grt/README.html#global-route-debug-mode) indicate that I should input `global_route_debug` before `global_route`. And I try both(befor and after `global_route`, the result are the same) The .odb file is [here](https://github.com/user-attachments/files/17980396/odb.zip) Thank you very much! ![image](https://github.com/user-attachments/assets/b571a378-a160-440b-a508-87911a5842e6)
maliberty commented 1 day ago

@eder-matheus this looks like a bug

  set net [$db_block findNet $keys(-net)]

  if { [info exists keys(-net)] && $net != "NULL" } {

which use $keys(-net) before checking if it exists.