Skip to content

Commit b0bf7fc

Browse files
committed
test/orfs/mock-array: run power report with openroad as well as opensta
OpenROAD standalone doesn't work yet: link_design MockArray [ERROR ORD-2010] no technology has been read. Error: power.tcl, 1 ORD-2010 OpenSTA tests are needed for when we want to report issues to OpenSTA. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 4534556 commit b0bf7fc

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

test/orfs/mock-array/mock-array.bzl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ MACROS = [
219219
]
220220

221221
POWER_TESTS = [
222+
"openroad",
222223
"power",
223224
"power_instances",
224225
]
@@ -457,7 +458,6 @@ def mock_array(name, config):
457458
"ARRAY_COLS": str(config["cols"]),
458459
"ARRAY_ROWS": str(config["rows"]),
459460
"LOAD_POWER_TCL": "$(location :load_power.tcl)",
460-
"OPENROAD_EXE": "$(location //src/sta:opensta)",
461461
"OUTPUT": "$(location :{variant}_{power_test}_{stage}.txt)".format(
462462
variant = variant,
463463
power_test = power_test,
@@ -466,10 +466,14 @@ def mock_array(name, config):
466466
"POWER_STAGE_NAME": stage,
467467
"POWER_STAGE_STEM": POWER_STAGE_STEM[stage],
468468
"VCD_STIMULI": "$(location :vcd_{variant}_{stage})".format(variant = variant, stage = stage),
469-
},
469+
} | ({"openroad": {}}.get(
470+
"openroad",
471+
{
472+
"OPENROAD_EXE": "$(location //src/sta:opensta)",
473+
},
474+
)),
470475
data = [
471476
# FIXME this is a workaround to ensure that the OpenSTA runfiles are available
472-
":opensta_runfiles",
473477
":vcd_{variant}_{stage}".format(variant = variant, stage = stage),
474478
":load_power.tcl",
475479
] + ["{macro}_{variant}_{stage}".format(
@@ -480,8 +484,9 @@ def mock_array(name, config):
480484
(["{variant}_{macro}_parasitics".format(
481485
variant = (name + "_base") if macro == "Element" else variant,
482486
macro = macro,
483-
) for macro in MACROS] if stage != "final" else []),
484-
script = ":{power_test}.tcl".format(power_test = power_test),
487+
) for macro in MACROS] if stage != "final" else []) +
488+
(["//src/sta:opensta"] if power_test != "openroad" else []),
489+
script = ":{power_test}.tcl".format(power_test = power_test if power_test != "openroad" else "power"),
485490
tags = ["manual"],
486491
tools = ["//src/sta:opensta"],
487492
visibility = ["//visibility:public"],

0 commit comments

Comments
 (0)