openroad: cleanup after ORFS bump

VERILOG_TOP_PARAMS now work, clean out sed workaround

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Øyvind Harboe 2025-03-17 18:24:05 +01:00
parent 19d179e252
commit 9e78b00376
2 changed files with 3 additions and 19 deletions

View file

@ -9,9 +9,6 @@ exports_files(
filegroup(
name = "verilog",
srcs = glob(
["rtl/**/*.v"],
exclude = ["rtl/serv_top.v"],
),
srcs = glob(["rtl/**/*.v"]),
visibility = [":__subpackages__"],
)

View file

@ -31,6 +31,7 @@ PDKS = [
"CORE_UTILIZATION": "5",
"PLACE_DENSITY": "0.8",
"CORE_MARGIN": "1",
"VERILOG_TOP_PARAMS": "W {width}".format(width = width),
} |
(
{
@ -48,23 +49,9 @@ PDKS = [
pdk = pdk,
width = width,
),
verilog_files = [
":serv_top_{width}".format(width = width),
"//:verilog",
],
verilog_files = ["//:verilog"],
) for width in WIDTHS for pdk in PDKS]
# FIXME workaround for https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/pull/2943
[genrule(
name = "serv_top_{width}".format(width = width),
srcs = ["//:rtl/serv_top.v"],
outs = ["serv_top_{width}.v".format(width = width)],
# parameter W = 1,
cmd = """
sed -E 's/parameter\\s+W = 1,/parameter W = {width},/' < $< > $@
""".format(width = width),
) for width in WIDTHS]
[orfs_ppa(
name = "ppa_" + pdk,
plot = ["serv_top_{pdk}_{width}_cts".format(