Skip to content

Commit

Permalink
open: fixes e.g. FASTROUTE_TCL error in open.tcl
Browse files Browse the repository at this point in the history
Fixes:

$ rm -rf /tmp/foo && bazel run lb_32x128_sky130hd_grt /tmp/foo gui_grt
[ERROR STA-0340] cannot open './fastroute.tcl'.
[ERROR GUI-0070] Error: open.tcl, 74 STA-0340

Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Feb 4, 2025
1 parent 16115f3 commit 3d799fb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ orfs_flow(
pdk = "@docker_orfs//:sky130hd",
sources = {
"SDC_FILE": [":constraints-sram-sky130hd.sdc"],
"FASTROUTE_TCL": [":fastroute.tcl"],
},
top = "lb_32x128",
verilog_files = LB_VERILOG_FILES,
Expand Down
7 changes: 7 additions & 0 deletions fastroute.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Test FASTROUTE_TCL
set_global_routing_layer_adjustment $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER) $::env(ROUTING_LAYER_ADJUSTMENT)
set_routing_layers -signal $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER)
if {[env_var_exists_and_non_empty MACRO_EXTENSION]} {
set_macro_extension $::env(MACRO_EXTENSION)
}

4 changes: 3 additions & 1 deletion openroad.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,9 @@ def _make_impl(
runfiles = ctx.runfiles(
[config_short, make] +
forwards + results + logs + reports + ctx.files.extra_configs +
drcs + jsons,
drcs + jsons +
# Some of these files might be read by open.tcl
ctx.files.data,
transitive_files = depset(transitive = [
flow_inputs(ctx),
ctx.attr.src[PdkInfo].files,
Expand Down

0 comments on commit 3d799fb

Please sign in to comment.