Skip to content

Commit 353ab0e

Browse files
authored
Merge pull request #3009 from Pinata-Consulting/bazel-orfs-bump
bazel: bump and prune testing
2 parents 54ac9d5 + a079512 commit 353ab0e

File tree

7 files changed

+3367
-91
lines changed

7 files changed

+3367
-91
lines changed

flow/MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module(
99
bazel_dep(name = "bazel-orfs")
1010
git_override(
1111
module_name = "bazel-orfs",
12-
commit = "a33cd61ae13d2c4eb8d00e4475bfe214c828bc64",
12+
commit = "41354d9de46816b79858e43baadf701cf7e997e5",
1313
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
1414
)
1515

@@ -50,9 +50,9 @@ orfs.default(
5050
# and update "image" to point to the local image.
5151

5252
# Official image https://hub.docker.com/r/openroad/orfs/tags
53-
image = "docker.io/openroad/orfs:v3.0-2581-g11b93cfa",
53+
image = "docker.io/openroad/orfs:v3.0-2707-g044183f3",
5454
# image = "gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:3d2c3d-2",
55-
sha256 = "6b778fcdc3c7ba5cc5250cde588c43a63c45ffb3126ee072596a4173fe4d7101",
55+
sha256 = "34db776930937b94b22f96b68feea87381de70727d12efc47f342b88c8cb3db6",
5656
)
5757
use_repo(orfs, "com_github_nixos_patchelf_download")
5858
use_repo(orfs, "docker_orfs")

flow/MODULE.bazel.lock

Lines changed: 3352 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
load("@bazel-orfs//:sweep.bzl", "orfs_sweep")
2-
load("//util:plot_congestion.bzl", "plot_congestion")
1+
load("@bazel-orfs//:openroad.bzl", "orfs_flow")
32

4-
# Format densities, rounding to 2 decimal places.
5-
SWEEPS = {
6-
"PLACE_DENSITY": [str(0.60 + x * 0.01 + 0.005)[:4] for x in range(20)],
7-
"CORE_UTILIZATION": [str(40 + x * 5) for x in range(4)],
8-
}
9-
10-
SWEEP = "PLACE_DENSITY"
11-
12-
orfs_sweep(
3+
orfs_flow(
134
name = "ethmac_lvt",
145
arguments = {
156
# Faster builds
@@ -32,28 +23,9 @@ orfs_sweep(
3223
"ADDITIONAL_GDS": "$(PLATFORM_DIR)/gds/asap7sc7p5t_28_R_220121a.gds",
3324
"ADDITIONAL_LEFS": "$(PLATFORM_DIR)/lef/asap7sc7p5t_28_R_1x_220121a.lef",
3425
},
35-
other_variants = {"base": {}},
3626
sources = {
3727
"SDC_FILE": [":constraint.sdc"],
3828
},
39-
sweep = {
40-
value: {
41-
"arguments": {
42-
SWEEP: value,
43-
},
44-
"previous_stage": {
45-
"floorplan": "ethmac_lvt_synth",
46-
},
47-
}
48-
for value in SWEEPS[SWEEP]
49-
},
5029
top = "ethmac",
5130
verilog_files = ["//designs/src/ethmac_lvt:verilog"],
5231
)
53-
54-
plot_congestion(
55-
name = "plot",
56-
srcs = [":ethmac_lvt_{value}_grt".format(value = value) for value in SWEEPS[SWEEP]],
57-
argument = SWEEP,
58-
values = SWEEPS[SWEEP],
59-
)

flow/designs/asap7/gcd/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ load("//util:plot_congestion.bzl", "plot_congestion")
33

44
# Format densities, rounding to 2 decimal places.
55
SWEEPS = {
6-
"PLACE_DENSITY": [str(0.35 + x * 0.01 + 0.005)[:4] for x in range(65)],
7-
"CORE_UTILIZATION": [str(40 + x * 5) for x in range(4)],
6+
"PLACE_DENSITY": [str(0.35 + x * 0.1 + 0.05)[:4] for x in range(4)],
7+
"CORE_UTILIZATION": [str(40 + x * 50) for x in range(4)],
88
}
99

1010
SWEEP = "PLACE_DENSITY"

flow/designs/asap7/mock-array/BUILD.bazel

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
load("@bazel-orfs//:openroad.bzl", "orfs_flow")
2-
load("@bazel-orfs//:sweep.bzl", "orfs_sweep")
3-
load("//util:plot_congestion.bzl", "plot_congestion")
4-
5-
# Format densities, rounding to 2 decimal places.
6-
SWEEPS = {
7-
"PLACE_DENSITY": [str(0.82 + x * 0.01 + 0.005)[:4] for x in range(10)],
8-
}
9-
10-
SWEEP = "PLACE_DENSITY"
112

123
filegroup(
134
name = "mock-array-constraints",
@@ -38,13 +29,15 @@ orfs_flow(
3829
"MACRO_PLACE_HALO": "0 2.16",
3930
"RTLMP_BOUNDARY_WT": "0",
4031
"PDN_TCL": "$(PLATFORM_DIR)/openRoad/pdn/BLOCKS_grid_strategy.tcl",
41-
"MACRO_HALO_X": "0.5",
42-
"MACRO_HALO_Y": "0.5",
32+
"MACRO_ROWS_HALO_X": "0.5",
33+
"MACRO_ROWS_HALO_Y": "0.5",
4334
"MACRO_BLOCKAGE_HALO": "0",
4435
"MAX_ROUTING_LAYER": "M9",
4536
"GDS_ALLOW_EMPTY": "Element",
46-
"PWR_NETS_VOLTAGEsS": "",
37+
"PWR_NETS_VOLTAGES": "",
4738
"GND_NETS_VOLTAGES": "",
39+
"IO_PLACER_V": "M5 M7",
40+
"IO_PLACER_H": "M4 M6",
4841
},
4942
macros = ["Element_generate_abstract"],
5043
sources = {
@@ -65,7 +58,7 @@ filegroup(
6558
visibility = [":__subpackages__"],
6659
)
6760

68-
orfs_sweep(
61+
orfs_flow(
6962
name = "Element",
7063
abstract_stage = "route",
7164
arguments = {
@@ -84,28 +77,9 @@ orfs_sweep(
8477
"CORE_AREA": "1.08 1.08 42.120000000000005 42.120000000000005",
8578
"PDN_TCL": "$(PLATFORM_DIR)/openRoad/pdn/BLOCK_grid_strategy.tcl",
8679
},
87-
other_variants = {"base": {}},
8880
sources = {
8981
"IO_CONSTRAINTS": [":mock-array-element-io"],
9082
"SDC_FILE": [":mock-array-constraints"],
9183
},
92-
sweep = {
93-
value: {
94-
"arguments": {
95-
SWEEP: value,
96-
},
97-
"previous_stage": {
98-
"floorplan": "Element_synth",
99-
},
100-
}
101-
for value in SWEEPS[SWEEP]
102-
},
10384
verilog_files = ["//designs/src/mock-array:verilog"],
10485
)
105-
106-
plot_congestion(
107-
name = "plot",
108-
srcs = [":Element_{value}_grt".format(value = value) for value in SWEEPS[SWEEP]],
109-
argument = SWEEP,
110-
values = SWEEPS[SWEEP],
111-
)

flow/designs/asap7/swerv_wrapper/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,6 @@ orfs_flow(
117117
"SDC_FILE": [":constraint.sdc"],
118118
"SYNTH_NETLIST_FILES": [":netlists_canonicalized"],
119119
},
120+
tags = ["manual"],
120121
verilog_files = [],
121122
)

flow/util/plot_congestion.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ def plot_congestion(name, srcs, argument, values):
44
native.filegroup(
55
name = "{name}_congestion".format(name = name),
66
srcs = srcs,
7-
output_group = "congestion.rpt",
7+
output_group = "5_global_route.rpt",
88
)
99

1010
native.genrule(

0 commit comments

Comments
 (0)