Skip to content

Commit 3d799fb

Browse files
committed
open: fixes e.g. FASTROUTE_TCL error in open.tcl
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 <oyvind.harboe@zylin.com>
1 parent 16115f3 commit 3d799fb

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ orfs_flow(
451451
pdk = "@docker_orfs//:sky130hd",
452452
sources = {
453453
"SDC_FILE": [":constraints-sram-sky130hd.sdc"],
454+
"FASTROUTE_TCL": [":fastroute.tcl"],
454455
},
455456
top = "lb_32x128",
456457
verilog_files = LB_VERILOG_FILES,

fastroute.tcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Test FASTROUTE_TCL
2+
set_global_routing_layer_adjustment $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER) $::env(ROUTING_LAYER_ADJUSTMENT)
3+
set_routing_layers -signal $::env(MIN_ROUTING_LAYER)-$::env(MAX_ROUTING_LAYER)
4+
if {[env_var_exists_and_non_empty MACRO_EXTENSION]} {
5+
set_macro_extension $::env(MACRO_EXTENSION)
6+
}
7+

openroad.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,9 @@ def _make_impl(
10161016
runfiles = ctx.runfiles(
10171017
[config_short, make] +
10181018
forwards + results + logs + reports + ctx.files.extra_configs +
1019-
drcs + jsons,
1019+
drcs + jsons +
1020+
# Some of these files might be read by open.tcl
1021+
ctx.files.data,
10201022
transitive_files = depset(transitive = [
10211023
flow_inputs(ctx),
10221024
ctx.attr.src[PdkInfo].files,

0 commit comments

Comments
 (0)